Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. Details »»
FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News.
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-11-2004 Last Update: Never Installs: 214
 
No support by the author.

FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS
Version 1.6 for vBulletin 3.x.x by Dr Erwin Loh

Features:

Ever wanted an online form that a user can fill out, which when submitted gets:

1. Posted into a new thread in a forum of your choice
2. Create a new poll in the new thread with options of your choice
3. Posted as a reply in an existing thread of your choice
4. PMed to you or someone else
5. Emailed to an email address you specify
6. Choose to redirect to the post, thread or forum, or a custom thank you message
7. Choose to redirect to editpost to upload attachments

Or any combination or all of the above?

Well, this is the hack for you!

You can use this for:

1) Moderator Applications
2) Quiz Submit Form which gets PMed to a moderator
3) Contact Form that goes to PM, email or thread
4) Guests to apply to be members
5) Report a Moderator form that goes as a PM to you
6) Guests can PM you for whatever reason
7) Order form to buy things
8) Donation form
9) News or Articles submissions that can go straight to a thread


Or anything you like - this hack is totally customizable via the PHP file.
Basically, this hack involves modifying 1 PHP file form.php (you add questions, options etc. in the PHP file itself), uploading it, and then adding 2 templates.

The beauty of this hack is that once you have added the 2 templates, to make a new form, all you need to do is copy the form.php and rename it to form2.php, edit the variables in the PHP file, and you have a totally new form!!! You do not need to touch the templates again.

Format of the form:

1. One main input question
2. 2 Radio buttons Choice questions
3. 3 Normal text input questions
4. 1 Long answer question

This is customizable via the PHP file.

Also:
- You can set the usergroups you want access to this form.
- Depending on your forum permissions, if the new thread is in a public forum, members can reply to it. This hack allows a form to submit the new thread or post wherever you want it to go.
- Force the user to answer all questions.


INSTALLATION


Easy - takes only a few minutes:

1. Add the 2 templates.

2. Edit form.php - the instructions are all inside the PHP file itself, in the top half. Follow the instructions carefully!

3. Upload form.php

Just link to form1.php eg. http://www.yourforum.com/forums/form.php

Done!

Use this hack to make as many forms as you like!

Enjoy!


Updates:

Version 1.1 - Option to force user to answer all questions.
Version 1.2 - Thread count and lastposter information now updated if form is sent to existing thread.
Version 1.3 - ADDED CREATE POLL OPTION!
Version 1.4 - Fixed bug with Form-to-thread code
Version 1.5 - Major update:
- fixed bug where thread count not updated when form to forum
- fixed default posting to allow smilies and sigs when reply to thread
- added templates to cache (saves 2 queries)
- added option to change thank you message
- added options to redirect to post, thread or forum when submit
Version 1.6 - Choose to redirect to editpost to upload attachments

Screenshot is an example of a form - the form title and questions are customizable:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 08-24-2004, 02:11 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Isaiah33
a nice feature to this would be to be able to customize everything in admincp
Can be done, but would take a whole more coding on my behalf, and add extra queries to call up the variables from the database - I released this as courtesy for other forum admins - I don't have the time to code an Admin CP backend - wish I did.
Reply With Quote
  #183  
Old 08-24-2004, 04:00 AM
Virulent1 Virulent1 is offline
 
Join Date: Aug 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im having some trouble.. install is fine.. got everything to work.. but its about modifing this form.php...

PREVIEW HERE: http://www.craq.org/vb/form.php

See theres a textbox under the first question.. i dont want that there... and i dont want "Choose one of the following choices" either... i want Yes or No to be where that textbox is now... and Under "How long will you be able to moderate" theres suppose to be 3 choices and only 2 show up... and i don't want that text box beside it there either... well thats it.. please someone help heres my current code:


PHP Code:
<?php

