PDA

View Full Version : Post New Thread



PGAmerica
Wed 7th Apr '04, 8:18pm
vb2.xx used to have an option when viewing a thread to reply to the post or make a brand new thread. vb3 does not seem to have this option?

How do I get it back?

Zachery
Wed 7th Apr '04, 9:48pm
Add this to your showthread template


<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>

Yuneek
Wed 7th Apr '04, 10:31pm
Add this to your showthread template


<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>
I don't know if you know it bitg but your going to want to add that code next to the reply button code in the showthread template. If you need more help, I can help you.

carolem
Wed 7th Apr '04, 10:59pm
I need this too!

The line of code appears blank!
Is there a setting I need to change to see it?
Carolem

Yuneek
Wed 7th Apr '04, 11:47pm
I need this too!

The line of code appears blank!
Is there a setting I need to change to see it?
CarolemI would imagine it has something to do with account activation license wise. You probably have not registered your account to your vBulletin license.

PGAmerica
Thu 8th Apr '04, 3:01pm
Yuneek, I appreciate the offer of help. I could really use it here.

If you can just tell me what to search for in the showthread template and where to add the code, I can do it myself.

Thanks in advance

Zachery
Thu 8th Apr '04, 3:23pm
That code works just fine

Find



<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><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>
</if>

replace with


<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><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>
<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>
</td>
</if>

PGAmerica
Thu 8th Apr '04, 4:07pm
Zachery, very cool. Thank you.

For those who want to add it to the bottom as well:

in the "showthread" template search for


<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;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>
</if>

and replace it with


<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><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>
<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>
</td>
</if>

Zachery
Thu 8th Apr '04, 4:11pm
Should be the same process. however



<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;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>
and replace with



<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;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><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></td>

Yuneek
Thu 8th Apr '04, 4:13pm
Yuneek, I appreciate the offer of help. I could really use it here.

If you can just tell me what to search for in the showthread template and where to add the code, I can do it myself.

Thanks in advance Ah, sorry, didn't catch this until now. It looks like Zachery got you all fixed up though, still need anything?