[REQ] (Custom Mod) NewThread Button

Guernica

New Member
I have been dying to know how this is done. It can't be that hard for PHP people, I know a little bit but not enough. :(

I am looking to make the newthread button in specific forums, direct users to a different page than the newthread.php page. I am thinking of trying to tie it in with another mod and just add on, but I am not sure what the php would be. =/

Any help really appreciated!
 
Guernica said:
I have been dying to know how this is done. It can't be that hard for PHP people, I know a little bit but not enough. :(

I am looking to make the newthread button in specific forums, direct users to a different page than the newthread.php page. I am thinking of trying to tie it in with another mod and just add on, but I am not sure what the php would be. =/

Any help really appreciated!

umm jusr edit the newthread template in your style Cpanel/Styles/your style/all templates, use Dreamweaver CS3 to do this
 
J.Black said:
umm jusr edit the newthread template in your style Cpanel/Styles/your style/all templates, use Dreamweaver CS3 to do this

Yes, but I only want it to appear in specific forums. Like for my download forums, have a New Download button, instead of New Thread, and it links to:
(where ever)
 
just add conditions into your template codes, i believe it is this

Code:
<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 />&nbsp;</if></td>

And Replace it with this:

Code:
<if condition="forumid=[color=Red]1[/color]">]<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 />&nbsp;</if></td></if>

and just edit the forum id, correct me if im wrong.

if you plan on finding this check in the forumdisplay template
 
plot said:
And Replace it with this:

Code:
<if condition="forumid=[color=Red]1[/color]">]<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 />&nbsp;</if></td></if>

and just edit the forum id, correct me if im wrong.

if you plan on finding this check in the forumdisplay template

Hmmmm, I am not sure if that is a correct if statment in vBulletin, but you prolly know more than me. I am gunna try that, as soon as my host wakes up. Thanks man!!!
 
i dont think i have the right varible dont hold me to that, it may be:
Code:
<if condition="($bbuserinfo[forumid]=='[color=Red]1[/color]')">
</if>

im not sure
 
Back
Top