vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New Thread Button Issue (https://vborg.vbsupport.ru/showthread.php?t=224162)

Blackbeard02 09-28-2009 11:24 PM

New Thread Button Issue
 
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 ?

Quote:

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

Quote:

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 12:19 AM

What is in the page source where that code is in the showthread page?

Blackbeard02 09-29-2009 12:33 AM

1 Attachment(s)
I'm not sure what your asking me so here is my Showthread template

Lynne 09-29-2009 12: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 12: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 :)


All times are GMT. The time now is 10:51 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
  • Page Generation 0.02250 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete