The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
elseif in templates
I have a special form for posting that I have used for a single forum and everything has worked well. Now that I'm adding a separate form with "elseif" it doesn't work. What have I done wrong?
Working code: Code:
<if condition="$forumid == 14"> <a href="form3.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"> <img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> <b>Ask a Question</b></a> <else /> <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> <b>Ask a Question</b></a> </if> Code:
<if condition="$forumid == 14"> <a href="form3.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"> <img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> <b>Ask a Question</b></a> <elseif condition="$forumid == 35" /> <a href="form35.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"> <img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> <b>Ask a Question</b></a> <else /> <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> <b>Ask a Question</b></a> </if> Thanks. I appreciate the help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|