The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable reputation in certain forums!
Well yes I want to disable reputation in a certain section/subforum.
I searched and found this post which needed the same thing but no answer: https://vborg.vbsupport.ru/showthread.php?t=115319 Any help appreciated! |
#2
|
|||
|
|||
I haven't tried it so I don't know if it will work, but you could try making a plugin with code like:
PHP Code:
The problem is figuring out where to do that. I'm not sure you can do it in a "global" hook (one that gets run on every page) because I think sometimes you don't know what forum you're dealing with until you get in to the specific script. You could probably start out with a plugin using showthread_getinfo and something like: PHP Code:
(or else try what HMBeaty suggests in the next post). |
#3
|
||||
|
||||
Or you could just wrap the reputation images in a conditional in the postbit so that you can only see it on certain forums
|
#4
|
||||
|
||||
Quote:
Code:
if (in_array($thread['forumid'], array(80, 102)) $vbulletin->options['reputationenable'] = 0; Code:
Parse error: syntax error, unexpected T_VARIABLE in /home/user/public_html/forums/showthread.php(377) : eval()'d code on line 2 Quote:
The forum Ids would be 80, 102 |
#5
|
||||
|
||||
Quote:
HTML Code:
<if condition="in_array($post['forumid'], array(80,102))"> reputation code here </if> |
Благодарность от: | ||
GavoTrav |
#6
|
|||
|
|||
Quote:
PHP Code:
|
Благодарность от: | ||
GavoTrav |
#7
|
||||
|
||||
Quote:
Thanks |
#8
|
||||
|
||||
Count your parenthesis - you need to have an equal amount of ( and ) and you do not.
|
#9
|
||||
|
||||
Quote:
Attached file |
#10
|
|||
|
|||
I think Lynne was just a little late responding to the earlier post where the parenthesis was missing.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|