PDA

View Full Version : Code for "forum not effected" for an addon


Paulchen
08-28-2008, 04:19 PM
hi there,

i use the Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?t=96602) addon for the board of my friend.
On the vBulletin Settings i can change following:

Here you can add extra conditions, which will be required for a post to be seen as a doublepost. Be carefull, as this code is evaluated without doing any errorchecking, so use it at your own risk! (Examlpe: add !can_moderate() into the box to exclude moderators from doublepost prevention)

So i have one primary and one secondary question:

1.) Is there a code (like !can_moderate()) for the effect, that a special forum in my board (like the spam-forum) is not be affected from this addon? And when yes, how?

2.) There is "!can_moderate()" to deactive this plugin for mods. Is "!can_administrate()" to deactive this plugin for admins, or not? And when not how its called?

Thanks for answers,

greez,

Paulchen

PS:
vBulletin version: 3.7.0 (german)
Addon version: 3.5.3 (LINK (https://vborg.vbsupport.ru/showthread.php?t=96602))

Lynne
08-28-2008, 04:23 PM
If you have questions regarding a modification, you should ask them in the modification thread since they know the code best.

Paulchen
08-28-2008, 04:24 PM
First of all i ask for a vbulletin code like "can_moderate()".
This have nothing to do with the addon.

I just search for a way to say vbulletin one condition to let one forum of my board uneffected

greez,

Paulchen

Brad
08-28-2008, 04:38 PM
If you have questions regarding a modification, you should ask them in the modification thread since they know the code best.
We all know Stefan (Xenon) isn't around much these days so I doubt that will be of much help.

Paulchen:

1) I'm sure you could do it with this modification but it wouldn't be the best way to go about it. I'll show you how to do it but I'm in class now so I'll have to answer this one during break.

2) Use this:

!can_administer()

But again I'll show you a better way during break.

note to self: Stefan is evil. :D

Paulchen
08-28-2008, 04:50 PM
Ok thanks, shall i contact you with pm or will you post here?