vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

jiffy 07-13-2007 08:53 PM

I don't claim to be a PHP wizard but why does it not work for me to change this code:
Code:

$posttitle = "$formtitle";
To this code:
Code:

$posttitle = "$normalquestion1";
I'm trying to get the new thread to have the title of the text filled in to normalquestion1. Seems like this is a simple thing but when I try the second code a new thread is never created. It processes the form fine, at least it seems like it does but no thread shows up in the forum. When I change the code back to "$forumtitle" it works fine again. Weird.

TheMilkCarton 07-13-2007 10:40 PM

Here's what I use:

Code:

$formtitle = "$normalanswer1 - $answer1 - $dropdownanswer1 $answer3, $dropdownanswer2";
$posttitle = "$formtitle";

And it works just fine. I also made $pagetitle into something custom (and changed the breadcrumb in the form template to show $pagetitle) otherwise the name of the form, the breadcrumb, and the title of page will be blank, since the answers have yet to be filled out yet.

OHH... duh. Look at your code again, you're using $normalquestion1 instead of $normalanswer1. :)

jiffy 07-14-2007 02:24 PM

Quote:

Originally Posted by TheMilkCarton (Post 1290351)
OHH... duh. Look at your code again, you're using $normalquestion1 instead of $normalanswer1. :)

You my friend are my hero. Can't believe I didn't notice that. All is good now. :)

StudMuffin21 07-15-2007 10:24 PM

So I'm still having problems getting the forum answers to show up. I have it set up to where after submitting the form, a new thread is created. For the most part it works fine, but not all the questions show their answers.

Any suggestions? I've been unable to get this working, and have worked on it for at least a month now :(

lazytown 07-17-2007 04:59 AM

I'm using this as a glorified contact-us. I noticed with 3.6.5 (patched) that guest forms are NOT being posted to the forum. If a member uses the forum, it works fine. If a guest uses it, it looks like it goes through ok but nothing shows up. Any ideas?

-vissa

pbmansion 07-18-2007 04:37 PM

Is there a way to have more columns and a much larger selection?

Deepdog009 07-19-2007 12:30 AM

Quote:

Originally Posted by vissa (Post 1293403)
I'm using this as a glorified contact-us. I noticed with 3.6.5 (patched) that guest forms are NOT being posted to the forum. If a member uses the forum, it works fine. If a guest uses it, it looks like it goes through ok but nothing shows up. Any ideas?

-vissa

Turn off your image verification in vbulletin options and your issue B solved...

Good luck


+++++++++++++++++++++++++++++++++++++++++++++++
StudMuffin21
So I'm still having problems getting the forum answers to show up. I have it set up to where after submitting the form, a new thread is created. For the most part it works fine, but not all the questions show their answers.
+++++++++++++++++++++++++++++++++++++++++++++++
Upload your form in txt format and I will C if I can fix your issue...?


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pbmansion,,, U can make your form a colossus monster if U want, I have several forms that have 30 questions and many more that are Godzilla's...;)

There's no limit, the problem is making them work properly and keeping the rif raf scum, scabs, spammers and leechs out...:D

StudMuffin21 07-19-2007 12:48 AM

Deepdog009

Here is the information you requested. I've gone over it many times, but can't find what I'm doing wrong. Any assistance is appreciated. :)

I uploaded the files in txt format instead of posting them on the forum to save space.

TheMilkCarton 07-19-2007 11:26 AM

Without looking too far into it, I'd say there is a slim chance that your form templates are causing it.

You most likely didn't add $answers 4-8 and $longanswers 2-3 to the VARIABLES section in your Form plugin.

For you, that section should look like:
Code:

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'answer8' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'longanswer1' => TYPE_STR
'longanswer2' => TYPE_STR
'longanswer3' => TYPE_STR
));

// Part 2
$answer1 = $vbulletin->GPC['answer1'];
$answer2 = $vbulletin->GPC['answer2'];
$answer3 = $vbulletin->GPC['answer3'];
$answer4 = $vbulletin->GPC['answer4'];
$answer5 = $vbulletin->GPC['answer5'];
$answer6 = $vbulletin->GPC['answer6'];
$answer7 = $vbulletin->GPC['answer7'];
$answer8 = $vbulletin->GPC['answer8'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
$longanswer1 = $vbulletin->GPC['longanswer1'];
$longanswer2 = $vbulletin->GPC['longanswer2'];
$longanswer3 = $vbulletin->GPC['longanswer3'];


TheMilkCarton 07-19-2007 11:39 AM

Quote:

Originally Posted by vissa (Post 1295599)
So you're saying I can't have image verification for searches and a contact-us form for guests at the same time?

Yeah. I made a fix for this a long time ago.. which I never ended up releasing. I think DeepDog released an Add-On to this Form Hack, but it's not the *REAL* image verification, so I think you still may have to disable Guest Image Verification for everything.

Erm... Apparently you deleted your post.. haha.

--------------------------------------------------
Edit: Does this form handle all errors correctly? For instance, when trying to submit a form where the Post Title is longer than the limit set in vBulletin Options, it gives my users "Invalid Forum Specified", instead of returning an error saying "Thread Title is too long" or whatever. I'm pretty sure it's not any of the modifications to the Form Hack that I've done, since I looked through the plugin code and can't find any references to the post title length.

Edit2: Well, the "fix" is simple enough. I just had to put a maxlength="" on all the input fields that add up to make my thread title.


All times are GMT. The time now is 08:18 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
  • Page Generation 0.03341 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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