/*======================================================================*\
|| #################################################################### ||
|| # FORM TO THREAD/ FORUM/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS    # ||
|| # Version 1.3 for vBulletin 3.x.x by Dr Erwin Loh                  # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2004 Dr Erwin Loh. All Rights Reserved.          # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

globalize($_POST, array(
'normalanswer1' => STR,
'radioanswer1' => STR,
'radioanswer2' => STR,
'radioanswer3' => STR,
'radioanswer3other' => STR,
'answer1' => STR,
'answer2' => STR,
'answer3' => STR,
'longanswer1' => STR,
'action' => STR
));

// #######################################################################
// ######################## CUSTOMIZE VARIABLES ##########################
// #######################################################################

////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array 
////////////////////////////////////////////////////////////////////////////////////////////////////

if (!in_array($bbuserinfo['usergroupid'], array(2,5,6,7))) print_no_permission();

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF THIS PHP FILE AND TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS!
//You can easily make more forms by just copying this file, renaming it, and modifying the variable in
//this file. You can keep the same templates for different forms. For more customization, you can 
//use different templates, by renaming and modifying the templates.
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of this file
$phpfilename "form.php";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "0";

//FORUM TO POST NEW THREAD IN
$formforumid "0";

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll "1";
$formoption1 "Yes";
$formoption2 "No";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD
$formreply "0";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid "0";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm "1";

//USERID TO PM TO
$formpmid "1";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail "1";

//EMAIL ADDRESS TO EMAIL TO
$formemailaddress "virulent@verizon.net";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
////////////////////////////////////////////////////////////////////////////////////////////////////

$answerall "1";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formtitle "Moderator Application";

////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose "The purpose of this form is to allow everyone at craQ [dot] org to have an equal chance at becoming a moderator.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$normalquestion1 "Would you be able to contribute to a monthly donation for server expenses?";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion1 "Choose one of the following choices";

// The following choices must NOT have quotation marks
$radiochoice1a "yes";
$radiochoice1b "no";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion2 "How old are you? [Be honest]";

// The following choices must NOT have quotation marks
$radiochoice2a "13 or below";
$radiochoice2b "14 - 18";
$radiochoice2c "18+";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion3 "How often will you be on to moderate? [Be honest]";

// The following choices must NOT have quotation marks
$radiochoice3a "1 Hour/Less a day";
$radiochoice3b "2-4 Hours a day";
$radiochoice3c "4+ Hours a Day";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 "What is your name?";
$explain1 "Please enter your real name here.";

//QUESTION 2 (do not use quotation marks or you will get a parse error)
$question2 "What is your email?";
$explain2 "Please enter your real email here.";

//QUESTION 3 (do not use quotation marks or you will get a parse error)
$question3 "What is your website?";
$explain3 "Please enter your URL here.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 "Please write down a paragraph about yourself.";
$longexplain1 "For example, a bit about your experience in this area.";

////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
/////  DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// start navbar
$navbits = array(
    
"$phpfilename?$session[sessionurl]=> $formtitle
);

$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');

if (
$action=="submit") {

if (
$answerall == "1") {
    if (
$normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $longanswer1 == '')
    {
    
$errormessage "$bbuserinfo[username], you need to answer every question!";
    eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
    exit();
    }
}

    eval(
'$formsend = "' fetch_template('formanswers') . '";');

    if (
$formforum == "1") {

                    
$DB_site->query("
                                INSERT INTO " 
TABLE_PREFIX "thread(title, lastpost, forumid, open, replycount,
                                postusername, postuserid, lastposter, dateline, iconid, visible, attach)
                                VALUES
                                        ('"
.addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle', " TIMENOW ", $formforumid,
                                         1, 0, '" 
addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid],
                                         '" 
addslashes($bbuserinfo['username']) . "', " TIMENOW ", 0, 1,
                                         0)
                        "
);
                
$thread['threadid'] = $DB_site->insert_id();
                
$DB_site->query("
                        INSERT INTO " 
TABLE_PREFIX "post
                                (threadid, title, username, userid, dateline, pagetext, allowsmilie,
                                 showsignature, iconid, visible)
                        VALUES
                                (
$thread[threadid], '".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle',
                                 '" 
addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " TIMENOW ",
                                 '" 
addslashes($formsend) . "', 1, 1,
                                 0, 1)
                "
);
                
$post['postid'] = $DB_site->insert_id();
                
$DB_site->query("
                                UPDATE " 
TABLE_PREFIX "thread
                                SET firstpostid = 
$post[postid]
                                WHERE threadid = 
$thread[threadid]
                        "
);
                
$DB_site->query("
                                UPDATE " 
TABLE_PREFIX "forum
                                SET replycount = replycount +  1,
                                " 
iif($type == 'thread''threadcount = threadcount + 1,') . "
                                lastpost = " 
TIMENOW ",
                                lastposter = '" 
addslashes($bbuserinfo['username']) . "',
                                lastthread = '"
.addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle',
                                lastthreadid = 
$thread[threadid]
                                WHERE forumid = 
$formforumid
                        "
);

    }

    if (
$formpoll == "1") {
              
$DB_site->query("INSERT INTO " TABLE_PREFIX "poll (question,dateline,options,votes,active,numberoptions,timeout,multiple,public) VALUES ('".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle'," TIMENOW ",'$formoption1|||$formoption2','" addslashes("0|||0") . "',1,2,0,0,0)");
            
$pollid $DB_site->insert_id();
            
$DB_site->query("UPDATE " TABLE_PREFIX "thread SET pollid = '".$pollid."' WHERE threadid = '".$thread[threadid]."'");
}

    if (
$formreply == "1") {
      
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" addslashes($formsend) . "','$allowsmilie','$signature','$ipaddress','$iconid','1')");
      
$DB_site->query("UPDATE thread SET replycount = replycount + 1, lastpost = " TIMENOW ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid"); 
    }

    if (
$formpm == "1") {
$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)\nVALUES\n\t($bbuserinfo[userid], '" addslashes($bbuserinfo['username']) . "', '".addslashes(htmlspecialchars($formtitle))."', '".addslashes(htmlspecialchars($formsend))."', '" addslashes(serialize($tostring)) . "', 0, " TIMENOW ", 1)");
$pmtextid $DB_site->insert_id();
$DB_site->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid, messageread) VALUES ($pmtextid$formpmid, 0)");
$DB_site->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $formpmid");
    }

    if (
$formemail == "1") {
    
vbmail($formemailaddress$formtitle$formsend);
    }

    
$errormessage "$bbuserinfo[username], thank you for submitting the $bbtitle $formtitle!";
    eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
   exit();
}

eval(
'print_output("' fetch_template('form') . '");');
?>
Reply With Quote
  #184  
Old 08-24-2004, 04:32 AM
mOdEtWo mOdEtWo is offline
 
Join Date: Dec 2003
Location: Norway
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mOdEtWo
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
mysql error number: 1146
Is there something wrong with the post sql code?

PHP Code:
                $DB_site->query("
                        INSERT INTO " 
TABLE_PREFIX "post
                                (threadid, title, username, userid, dateline, pagetext, allowsmilie,
                                 showsignature, iconid, visible)
                        VALUES
                                (
$thread[threadid], '".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle',
                                 '" 
addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " TIMENOW ",
                                 '" 
addslashes($formsend) . "', 1, 1,
                                 0, 1)
                "
); 
Erwin, got any idea why I get a database error on this?

Does "post into an existing thread" work for anyone else?
Reply With Quote
  #185  
Old 08-24-2004, 06:29 AM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mOdEtWo
Does "post into an existing thread" work for anyone else?
I can't answer your first question

but your second, yes it worked fine for me on new thread and post to existing thread as a reply
Reply With Quote
  #186  
Old 08-24-2004, 06:48 AM
Isaiah33 Isaiah33 is offline
 
Join Date: Aug 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i isntallaed and customized it makes a great poll but doesnt show any of the vouch questions or answers
Reply With Quote
  #187  
Old 08-24-2004, 12:13 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code works.

Quote:
mysql error: Table 'forums.post' doesn't exist
The code can't find your post table for whatever reason. Is your database prefix forums?
Reply With Quote
  #188  
Old 08-24-2004, 12:29 PM
PKRWUD's Avatar
PKRWUD PKRWUD is offline
 
Join Date: Jan 2003
Location: Ventura, California
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Virulent1
im having some trouble.. install is fine.. got everything to work.. but its about modifing this form.php...

PREVIEW HERE: http://www.craq.org/vb/form.php

See theres a textbox under the first question.. i dont want that there... and i dont want "Choose one of the following choices" either... i want Yes or No to be where that textbox is now... and Under "How long will you be able to moderate" theres suppose to be 3 choices and only 2 show up... and i don't want that text box beside it there either... well thats it.. please someone help heres my current code:


PHP Code:
<?php

/*======================================================================*\
|| #################################################################### ||
|| # FORM TO THREAD/ FORUM/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS    # ||
|| # Version 1.3 for vBulletin 3.x.x by Dr Erwin Loh                  # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2004 Dr Erwin Loh. All Rights Reserved.          # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

globalize($_POST, array(
'normalanswer1' => STR,
'radioanswer1' => STR,
'radioanswer2' => STR,
'radioanswer3' => STR,
'radioanswer3other' => STR,
'answer1' => STR,
'answer2' => STR,
'answer3' => STR,
'longanswer1' => STR,
'action' => STR
));

// #######################################################################
// ######################## CUSTOMIZE VARIABLES ##########################
// #######################################################################

////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array 
////////////////////////////////////////////////////////////////////////////////////////////////////

if (!in_array($bbuserinfo['usergroupid'], array(2,5,6,7))) print_no_permission();

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF THIS PHP FILE AND TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS!
//You can easily make more forms by just copying this file, renaming it, and modifying the variable in
//this file. You can keep the same templates for different forms. For more customization, you can 
//use different templates, by renaming and modifying the templates.
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of this file
$phpfilename "form.php";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "0";

//FORUM TO POST NEW THREAD IN
$formforumid "0";

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll "1";
$formoption1 "Yes";
$formoption2 "No";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD
$formreply "0";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid "0";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm "1";

//USERID TO PM TO
$formpmid "1";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail "1";

//EMAIL ADDRESS TO EMAIL TO
$formemailaddress "virulent@verizon.net";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
////////////////////////////////////////////////////////////////////////////////////////////////////

$answerall "1";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formtitle "Moderator Application";

////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose "The purpose of this form is to allow everyone at craQ [dot] org to have an equal chance at becoming a moderator.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$normalquestion1 "Would you be able to contribute to a monthly donation for server expenses?";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion1 "Choose one of the following choices";

// The following choices must NOT have quotation marks
$radiochoice1a "yes";
$radiochoice1b "no";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion2 "How old are you? [Be honest]";

// The following choices must NOT have quotation marks
$radiochoice2a "13 or below";
$radiochoice2b "14 - 18";
$radiochoice2c "18+";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion3 "How often will you be on to moderate? [Be honest]";

// The following choices must NOT have quotation marks
$radiochoice3a "1 Hour/Less a day";
$radiochoice3b "2-4 Hours a day";
$radiochoice3c "4+ Hours a Day";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 "What is your name?";
$explain1 "Please enter your real name here.";

//QUESTION 2 (do not use quotation marks or you will get a parse error)
$question2 "What is your email?";
$explain2 "Please enter your real email here.";

//QUESTION 3 (do not use quotation marks or you will get a parse error)
$question3 "What is your website?";
$explain3 "Please enter your URL here.";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 "Please write down a paragraph about yourself.";
$longexplain1 "For example, a bit about your experience in this area.";

////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
/////  DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// start navbar
$navbits = array(
    
"$phpfilename?$session[sessionurl]=> $formtitle
);

$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');

if (
$action=="submit") {

if (
$answerall == "1") {
    if (
$normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $longanswer1 == '')
    {
    
$errormessage "$bbuserinfo[username], you need to answer every question!";
    eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
    exit();
    }
}

    eval(
'$formsend = "' fetch_template('formanswers') . '";');

    if (
$formforum == "1") {

                    
$DB_site->query("
                                INSERT INTO " 
TABLE_PREFIX "thread(title, lastpost, forumid, open, replycount,
                                postusername, postuserid, lastposter, dateline, iconid, visible, attach)
                                VALUES
                                        ('"
.addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle', " TIMENOW ", $formforumid,
                                         1, 0, '" 
addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid],
                                         '" 
addslashes($bbuserinfo['username']) . "', " TIMENOW ", 0, 1,
                                         0)
                        "
);
                
$thread['threadid'] = $DB_site->insert_id();
                
$DB_site->query("
                        INSERT INTO " 
TABLE_PREFIX "post
                                (threadid, title, username, userid, dateline, pagetext, allowsmilie,
                                 showsignature, iconid, visible)
                        VALUES
                                (
$thread[threadid], '".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle',
                                 '" 
addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " TIMENOW ",
                                 '" 
addslashes($formsend) . "', 1, 1,
                                 0, 1)
                "
);
                
$post['postid'] = $DB_site->insert_id();
                
$DB_site->query("
                                UPDATE " 
TABLE_PREFIX "thread
                                SET firstpostid = 
$post[postid]
                                WHERE threadid = 
$thread[threadid]
                        "
);
                
$DB_site->query("
                                UPDATE " 
TABLE_PREFIX "forum
                                SET replycount = replycount +  1,
                                " 
iif($type == 'thread''threadcount = threadcount + 1,') . "
                                lastpost = " 
TIMENOW ",
                                lastposter = '" 
addslashes($bbuserinfo['username']) . "',
                                lastthread = '"
.addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle',
                                lastthreadid = 
$thread[threadid]
                                WHERE forumid = 
$formforumid
                        "
);

    }

    if (
$formpoll == "1") {
              
$DB_site->query("INSERT INTO " TABLE_PREFIX "poll (question,dateline,options,votes,active,numberoptions,timeout,multiple,public) VALUES ('".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle'," TIMENOW ",'$formoption1|||$formoption2','" addslashes("0|||0") . "',1,2,0,0,0)");
            
$pollid $DB_site->insert_id();
            
$DB_site->query("UPDATE " TABLE_PREFIX "thread SET pollid = '".$pollid."' WHERE threadid = '".$thread[threadid]."'");
}

    if (
$formreply == "1") {
      
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username])).$formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" addslashes($formsend) . "','$allowsmilie','$signature','$ipaddress','$iconid','1')");
      
$DB_site->query("UPDATE thread SET replycount = replycount + 1, lastpost = " TIMENOW ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid"); 
    }

    if (
$formpm == "1") {
$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)\nVALUES\n\t($bbuserinfo[userid], '" addslashes($bbuserinfo['username']) . "', '".addslashes(htmlspecialchars($formtitle))."', '".addslashes(htmlspecialchars($formsend))."', '" addslashes(serialize($tostring)) . "', 0, " TIMENOW ", 1)");
$pmtextid $DB_site->insert_id();
$DB_site->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid, messageread) VALUES ($pmtextid$formpmid, 0)");
$DB_site->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $formpmid");
    }

    if (
$formemail == "1") {
    
vbmail($formemailaddress$formtitle$formsend);
    }

    
$errormessage "$bbuserinfo[username], thank you for submitting the $bbtitle $formtitle!";
    eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
   exit();
}

eval(
'print_output("' fetch_template('form') . '");');
?>

Here's the form.php file the way you want it...

Code:
<?php 

/*======================================================================*\ 
|| #################################################################### || 
|| # FORM TO THREAD/ FORUM/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS++++# || 
|| # Version 1.3 for vBulletin 3.x.x by Dr Erwin Loh++++++++++++++++++# || 
|| # ---------------------------------------------------------------- # || 
|| # Copyright ?2000?2004 Dr Erwin Loh. All Rights Reserved.++++++++++# || 
|| # This file may not be redistributed in whole or significant part. # || 
|| #################################################################### || 
\*======================================================================*/ 

