![]() |
Quote:
To specify an alternative forum - Go down to near the end of the php file, replace $forum[forumid] in the $url line to the number of the user forum. |
Thank you, it works great.
|
Quote:
Now can anyone tell me how that line should look if you want to have more than 1 forum? (example: forum A should use formA.php, forum B should use formB.php, etc.) Basically, how do you extend the "if condition" to work for more than 1 forumid? |
Quote:
https://vborg.vbsupport.ru/showpost....8&postcount=11 |
I try to make the form reply to a thread, and I know I have given the right options (enabled, forumid, threadid). When the form is submitted, I get a mysql error:
Code:
mysql error: Table 'forums.post' doesn't exist PHP Code:
|
Quote:
All I'm talking about is the redirect code when you click on "New Thread". I have different form.php files for each forum. I just need the redirect to understand that if it's forumid 123 then clicking on "New Thread" should redirect to form123.php. And if it's forumid 456 it should go to form456.php |
I'm very new to PHP, and I don't know that this is correct, but I believe this will work for you...
In Forumdisplay template, find: Code:
<a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"> Code:
<a href="<if condition="$foruminfo['forumid'] == xx">form.php<elseif condition="$foruminfo['forumid'] == yy">form2.php<elseif condition="$foruminfo['forumid'] == zz">form3.php<else />newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]</if>"> Back up your template first, but I believe this will work for you. If it doesn't, change the closing </if> tag to </endif>. |
Thanks, but I get a parse error. I tried both </if> and </endif>
|
Damn. Well, I'm sorry, I really thought that would do it. I'll see what I can find out.
|
a nice feature to this would be to be able to customize everything in admincp
|
All times are GMT. The time now is 11:27 PM. |
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:
|