silurius
09-18-2007, 09:31 PM
I'm using CSS to create new buttons and need some help with the templates, New Thread and Reply to Topic in particular.
I presume I should locate in FORUMDISPLAY:
<!-- controls above thread list -->
<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>
<!-- / controls above thread list -->And replace the stuff in the <if> statement with my new code.
This is the code I'm struggling with. I know the below is extremely crude and wrong, but it's all I know at this stage. I just can't seem to fine all the parameters I need in the manual:
Post New Topic:
<!-- START: Post New Topic button -->
<if condition="$show['newthreadlink']">
<input type="submit" class="button" name="postnewthread" value="$vbphrase[post_new_thread]" accesskey="r" tabindex="1" />
<br />
<else />
</if>
<!-- END: Post New Topic button --> Reply to Topic:
<!-- START: Reply to Topic button -->
<if condition="$show['largereplybutton']">
<input type="submit" class="button" name="replytotopic" value="$vbphrase[reply_to_topic]" accesskey="r" tabindex="1" />
<else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" />
</if>
<!-- END: Reply to Topic button -->
Anyone?
I presume I should locate in FORUMDISPLAY:
<!-- controls above thread list -->
<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>
<!-- / controls above thread list -->And replace the stuff in the <if> statement with my new code.
This is the code I'm struggling with. I know the below is extremely crude and wrong, but it's all I know at this stage. I just can't seem to fine all the parameters I need in the manual:
Post New Topic:
<!-- START: Post New Topic button -->
<if condition="$show['newthreadlink']">
<input type="submit" class="button" name="postnewthread" value="$vbphrase[post_new_thread]" accesskey="r" tabindex="1" />
<br />
<else />
</if>
<!-- END: Post New Topic button --> Reply to Topic:
<!-- START: Reply to Topic button -->
<if condition="$show['largereplybutton']">
<input type="submit" class="button" name="replytotopic" value="$vbphrase[reply_to_topic]" accesskey="r" tabindex="1" />
<else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" />
</if>
<!-- END: Reply to Topic button -->
Anyone?