// ####################### SET PHP ENVIRONMENT ########################### 
error_reporting(E_ALL & ~E_NOTICE); 

// ######################### REQUIRE BACK-END ############################ 
require_once('./global.php'); 

globalize($_POST, array( 
'radioanswer1' => STR, 
'radioanswer2' => STR, 
'radioanswer3' => STR, 
'answer1' => STR, 
'answer2' => STR, 
'answer3' => STR, 
'longanswer1' => STR, 
'action' => STR 
)); 

// ####################################################################### 
// ######################## CUSTOMIZE VARIABLES ########################## 
// ####################################################################### 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
////// BEGIN CUSTOMIZATION BELOW//////////////////////////////////////////////////////////////////// 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//USERGROUPS ALLOWED 
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array
//////////////////////////////////////////////////////////////////////////////////////////////////// 

if (!in_array($bbuserinfo['usergroupid'], array(2,5,6,7))) print_no_permission(); 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//NAME OF THIS PHP FILE AND TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS! 
//You can easily make more forms by just copying this file, renaming it, and modifying the variable in 
//this file. You can keep the same templates for different forms. For more customization, you can
//use different templates, by renaming and modifying the templates. 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

// Name of this file 
$phpfilename = "form.php"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED 
/////////////////////////////////////////////////////////////////////////////////////////////////// 

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no 
$formforum = "0"; 

