View Full Version : users selecting moduls?
djjeffa
12-01-2004, 11:26 PM
I know there is a way to add moduls as a side bar. but is there a way to let the useres select what modules they see, like could they set it in there profile?
memobug
12-02-2004, 02:32 AM
Have you tried using rollups?
I have been thinking about the issue of customizing the display. You could add some code to the module template and define a custom variable in the user profile
In the module (replace field12 with the field number you create):
<if condition="$bbuserinfo[field12] =''">
<!-- INSERT ALL THE TEMPLATE CODE HERE -->
</if>
Have the user put something in $bbuserinfo[field12] if they do not want to see the template
You could probably change it quite easily to Yes/No radio buttons since vb3 now supports this, but I have not played with that.
OR
You could do something like this
<if condition="$bbuserinfo[field12] =''">
<!-- INSERT ALL THE TEMPLATE CODE HERE -->
<else />
table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Module Name</b></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
<A HREF="$vboptions[bburl]/profile.php?do=editprofile">Enable This Module</A>
</span>
</td>
</tr>
</table>
</if>
if you want to have an enable link instead of the module. I'm sure you could make it more sophisticated by assigning the various bbfields to their own area of the usercp.
djjeffa
12-02-2004, 04:44 PM
lol i suck at this stuff. i was hoping for somthing simple but ill give this a try later thank you.
serhathakan
06-15-2005, 07:30 PM
is there any demo?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.