JTMON |
05-16-2007 08:07 PM |
Hi, I haven't found this problem searching this thread so here goes...did the edits, made sure part 1 and 2, had all working until I finished..now I get this error:
Parse error: parse error, unexpected '}' in /home/www/ticketdoctor/forums/newthread.php(71) : eval()'d code on line 608
My code is:
Code:
// #######################################################################
// ######################## CUSTOMIZE VARIABLES ##########################
// #######################################################################
////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//VARIABLES
//Study how variables are add here to add or remove any. If you add a variable to your form, you must add it to part one and part two.
////////////////////////////////////////////////////////////////////////////////////////////////////
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'FirstNameAnswer' => TYPE_STR,
'LastNameAnswer' => TYPE_STR,
'AddressAnswer' => TYPE_STR,
'CityAnswer' => TYPE_STR,
'StateAnswer' => TYPE_STR,
'ZipcodeAnswer' => TYPE_STR,
'DOBAnswer' => TYPE_STR,
'PrimaryPhoneNumberAnswer' => TYPE_STR,
'SecondaryPhoneNumberAnswer' => TYPE_STR,
'ValidLicenseAnswer' => TYPE_STR,
'NotValidLicenseAnswer' => TYPE_STR,
'EmailAddressAnswer' => TYPE_STR,
'NewsletterSignupAnswer' => TYPE_STR,
'LicenseNumberAnswer' => TYPE_STR,
'AccidentInvolvedAnswer' => TYPE_STR,
'CriminalRecordAnswer' => TYPE_STR,
'OneTicketOnStopAnswer' => TYPE_STR,
'TicketNumberAnswer' => TYPE_STR,
'Charges1Answer' => TYPE_STR,
'Charges2Answer' => TYPE_STR,
'Charges3Answer' => TYPE_STR,
'Charges4Answer' => TYPE_STR,
'ViolationCode1Answer' => TYPE_STR,
'ViolationCode2Answer' => TYPE_STR,
'ViolationCode3Answer' => TYPE_STR,
'ViolationCode4Answer' => TYPE_STR,
'CourtToAppearInAnswer' => TYPE_STR,
'AppearanceDateAnswer' => TYPE_STR,
'AppearanceTimeAnswer' => TYPE_STR,
'HowHeardAboutUsAnswer' => TYPE_STR
));
// Part 2
$FirstNameAnswer = $vbulletin->GPC['FirstNameAnswer'];
$LastNameAnswer = $vbulletin->GPC['LastNameAnswer'];
$AddressAnswer = $vbulletin->GPC['AddressAnswer'];
$CityAnswer = $vbulletin->GPC['CityAnswer'];
$StateAnswer = $vbulletin->GPC['StateAnswer'];
$ZipcodeAnswer = $vbulletin->GPC['ZipcodeAnswer'];
$DOBAnswer = $vbulletin->GPC['DOBAnswer'];
$PrimaryPhoneNumberAnswer = $vbulletin->GPC['PrimaryPhoneNumberAnswer'];
$SecondaryPhoneNumberAnswer = $vbulletin->GPC['SecondaryPhoneNumberAnswer'];
$ValidLicenseAnswer = $vbulletin->GPC['ValidLicenseAnswer'];
$NotValidLicenseAnswer = $vbulletin->GPC['NotValidLicenseAnswer'];
$EmailAddressAnswer = $vbulletin->GPC['EmailAddressAnswer'];
$NewsletterSignupAnswer = $vbulletin->GPC['NewsletterSignupAnswer'];
$LicenseNumberAnswer = $vbulletin->GPC['LicenseNumberAnswer'];
$AccidentInvolvedAnswer = $vbulletin->GPC['AccidentInvolvedAnswer'];
$CriminalRecordAnswer = $vbulletin->GPC['CriminalRecordAnswer'];
$OneTicketOnStopAnswer = $vbulletin->GPC['OneTicketOnStopAnswer'];
$TicketNumberAnswer = $vbulletin->GPC['TicketNumberAnswer'];
$Charges1Answer = $vbulletin->GPC['Charges1Answer'];
$Charges2Answer = $vbulletin->GPC['Charges2Answer'];
$Charges3Answer = $vbulletin->GPC['Charges3Answer'];
$Charges4Answer = $vbulletin->GPC['Charges4Answer'];
$ViolationCode1Answer = $vbulletin->GPC['ViolationCode1Answer'];
$ViolationCode2Answer = $vbulletin->GPC['ViolationCode2Answer'];
$ViolationCode3Answer = $vbulletin->GPC['ViolationCode3Answer'];
$ViolationCode4Answer = $vbulletin->GPC['ViolationCode4Answer'];
$CourtToAppearInAnswer = $vbulletin->GPC['CourtToAppearInAnswer'];
$AppearanceDateAnswer = $vbulletin->GPC['AppearanceDateAnswer'];
$AppearanceTimeAnswer = $vbulletin->GPC['AppearanceTimeAnswer'];
$HowHeardAboutUsAnswer = $vbulletin->GPC['HowHeardAboutUsAnswer'];
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//To enable this feature, remove the '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7)))print_no_permission();
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//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
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid = "2";
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "0";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
//Make poll public - 1 = yes, 0 = no
$pollpublic = "0";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "0";
//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = "12345";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE PMED (guests CANNOT use this option) - 1 = yes, 0 = no
$formpm = "0";
//USERNAME TO PM TO (separate multiple usernames with a ';')
$formpmname = "ticketdoctor";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail = "1";
//EMAIL ADDRESS TO EMAIL TO (separate multiple usernames with a ';')
$formemailaddress = "computerguy@ticketdoctor.net";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE ATTACHMENTS - 1 = yes, 0 = no
//attachments can only be used if the form is going to make a new thread or post
$allow_attachments = "0";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//REDIRECT OPTIONS:
// 0 - thank you message (thread, reply, pm, or email)
// 1 - redirect to post (thread or reply)
// 2 - redirect to thread (thread only)
// 3 - redirect to forum (thread only)
// 4 - redirect to editpost (thread or reply)
//
// Feel free to change the thank you message if you choose option 0
////////////////////////////////////////////////////////////////////////////////////////////////////
$redirectoption = "0";
//This is the thank you message
$errormessage = "Thank you for submitting your ticket! Someone from our office will contact you shortly.";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
//If you added or deleted variables, you must edit what it checked for. Search for "$answerall ==" and edit 2 lines under it.
////////////////////////////////////////////////////////////////////////////////////////////////////
$answerall = "0";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole title)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formtitle = "Ticket Submission Form";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error)
//You may use variables from the form for this.
////////////////////////////////////////////////////////////////////////////////////////////////////
$posttitle = "$formtitle";
////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formpurpose = "Use this form to submit your ticket information. If you submit it during normal business hours we will contact you within 30 minutes.";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////
$FName = "First Name:";
$LName = "Last Name:";
$MAddress = "Mailing Address:";
$City = "City:";
$State = "State:";
$ZipCode = "Zip Code:";
$DOB = "Date of Birth:";
$PrimaryPhoneNumber = "What is your primary phone number?";
$SecondaryPhoneNumber = "Please provide a second phone number where we can reach you.";
$ValidLicense = "Do you have a Valid NY State License?";
$EmailAddress = "Email Address:";
$LicenseNumber= "What is your 9 digit license number? (located on top of your Drivers License).";
$TicketNumber = "What is your ticket number (located in the upper left corner of ticket in bold, can be a letter-number combination:";
$Charges = "What are your charges? (Speeding, Passed Stop Sign, etc):";
$SectionSub = "What is the Section-Subsection code of your charge? (located above charge description, usually 4 digits and a letter)";
$CourtToAppearIn = "What Court do you need to appear in?:";
$AppearanceDate = "What is your appearance date?:";
$AppearanceTime = "What is your appearance time?:";
$HowHeardAboutUs = "How did you hear about us?:";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////
$NewsLetterSignup = "Would you like to sign up for our future Newsletter?";
// The following choices must NOT have quotation marks
$NewsLetterSignupChoicea = "Yes";
$NewsletterSignupChoiceb = "No";
$AccidentInvolved = "Was there an accident involved?";
$AccidentInvolvedChoicea = "Yes";
$AccidentInvolvedChoiceb = "No";
$OneTicketOnStop = "Did you only receive this ONE ticket on THIS stop?";
$OneTicketOnStopChoicea = "Yes";
$OneTicketOnStopChoiceb = "No";
$CriminalRecord = "Do you have a criminal record?";
$CriminalRecordChoicea = "Yes";
$CriminalRecordChoiceb = "No";
////////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
any ideas? Line 71 in newthread is eval..and the normal stuff doesn't go to line 608?
any help is mucho appreciated..thanks!
|