PDA

View Full Version : Help with a support mod


Me!
12-02-2003, 04:34 AM
Hi you can find the source post here: https://vborg.vbsupport.ru/showthread.php?p=449912#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.

// +++++++ Support Forum Helper Hack +++++++
$helpoption = iif($foruminfo[forumid] == $HELPforum,'0','');
$DB_site->query("
INSERT INTO thread
(threadid,title,lastpost,forumid,open,replycount,p ostusername,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