PDA

View Full Version : New Thread Button Issue


Blackbeard02
09-29-2009, 12:24 AM
I have tried 2 different mods to add a new thread and I get this message with both mods, can someone tell me how to fix this issue ?

Invalid Forum specified. If you followed a valid link, please notify the administrator

Here are the 2 mods I have tried

https://vborg.vbsupport.ru/showthread.php?t=219443

and

Instructions:
1- go to your "SHOWTHREAD" template
2- look for the the following code: TWICE

<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>

Replace with

<td class="smallfont"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" border="0" alt="$vbphrase[post_new_thread]" /></a>&nbsp;&nbsp;<a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" ></if></a></td>

Lynne
09-29-2009, 01:19 AM
What is in the page source where that code is in the showthread page?

Blackbeard02
09-29-2009, 01:33 AM
I'm not sure what your asking me so here is my Showthread template

Lynne
09-29-2009, 01:38 AM
I'm talking about the page source.... the stuff that is sent to your browser that it then uses to make your page. Usually you to View > Page Source in the browser.

Also, you should not be using $foruminfo[forumid] in the SHOWTHREAD template, it should be $threadinfo[forumid]. Replace that and see if it works. And post int he thread you got that in and correct it.

Blackbeard02
09-29-2009, 01:53 AM
Thank you Lynne that did the trick for the second mod, which is the one I prefer because it puts the new thread button next to the reply button. The first one still gets the error but I am in buisness now :)