The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
IF Statement help...
We currently use this for FORUMDISPLAY
Code:
<vb:if condition="$foruminfo['forumid'] == 18"> html code here </vb:if> I'm trying to figure out a similar IF Statement to be used when posting a NEW thread in a SPECIFIC forum Sample link here: Code:
http://www.websitelink.com/forum/newthread.php?do=newthread&f=15 So that if someone is creating a new thread in that forum ID 15 there will be some additonal information thats displayed above the portion of the text editor box. Posting rules etc. Also, How can that new IF Statement be catered to cover two forum IDs such as 15 & 20? Thanks a ton! |
#2
|
||||
|
||||
Here's what you need
HTML Code:
<vb:if condition="$_REQUEST['do'] == 'newthread' AND $foruminfo['forumid'] == 18">
HTML Code:
<vb:if condition="$_REQUEST['do'] == 'newthread' AND in_array($forum['forumid'], array(18,21,31,66))">
|
#3
|
|||
|
|||
Thanks a ton Simon! I really appreciate it, I'll get it added tonight
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|