Quote:
Originally Posted by SlimWicked
wow! This seems like a GREAT Hack..Now this is the one question I can't seem to find the answer to. Lets say I have a mp3 post forum and a form to submit info on the mp3. Now when someone enters the mp3 forum, were do I go or how do I edit the "Post a topic or start new thread button" so that is points to the
hxxp://www.mysite.com/newthread.php?do=Mp3Post
I just can't seem to figure this one out. Sorry if this is a dumb question. :ermm:
|
This is pretty easy. I searched for the post where I found the info but came up dry. I think I found it on vbulletin.com and it explained it better than I am about to.
Template is FORUMDISPLAY
Find this section of the default code:
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 /> </if></td>
Now if you just have one forum where you want the New Thread button to go to a specific form intead of the regular editor, replace the above code with the code below.
Code:
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else />newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]</if>" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
Make sure to replace
XX in the
$foruminfo['forumid'] == XX to the forum ID number of the forum you want this to happen in.
And change
formXX to the name of your forum (in your case
Mp3Post) that you want to be taken to when the button is clicked in that forum,
Now if you have more than one forum with more than one form you can do that too. Say you have your MP3 forum and a different movie forum, each with a different form you want it to go to when you click the New Thread button you just simply add more conditionals and closing if statements.
So for two of them you could use:
Code:
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else /><if condition="$foruminfo['forumid'] == YY">newthread.php?do=formYY<else />newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]</if></if>" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
Now when you are in forum XX and click the New Thread button you will be taken to the forum
formXX and when you are in forum YY and click the New Thread button you will instead be taken to
formYY. Of course as with the first modifaction, you are are in any forum other than the one or two you are replacing, you will be taken to the normal new thread editor.
To do this with three or more different forums, just add:
Code:
<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else />
in the appropriate spot and another closing:
before
for each new forum that you want the New Thread button's behavior to change.
I hope this is what you were asking for and I also hope I explained it well enough for you. Good Luck!