//FORUM TO POST NEW THREAD IN 
$formforumid = "0"; 

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no 
$formpoll = "1"; 
$formoption1 = "Yes"; 
$formoption2 = "No"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//ENABLE FORM TO REPLY TO EXISTING THREAD 
$formreply = "0"; 

//EXISTING THREAD ID FOR FORM TO REPLY IN 
$formreplythreadid = "0"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no 
$formpm = "1"; 

//USERID TO PM TO 
$formpmid = "1"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no 
$formemail = "1"; 

//EMAIL ADDRESS TO EMAIL TO 
$formemailaddress = "virulent@verizon.net"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$answerall = "1"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//TITLE OF FORM (do not use quotation marks or you will get a parse error) 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$formtitle = "Moderator Application"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error) 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$formpurpose = "The purpose of this form is to allow everyone at craQ [dot] org to have an equal chance at becoming a moderator."; 


//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error) 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$radioquestion1 = "Would you be able to contribute to a monthly donation for server expenses?"; 

// The following choices must NOT have quotation marks 
$radiochoice1a = "yes"; 
$radiochoice1b = "no"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error) 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$radioquestion2 = "How old are you? [Be honest]"; 

// The following choices must NOT have quotation marks 
$radiochoice2a = "13 or below"; 
$radiochoice2b = "14 - 18"; 
$radiochoice2c = "18+"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error) 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$radioquestion3 = "How often will you be on to moderate? [Be honest]"; 

