Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 06-07-2009, 03:53 PM   #1
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
How to exclude forum from a plugin

Ok. So I have my plugin I like and it works. But I want to add some type of exclude for certain forums as I dont want it running in every forum. How would I do that? The hook is postbit_display_complete. I have tried every if statement I can think. Anyone have suggestions?
__________________
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

Advertisement [Remove Advertisement]

Old 06-07-2009, 03:57 PM   #2
vBulletin Owner
 
Join Date: Jun 2009
Location: http://vbenhancer.com
Posts: 154
nexia has a spectacular aura about
Re: How to exclude forum from a plugin

PHP Code:
if(in_array($this->thread['forumid'], array(1,2,3))) { execute, or ! not! } 
nexia is offline   Reply With Quote
Old 06-07-2009, 04:08 PM   #3
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: How to exclude forum from a plugin

How would you add that? Because I gave that a try and broke it again LOL

Do you have to close in the plugin code? I dont get the excute or not part.
__________________
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 06-07-2009, 04:29 PM   #4
vBulletin Owner
 
Join Date: Jun 2009
Location: http://vbenhancer.com
Posts: 154
nexia has a spectacular aura about
Re: How to exclude forum from a plugin

hum, you don't know how to code, isn't it?... i posted this as i supposed you were the one coding your product file... the "execute, or ! not!" is the content of your plugin.
nexia is offline   Reply With Quote
Old 06-07-2009, 04:51 PM   #5
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: How to exclude forum from a plugin

Ahhhh..Yeah I know how to code..just kinda brain freeze and a side of frustration because it isnt working how I thought it should LOL ..But thank you..Its one of those been doing it for hours working on something big and stuck on a small spot

By the way +rep That worked
__________________
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.



Last edited by Cerberus; 06-07-2009 at 04:54 PM.
Cerberus is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
exclude, forum, plugin

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
May I know whicht plugin is this? Glitto Troubleshooting vBulletin Problems 7 08-03-2009 03:13 PM
New Posts, any way to exclude a particular forum? vwdforum Troubleshooting vBulletin Problems 4 02-24-2008 12:56 PM
plugin hook location anuvenkatesh Troubleshooting vBulletin Problems 0 11-16-2007 02:15 PM
sql and plugin jackni Troubleshooting vBulletin Problems 11 11-15-2007 07:55 PM
New Posts Button to exclude some forums in query Luigi Troubleshooting vBulletin Problems 3 10-26-2007 09:09 AM


All times are GMT -8. The time now is 08:59 PM.