Quote:
Originally Posted by Devil Woman
Hi, I have looked for this but I am unable to find this which is compatible with my version of VB, what I am looking for is a shoutbox that gives users the ability to turn it off themselves via the usercp, so that members who do not wish to have the shoutbox can turn it off and users who do wish to have it can leave it on.
Any help is appreciated.
Thanks
|
You can do it like this
1. Go to your AdminCP.
2. Add a New User Profile Field with the following settings and Remember the Field Number that it uses:
+ Profile Field Type: Single-Selection Radio Buttons
+ Title: Shoutbox
+ Description:
Here you can turm the shoutbox on or off
+ Options (If you change these, you must also change them in the template edits):
Yes, enable.
No, disable.
+ Which Page Displays This Option?
Options: Other
And add this code in your template
Code:
<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.'"> Here your shoutbox code</if>
now they can turn it on or off in there UserCP