The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
(Request) How to Change the link for the "Post new Thread Button"
In the FORMDISPLAY template you will find this code:
Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> Is this possible? I just can't seem to figure this out. Hope someone can help. Slimwicked |
#2
|
||||
|
||||
You could use conditionals, such as:
Code:
<if condition="$foruminfo[forumid]==7">what you want here<else />new thread button here</if> |
#3
|
|||
|
|||
Hi and thanks cris for your help. but i'm having a bit of trouble. This is what I have but doesnt seem to work. can you tell me what I did wrong?
Code:
<tr valign="bottom"> <td class="smallfont"><if condition="$foruminfo[forumid]==7"><a href="newthread.php?do=mp3post" rel="nofollow"><else /><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></if><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> <if condition="$foruminfo[forumid]==7"><a href="newthread.php?do=mp3post" rel="nofollow"><else /><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></if> |
#4
|
||||
|
||||
Code:
<tr valign="bottom"> <td class="smallfont"><if condition="$show['newthreadlink']"><if condition="$foruminfo[forumid]==7"><a href="newthread.php?do=mp3post" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a></if><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> Chris |
#5
|
|||
|
|||
wow! That worked perfectly! Thanks a million. But I have just 1 final question for you. If I wanted to add more conditionals just like the one you help me with, what should I just add?
correct..i have figured it out! Thanks alot for all your help! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|