vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Help with a support mod (https://vborg.vbsupport.ru/showthread.php?t=58954)

Me! 12-02-2003 04:34 AM

Help with a support mod
 
Hi you can find the source post here: https://vborg.vbsupport.ru/showthrea...912#post449912

I use Vbulletin 2.3.2. When I installed this mod, it would bring up an error whenever you tried to create a new thread. You could post a reply like normal, however when a new thread was posted it would bring up an error, something to the effects of "Inavlid thread specified" The problem seemed to be the following code you were to put in newthread.php.

Code:

// +++++++ Support Forum Helper Hack +++++++
        $helpoption = iif($foruminfo[forumid] == $HELPforum,'0','');
      $DB_site->query("
          INSERT INTO thread
          (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastpos  ter,dateline,iconid,visible,attach,helpoption)
          VALUES
          (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount','$helpoption')");
// +++++++ Support Forum Helper Hack +++++++

Any help would be greatly appreciate as this is a very helpful mod.

Me! 12-10-2003 05:35 AM

bump :/ Too bad this is a cool hack!

g-force2k2 12-14-2003 03:16 PM

make sure that when you modified the file that you didn't comment out any code that you shouldn't have on accident, but if you want to just show me the section of coding around that area I would be more than willing to see what I can do.

Regards,
g-force2k2


All times are GMT. The time now is 01:41 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.00921 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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