Log in

View Full Version : New Posting Features - Add a New Thread Button to Showthread


Kolbi
10-12-2009, 10:00 PM
Search in the template SHOWTHREAD for:
<if condition="$show['largereplybutton']">
<td class="smallfont">
and you?ll find it twice and you have to add each time:
<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;
below it.

The attached product is for people who use the TMS.
Product and template edits will be included automatically then.

Please click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=225162)

It will look like:
Demo (http://www.2-wheel-planet.de/a/381-10000-zaehlen.html)


Matthias

Damien1990
10-13-2009, 06:48 PM
Thanks, installed.

choccyclaire
10-13-2009, 07:21 PM
I keep meaning to add this. Thanks.

blackberry
10-16-2009, 09:39 AM
nice mod

what is TMS?

Kolbi
10-16-2009, 11:32 AM
This is TMS: https://vborg.vbsupport.ru/showthread.php?t=152931

Dflow75
10-22-2009, 06:33 PM
Thanks I was looking for this.

COL NIL SATIS
10-23-2009, 01:58 PM
installed

TalkVirginia
11-08-2009, 06:20 AM
I tried to install this with the TMS on vb 3.8.4 pl1 and I get an error "Invalid File" when I try to import it.

Kolbi
11-08-2009, 12:20 PM
You have to install this product as a normal plugin.

Perhaps you understood it a little bit wrong an tried to import it via TMS? It only needs TMS :)
I hope I could help you.

vijayninel
11-08-2009, 01:02 PM
Cool mod... thanks. I put it only for the button below the thread though.

Installed. :)

Kolbi
11-08-2009, 02:09 PM
Cool mod... thanks. I put it only for the button below the thread though.

Installed. :)
Than only add the button below the first search result.
Or I modify the plugin for you.

Please click Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=225162)

ChopSuey
11-10-2009, 12:28 AM
Very nice hacks :)

Kolbi
11-10-2009, 03:09 PM
Thank you :)

fatdr
11-10-2009, 05:30 PM
fine,
a need property for a forum ;)

RaSa
11-23-2009, 07:49 PM
Hmm,

I?ve VB 3.8.4 PL1 installed. To make work your Feature I changed your Code into

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;

because I got http://www.mysite.com/newthread.php?do=newthread&f=-1

Kolbi
11-23-2009, 08:34 PM
Hmm,

I?ve VB 3.8.4 PL1 installed. To make work your Feature I changed your Code into

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>&nbsp;

because I got http://www.mysite.com/newthread.php?do=newthread&f=-1
Bug can?t be reproduced... ? :) Using 3.8.4 pl1 as well?
But glad to hear that you could modify it for yourself.

obetyance
06-01-2010, 10:42 PM
Sir Kolbi, is there a way to show this in some boards (forumid) only?

Kolbi
06-02-2010, 06:57 AM
Yes there is a possibility. Try:
<if condition="in_array($forum[forumid],array(X, X, X))"><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>

Replace X, X, X with your Forum ID?s.

obetyance
06-06-2010, 12:35 AM
Ok.

With that example, in the FORUMDISPLAY template, can we replace the NEW THREAD button with another image and link instead of showing both image and link like sample below?

<tr valign="bottom">
<td class="smallfont">
<if condition="in_array($foruminfo['forumid'], array(64,65,66,67,23,24))">
<a href="misc.php?do=forms" rel="nofollow"><img src="$stylevar[imgdir_button]/newadform.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if>
<if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>


is like:

if
elseif
elseif
endif


Thanks! :)

cyb3rgh0st_
07-03-2010, 12:11 AM
thanks man :D !!!

farazfaraz
07-07-2010, 09:04 PM
nice...

soundbarrierpro
09-26-2010, 11:43 AM
Anybody know the if statement to wrap around for admin to see this only?

JustAskJulie
04-02-2012, 10:29 PM
Is there an update to this for 4.0?