![]() |
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"> 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"> NOTE: I have also cleared cache and used the maintenance tool for emptying signature cache. |
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:
|
Hmm. But for the second php code bit, the condition is saying AND. Wouldn't i essentially need to make that AND NOT?
|
What I would do is create a plugin hooked at "postbit_display_complete" with the code:
PHP Code:
|
Quote:
--------------- Added [DATE]1464182800[/DATE] at [TIME]1464182800[/TIME] --------------- Quote:
PHP Code:
|
Thanks guys. This solved my problem. The hook definitely made this quick and painless. Much appreciated.
|
Quote:
|
All times are GMT. The time now is 11:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|