Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 03-16-2009, 02:00 PM   #1
vBulletin Owner
 
UKDarkstar's Avatar
 
Join Date: Mar 2009
Location: UK, South Coast
Posts: 52
UKDarkstar will become famous soon enough
Cyb Chatbox - show on just one forum area

Sorry folks, more newb questions.

I've installed the Chatbox and it appears on the main forum page - not where I want it. So I find the setting which says :

Show ChatBox on (comma separated THIS_SCRIPT locations)
Blank to show on all pages (not recommended because of server load)
and the value is index If I remove "index" then it disappears from the main forum homepage (fine).

I only want it to appear in certain forums and the instructions say :

To have ChatBox enabled on desired page:
1. THIS_SCRIPT must be defined in php file (by default all important vBulletin files has this)
2. Hack options - You must add THIS_SCRIPT value for target page to "Show ChatBox on" setting field
3. Main template called on target page must contain "$cybchatbox" variable


I just don't get this

Any pointers greatly appreciated.
UKDarkstar is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 03-17-2009, 08:58 AM   #2
Supporters
vBulletin Owner
vBSetup Mods
 
Cerberus's Avatar
 
Join Date: Mar 2008
Posts: 1,631
Cerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of light
Re: Cyb Chatbox - show on just one forum area

This script would be like the name of the file. So THIS_Script=index,

Index is your index.php. If you wanted it on showthread.php...then showthread. You just lop off the .php for where you want it. As for only certain forums you would need an if statment.

<if condition="in_array($forumid, array(x,y,z))"> the variable for the chatbox</if>

You will have to put that in the top of your forumdisplay template. And I think you would have to do it without using the built in Thisscript box. I am sure in the direction or something it gives you the variable that calls the chatbox.
__________________
Cerberus / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Cerberus is offline   Reply With Quote
Old 03-17-2009, 11:59 AM   #3
vBulletin Owner
 
UKDarkstar's Avatar
 
Join Date: Mar 2009
Location: UK, South Coast
Posts: 52
UKDarkstar will become famous soon enough
Re: Cyb Chatbox - show on just one forum area

Quote:
Originally Posted by Cerberus View Post
This script would be like the name of the file. So THIS_Script=index,

Index is your index.php. If you wanted it on showthread.php...then showthread. You just lop off the .php for where you want it. As for only certain forums you would need an if statment.

<if condition="in_array($forumid, array(x,y,z))"> the variable for the chatbox</if>

You will have to put that in the top of your forumdisplay template. And I think you would have to do it without using the built in Thisscript box. I am sure in the direction or something it gives you the variable that calls the chatbox.
I sorta get what you're saying but I'm not into php and stuff. Think I'll uninstall and look for an alternative that I can manage.

Thanks anyway
UKDarkstar is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
area, chatbox, cyb, forum, show

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems to show avatars at the forum tchu1 Troubleshooting vBulletin Problems 7 08-23-2009 11:16 AM
Show something in specific forum? Cerberus Troubleshooting vBulletin Problems 2 06-01-2008 03:01 PM
Show A Worldwide Map of Forum Partipants LinkBliss Troubleshooting vBulletin Problems 10 04-09-2007 07:07 AM
Private forum area got spammed!!! PC101 Troubleshooting vBulletin Problems 9 01-22-2007 09:14 PM


All times are GMT -8. The time now is 06:40 AM.