![]() |
Quote:
I'm sorry, I wasn't specific enough. When ever someone fills out the form on my site, if they include an apostrophe in the box that becomes $formtitle (ie: I'm having car trouble), when they try to complete the form, they get the following error message: Database error in vBulletin 3.0.0: Invalid SQL: INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline, iconid, visible, attach) VALUES ('PKRWUD 'test'', 1093876723, 53, 1, 0, 'PKRWUD', 94, 'PKRWUD', 1093876723, 0, 1, 0) mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'test'', 1093876723, 53, mysql error number: 1064 |
Replace:
'$formtitle' in the query with: '" . addslashes($formtitle) . "' |
Quote:
I'm not terribly bright when it comes to this stuff, and didn't realize that I had to make that change in 3 queries in order for it to work, but I figured it out in a couple minutes. Thanks for taking the time to help! You ROCK! Thanks again! Take care, ~Chris |
Newbie question: why do we have three files here? Can't everything be put in the form.php file?
|
The second file contains example templates thatyou will need to create in addition to the generic form.php file
|
Quote:
Yahoo |
Beautiful.
One minor typo in installation.txt tho.. Quote:
|
Is there a way to make a form that is created to be required by any new registration before they can do anything else? Such as a form that posts an introduction thread in a specified forum when someone registers, and it will be a requirement before said new member can do anything on the entire forum(almost like a "second" registration page). Maybe a re-direct once the registration goes through or something to the form before anything else can take place. Let me know if this can be done, or is even possible. Thanks!
|
Thanks for the hack. I made 14 forms for my site. All leading to new threads.
I got 2 problems now. One, the posts don't count. Two, the posts don't get searched. I fixed number one by my self. find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Does anybody know how to fix my url problem? It outputs a url like this:
How can I get rid of the "? |
All times are GMT. The time now is 10:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|