Andy Huang
Tue 29th Mar '05, 4:21pm
Hi guys,
Ok, I am trying to add the "New Thread" button to SHOWTHREAD (see attached) because it makes creating new thread slightly easier; however, it doesn't seem to want to work with this below code:
<if condition="$show['largereplybutton']">
<td class="smallfont"><if condition="$show['newthreadlink']"><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" /></a><else /> </if><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont"><if condition="$show['newthreadlink']"><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" /></a><else /> </if> </td>
</if>
I basically added the two if clauses in both cases; and the added if clause is stolen from FORUMDISPLAY (where it checks if user can post new thread and give the button as needed). Can someone please check and let me know why the above doesn't work?
Thanks in advance.
Ok, I am trying to add the "New Thread" button to SHOWTHREAD (see attached) because it makes creating new thread slightly easier; however, it doesn't seem to want to work with this below code:
<if condition="$show['largereplybutton']">
<td class="smallfont"><if condition="$show['newthreadlink']"><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" /></a><else /> </if><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont"><if condition="$show['newthreadlink']"><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" /></a><else /> </if> </td>
</if>
I basically added the two if clauses in both cases; and the added if clause is stolen from FORUMDISPLAY (where it checks if user can post new thread and give the button as needed). Can someone please check and let me know why the above doesn't work?
Thanks in advance.