View Full Version : Shoutbox with user turn off ability
Devil Woman
08-24-2007, 06:48 PM
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
optrex
08-24-2007, 08:01 PM
cant you make a joinable public usergroup with permissions to the shoutbox ?
theFAILURE
08-24-2007, 08:20 PM
This is a great idea, it will save server resources.
The shoutbox can be turned off by default, and upon registration it informs you on this.
Devil Woman
08-25-2007, 04:52 PM
cant you make a joinable public usergroup with permissions to the shoutbox ?
How would I set it so the users have permission to turn the shoutbox on and off, and also by setting the public joinable usergroup will the users be able to them just swap from their original usergroup to the usergroup that allows them to turn the shoutbox off?
Thanks
Stickers
08-25-2007, 05:13 PM
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
<if condition="$bbuserinfo['fieldX'] == 'Yes, enable.'"> Here your shoutbox code</if>
now they can turn it on or off in there UserCP ;)
Devil Woman
08-25-2007, 07:58 PM
Thanks for that :) I will give that a try and see how I get on :)
Where abouts would I actually add the code? where it states in the shoutbox instructions?
Thanks again :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.