PDA

View Full Version : Add Newthread button in Showthread


CongTuDepTrai
08 Dec 2005, 15:04
Work with 3.5.1 too


this is the small code for the showthread template, add newthread button next to newreply button:

to do that

find in showthread template

<if condition="$show['largereplybutton']">
<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" />

and replace with the code below

<td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;
<if condition="$show['largereplybutton']">
<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" />




remember that there is 2 reply button above and below the thread so you have to do that twice

michaelbenson
08 Dec 2005, 15:43
This has already been released i think.

CongTuDepTrai
08 Dec 2005, 16:07
only saw for 3.5 RC2, this different if you take a look

kall
08 Dec 2005, 16:57
only saw for 3.5 RC2, this different if you take a look

Doesn't look much different to http://www.vbulletin.org/forum/showthread.php?t=101116 (3.5.1) .. but http://www.vbulletin.org/forum/showthread.php?t=91064 (3.5 RC2) can't be all that much different.

Snake
08 Dec 2005, 17:19
I have installed those two mods but I've to say that this one is the best. Thanks!

CongTuDepTrai
08 Dec 2005, 17:39
I have installed those two mods but I've to say that this one is the best. Thanks!

thanks

seem like we come from same area

nobita
10 Dec 2005, 01:30
thanks

seem like we come from same aread

Chu' kha' phe^t' nhi? $-)

Snake
10 Dec 2005, 12:59
What the hell... O.o

LBSources
26 Dec 2005, 04:32
works well ..

/me clicks install

Snake
24 Jan 2006, 13:24
Just reinstalled this hack since the server move. :)

Raymondlee714
26 Jan 2006, 07:49
Help, this happen after i modified this:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/+++++++/public_html/showthread.php(1911) : eval()'d code on line 24

Snake
26 Jan 2006, 13:10
Yeah I've noticed a few bugs while running on v3.5.3. This needs to be checked and sorted out!

Raymondlee714
26 Jan 2006, 15:49
and replace with the code below

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forumid" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;<if condition="$show['largereplybutton']">
<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" />


with out this: <td class="smallfont">

zzzxxzzz
27 Jan 2006, 03:45
thanks alot

CongTuDepTrai
27 Jan 2006, 03:47
sorry, i was busy at school, i will upgrade my board tomorrow and will check 3.5.3, I am runiing 3.5.2 right now, thanks a lot Raymondlee

GNDI
15 Feb 2006, 00:41
I'll keep getting this when I try to modify the style whit this script :(

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/psa/home/vhosts/gndindex.com/httpdocs/includes/adminfunctions_template.php(3537) : eval()'d code on line 25

I'm Using VB 3.5.3

CongTuDepTrai
16 Feb 2006, 03:26
sorry, i check it and it work good with my 3.5.3 vbb board

GNDI
16 Feb 2006, 04:44
Well I had to use this scipt and that worked right away

carolem
24 Jul 2006, 05:07
This seems to work fine in 3.6 Release Candidate 2

thanks,
Carolem