vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Shoutbox with user turn off ability (https://vborg.vbsupport.ru/showthread.php?t=156163)

Devil Woman 08-24-2007 05:48 PM

Shoutbox with user turn off ability
 
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 07:01 PM

cant you make a joinable public usergroup with permissions to the shoutbox ?

theFAILURE 08-24-2007 07: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 03:52 PM

Quote:

Originally Posted by optrex (Post 1324996)
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 04:13 PM

Quote:

Originally Posted by Devil Woman (Post 1324954)
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 ;)

Devil Woman 08-25-2007 06: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 :)


All times are GMT. The time now is 11:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02148 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete