The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is it possible to make an installed mod applicable to only one forum? I have added a mod that adds to a thread (via adding a hook to SHOWTHREAD) a new pane that shows who has voted for the thread. I only have thread voting enabled in one forum though so this feature looks goofy in other forums on the same site. Is it possible to restrict this change to SHOWTHREAD to only the one forum?
Thanks. |
#2
|
||||
|
||||
![]()
not without knowing what mod, and what hook you used etc....
|
#3
|
|||
|
|||
![]() Quote:
If you know which plugins it uses you could try editing them and surrounding the code with: Code:
if ($foruminfo['forumid'] == ID) { // existing plugin code here } and of course you want to change ID to the id of the forum where you want the mod to be active. |
#4
|
|||
|
|||
![]()
Ha! So easy and I didn't even consider it. That worked great. I just surrounded the template hook in SHOWTHREAD with:
<if condition="$foruminfo['forumid'] == 14"> $template_hook </if> Thanks! |
#5
|
||||
|
||||
![]()
That is fine if only that one modification uses that template hook. However, it means the code is still evaled and if that means queries, then those queries will get run even though they are not needed. Much better, usually, to put the condition around the code itself.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|