The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Disable signatures in certain forums
I would like to disable signatures in certain forums, I attempted to add this to my postbit_legacy (of which my forum is set to use) but I may be doing it wrong. I have tried two methods:
This one Code:
<vb:if condition="$post['signature'] AND $GLOBALS[forumid] != 421 || 578 || 680 || 638 || 597 || 36 || 246 || 247 || 490 || 250 || 531 || 748 || 742 || 740 || 744 || 129 || 769 || 772 || 770 || 771 || 691 || 711 || 712 || 713 || 714 || 715 || 716 || 696 || 717 || 718 || 719 || 750 || 751 || 752 || 753 || 754 || 779 || 720 || 778 || 721 || 722 || 723 || 763 || 767 || 764 || 765 || 776 || 777"> <!-- sig --> <blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote> </vb:if> And This One Code:
<vb:if condition="$post['signature'] AND $GLOBALS[forumid] != 421,578,680,638,597,36,246,247,490,250,531,748,742,740,744,129,769,772,770,771,691,711,712,713,714,715,716,696,717,718,719,750,751,752,753,754,779,720,778,721,722,723,763,767,764,765,776,777"> <!-- sig --> <blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote> </vb:if> NOTE: I have also cleared cache and used the maintenance tool for emptying signature cache. |
#2
|
||||
|
||||
You can't chain conditions like that in PHP. Template conditions are basically transferred to PHP, so its basic rules apply.
You either need to do PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Hmm. But for the second php code bit, the condition is saying AND. Wouldn't i essentially need to make that AND NOT?
|
#4
|
||||
|
||||
What I would do is create a plugin hooked at "postbit_display_complete" with the code:
PHP Code:
|
Благодарность от: | ||
cellarius |
#5
|
||||
|
||||
Quote:
--------------- Added [DATE]1464182800[/DATE] at [TIME]1464182800[/TIME] --------------- Quote:
PHP Code:
|
#6
|
||||
|
||||
Thanks guys. This solved my problem. The hook definitely made this quick and painless. Much appreciated.
|
#7
|
||||
|
||||
Good call...if I had noticed that, I would have suggested it as well.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|