vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. (https://vborg.vbsupport.ru/showthread.php?t=66082)

Spinball 06-13-2005 01:11 PM

Cyricx,
do you see
PHP Code:

$formtitle 

in the following bit of the hack where it inserts the thread?
PHP Code:

                    $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)
"
); 

well if you put
PHP Code:

" . addslashes($formtitle) . " 

instead, this will fix it.
Try it and see if it still breaks when you use a quote in the title.

mustang_lex 06-14-2005 07:25 PM

Although this bug hasn't been picked up by me yet. I like to fix it. and I have no clue what you ment at the last post spinball, Please send details. Thanks

Spinball 06-15-2005 08:33 AM

Quote:

Originally Posted by mustang_lex
Although this bug hasn't been picked up by me yet. I like to fix it. and I have no clue what you ment at the last post spinball, Please send details. Thanks

Sorry but I can't teach you PHP. I suggest you buy a PHP and MySQL book and learn it like I did. It will serve you well to best maintain your forum.

jeepinaround 06-15-2005 08:35 PM

Ok I had this working at one point in time. Some of the modifications I have done is...
Having the first question answered as the title to the thread
The option to redirect to the form when posting a new thread

For some reason now when you fill out the form and hit submit it creates a new thread with the answer to the first question as the title but nothing in the actual post it is blank other than a signature. I took all day from work and read every page of this thread and did not find a similiar problem. Does anybody have any ideas? The only thing I can think of that I did was upgrade to 3.0.7 since I originally had this working.

sdsvtdriver 06-16-2005 04:51 AM

I'd like to change the subject to be, say the answer to normal question1. how easy is this to change?

jeepinaround 06-16-2005 12:12 PM

It was easy, just some code to change. It is posted in this thread some where.

GiJoe 06-17-2005 02:05 AM

Quote:

Originally Posted by paul41598
I have figured out a way to do dropdowns if anyone is interested

Yes :nervous:

MrTchMan 06-18-2005 04:47 PM

I am having a problem. I have set up the form to require all information to be filled in. I was testing it out and if I complete the form it would give me a error message. When I hot the back button the error message stays up and I have to refresh the form before it will come back up and I loose all the information. Any Ideas???

Thanks

jeepinaround 06-20-2005 05:06 PM

Can no one help me out? After filling out the form I get a blank thread. No errors or anything.

Marco van Herwaarden 06-20-2005 07:49 PM

Please double check edits/templates.


All times are GMT. The time now is 10:52 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.01734 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete