![]() |
Quote:
|
Quote:
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> 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> 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> To do this with three or more different forums, just add: Code:
<if condition="$foruminfo['forumid'] == XX">newthread.php?do=formXX<else /> Code:
</if> Code:
" rel="nofollow"> I hope this is what you were asking for and I also hope I explained it well enough for you. Good Luck! |
Quote:
|
Quote:
|
Hello,
I have a little problem with this hack, the title of all post generated are fixed (var $posttitle = "$formtitle"), how can I make to choose the title to the user? Thank you |
Quote:
|
Hello,
I have an error. Can you help me, please ? Thanks, Cédric :ermm: |
Re,
The error is here. forumid = 0 How change this ? Thanks, Cédric :ermm: |
Quote:
|
Since upgrading long answers no longer show up, any ideas?
|
All times are GMT. The time now is 08:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|