// The following choices must NOT have quotation marks 
$radiochoice3a = "1 Hour/Less a day"; 
$radiochoice3b = "2-4 Hours a day"; 
$radiochoice3c = "4+ Hours a Day"; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//QUESTION 1 (do not use quotation marks or you will get a parse error) 
$question1 = "What is your name?"; 
$explain1 = "Please enter your real name here."; 

//QUESTION 2 (do not use quotation marks or you will get a parse error) 
$question2 = "What is your email?"; 
$explain2 = "Please enter your real email here."; 

//QUESTION 3 (do not use quotation marks or you will get a parse error) 
$question3 = "What is your website?"; 
$explain3 = "Please enter your URL here."; 

//////////////////////////////////////////////////////////////////////////////////////////////////// 

//////////////////////////////////////////////////////////////////////////////////////////////////// 
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error) 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

$longquestion1 = "Please write down a paragraph about yourself."; 
$longexplain1 = "For example, a bit about your experience in this area."; 

//////////////////////////////////////////////////////////////////////////////////////////////// 
////// END OF CUSTOMIZATION //////////////////////////////////////////////////////////////////// 
/////++DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! //////////////////////////////// 
//////////////////////////////////////////////////////////////////////////////////////////////////// 
//////////////////////////////////////////////////////////////////////////////////////////////////// 

