Log in

View Full Version : new thread button


imported_mav
03-24-2004, 07:51 PM
I would like to display the new thread button on my forum home next to each forum-my members think its so much easier and saves a step

anyone know how?

Alien
03-26-2004, 06:15 AM
I'm interested in this as well as a 'subscribe' button to both go on my forumhome...

Anyone know the conditionals?

peterska2
03-26-2004, 01:33 PM
NEW THREAD BUTTON

Go into SHOWTHREAD and find

<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>

Before this add:

<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>

SUBSCRIBE BUTTON

After above code add:

<if condition="$show['member']">

<td class="smallfont"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>

</if>


That should do the trick for you.

If it doesn't just shout.