PDA

View Full Version : [Request] Sidepanel on/off?


Amiga-uk
01-07-2004, 08:49 PM
Erm, im not exactly knowledgable with php, so im not positive if it can be done or not.. But i currently have the sidepanel hack form here installed on my board, but chances are, some people wont like it.

SO.. is there any way that I can have a user option to turn the sidepanel on or off in the user cp? Making the sidepanel individual for each user?

This would be greatly appreciated..

Oh, also, i dont have it installed on each skin.. so it wouldnt have an effect on each skin, so.. would i have to install it on all? I would, right?

Please help, though theres no rush..

Thanks for your time,
Amiga-uk/Dave Fairclough

Amiga-uk
01-08-2004, 04:18 PM
Please? :(

I want this hack ;_;

magnus
01-08-2004, 07:25 PM
With the new VB3 conditionals, this is cake. First, create a new User Profile Field.. use Single-Selection Radio Buttons. Make two options, "on" and "off". Make note of the profilefieldid.

Then, in whichever template you call the sidepanel and encompass it with:

<if condition="$bbuserinfo['fieldXX']==On">
$SIDEPANELVAR
</if>


Of course, replace the XX with the profilefieldid. This isn't tested, but it should work fine.

Amiga-uk
01-09-2004, 02:19 PM
Thanks a lot Magnus, i'll test this out asap =)