// ####################################################################### 
// ######################## START MAIN SCRIPT ############################ 
// ####################################################################### 

// start navbar 
$navbits = array( 
++++"$phpfilename?$session[sessionurl]" => $formtitle 
); 

$navbits = construct_navbits($navbits); 
eval('$navbar = "' . fetch_template('navbar') . '";'); 

if ($action=="submit") { 

if ($answerall == "1") { 
++++if ($normalanswer1 == '' OR $radioanswer1 == '' OR $radioanswer2 == '' OR $radioanswer3 == '' OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $longanswer1 == '') 
++++{ 
++++$errormessage = "$bbuserinfo[username], you need to answer every question!"; 
++++eval('print_output("' . fetch_template('STANDARD_ERROR') . '");'); 
++++exit(); 
++++} 
} 

++++eval('$formsend = "' . fetch_template('formanswers') . '";'); 

++++if ($formforum == "1") { 

++++++++++++++++++++$DB_site->query(" 
++++++++++++++++++++++++++++++++INSERT INTO " . TABLE_PREFIX . "thread(title, lastpost, forumid, open, replycount, 
++++++++++++++++++++++++++++++++postusername, postuserid, lastposter, dateline, iconid, visible, attach) 
++++++++++++++++++++++++++++++++VALUES 
++++++++++++++++++++++++++++++++++++++++('".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle', " . TIMENOW . ", $formforumid, 
+++++++++++++++++++++++++++++++++++++++++1, 0, '" . addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], 
+++++++++++++++++++++++++++++++++++++++++'" . addslashes($bbuserinfo['username']) . "', " . TIMENOW . ", 0, 1, 
+++++++++++++++++++++++++++++++++++++++++0) 
++++++++++++++++++++++++"); 
++++++++++++++++$thread['threadid'] = $DB_site->insert_id(); 
++++++++++++++++$DB_site->query(" 
++++++++++++++++++++++++INSERT INTO " . TABLE_PREFIX . "post 
++++++++++++++++++++++++++++++++(threadid, title, username, userid, dateline, pagetext, allowsmilie, 
+++++++++++++++++++++++++++++++++showsignature, iconid, visible) 
++++++++++++++++++++++++VALUES 
++++++++++++++++++++++++++++++++($thread[threadid], '".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle', 
+++++++++++++++++++++++++++++++++'" . addslashes($bbuserinfo['username']) . "', $bbuserinfo[userid], " . TIMENOW . ", 
+++++++++++++++++++++++++++++++++'" . addslashes($formsend) . "', 1, 1, 
+++++++++++++++++++++++++++++++++0, 1) 
++++++++++++++++"); 
++++++++++++++++$post['postid'] = $DB_site->insert_id(); 
++++++++++++++++$DB_site->query(" 
++++++++++++++++++++++++++++++++UPDATE " . TABLE_PREFIX . "thread 
++++++++++++++++++++++++++++++++SET firstpostid = $post[postid] 
++++++++++++++++++++++++++++++++WHERE threadid = $thread[threadid] 
++++++++++++++++++++++++"); 
++++++++++++++++$DB_site->query(" 
++++++++++++++++++++++++++++++++UPDATE " . TABLE_PREFIX . "forum 
++++++++++++++++++++++++++++++++SET replycount = replycount +++1, 
++++++++++++++++++++++++++++++++" . iif($type == 'thread', 'threadcount = threadcount + 1,') . " 
++++++++++++++++++++++++++++++++lastpost = " . TIMENOW . ", 
++++++++++++++++++++++++++++++++lastposter = '" . addslashes($bbuserinfo['username']) . "', 
++++++++++++++++++++++++++++++++lastthread = '".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle', 
++++++++++++++++++++++++++++++++lastthreadid = $thread[threadid] 
++++++++++++++++++++++++++++++++WHERE forumid = $formforumid 
++++++++++++++++++++++++"); 

++++} 

++++if ($formpoll == "1") { 
++++++++++++++$DB_site->query("INSERT INTO " . TABLE_PREFIX . "poll (question,dateline,options,votes,active,numberoptions,timeout,multiple,public) VALUES ('".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'," . TIMENOW . ",'$formoption1|||$formoption2','" . addslashes("0|||0") . "',1,2,0,0,0)"); 
++++++++++++$pollid = $DB_site->insert_id(); 
++++++++++++$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET pollid = '".$pollid."' WHERE threadid = '".$thread[threadid]."'"); 
} 

++++if ($formreply == "1") { 
++++++$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pagetext,allowsmilie,showsignatu++re,ipaddress,iconid,visible) VALUES (NULL,'$formreplythreadid','".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" . addslashes($formsend) . "','$allowsmilie','$signature','$ipaddress','$iconid','1')"); 
++++++$DB_site->query("UPDATE thread SET replycount = replycount + 1, lastpost = " . TIMENOW . ", lastposter = '".addslashes($bbuserinfo[username])."' WHERE threadid = $formreplythreadid");
++++} 

++++if ($formpm == "1") { 
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pmtext\n\t(fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature)\nVALUES\n\t($bbuserinfo[userid], '" . addslashes($bbuserinfo['username']) . "', '".addslashes(htmlspecialchars($formtitle))."', '".addslashes(htmlspecialchars($formsend))."', '" . addslashes(serialize($tostring)) . "', 0, " . TIMENOW . ", 1)"); 
$pmtextid = $DB_site->insert_id(); 
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid, messageread) VALUES ($pmtextid, $formpmid, 0)"); 
$DB_site->shutdown_query("UPDATE " . TABLE_PREFIX . "user SET pmtotal=pmtotal+1, pmunread=pmunread+1 WHERE userid = $formpmid"); 
++++} 

++++if ($formemail == "1") { 
++++vbmail($formemailaddress, $formtitle, $formsend); 
++++} 

++++$errormessage = "$bbuserinfo[username], thank you for submitting the $bbtitle $formtitle!"; 
++++eval('print_output("' . fetch_template('STANDARD_ERROR') . '");'); 
+++exit(); 
} 

eval('print_output("' . fetch_template('form') . '");'); 
?>

And change your formanswer template as follows...

Code:
$formtitle
$bbuserinfo[username]

$radioquestion1
$radioanswer1

$radioquestion2
$radioanswer2

$radioquestion3
$radioanswer3

$question1
$answer1

$question2
$answer2

$question3
$answer3

-----------------------------------------------------
$longquestion1

$longanswer1

------------------------------------------------------
Reply With Quote
  #189  
Old 08-24-2004, 02:52 PM
mOdEtWo mOdEtWo is offline
 
Join Date: Dec 2003
Location: Norway
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
The code can't find your post table for whatever reason. Is your database prefix forums?
Nope, prefix is "vb3". Name is "forum".

Strange thing, "post a new thread" works, but not "reply to a thread". My post table is there, hehe.
Reply With Quote
  #190  
Old 08-24-2004, 04:58 PM
Virulent1 Virulent1 is offline
 
Join Date: Aug 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey PKRWUD, thanks alot.. i did what you said but im having a bit of trouble :[ .. i get this error:
Code:
Parse error: parse error, unexpected T_INC, expecting T_VARIABLE or '$' in /home/*****/public_html/vb/form.php on line 193
then if i delete those + signs in front of line 193 i get the same error except on another line with the + signs? any ideas? i dont want to go delete them all if i dont know what im doing.
Reply With Quote
  #191  
Old 08-24-2004, 10:56 PM
Virulent1 Virulent1 is offline
 
Join Date: Aug 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nvm all set
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11740 seconds
  • Memory Usage 2,595KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete