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)

inteller2k7 06-20-2007 10:57 PM

this hack is pissing me oof i change the questions only and when i got to the Form place i get a
Code:

Parse error: syntax error, unexpected '=' in /home/forumaio/public_html/forum/newthread.php(71) : eval()'d code on line 287
i go to line 287 and it is blank i have not done any template edits since i dont no what to edit some help would be nice and fast than:mad:ks

RedGTiVR6 06-21-2007 04:21 AM

Quote:

Originally Posted by inteller2k7 (Post 1272790)
this hack is pissing me oof i change the questions only and when i got to the Form place i get a
Code:

Parse error: syntax error, unexpected '=' in /home/forumaio/public_html/forum/newthread.php(71) : eval()'d code on line 287
i go to line 287 and it is blank i have not done any template edits since i dont no what to edit some help would be nice and fast than:mad:ks

wow - I'm not really sure who is going to want to help with an attitude like that...

and on a different note...

For some reason I'm running into an issue trying to edit one of the forms I've made for our site.

I've gone through and made the changes (or so it seems) to the product to include the new code for the new questions, I've entered the code for the answers and the code for the questions.

I've then gone into the form template and updated, then into the answers template and updates.

However, when I go to check the form, nothing has changed.

Am I missing a step somewhere perhaps?
Maybe a field needs to be rebuilt?

Deepdog009 06-22-2007 01:58 AM

Hey folks please go back 2 around page 23 of this hack and read from there... U will C many ideas and helpful hints 2 assist ALL...

From pages 23 - 34 should help answer many questions, but if not I will try 2 help when time permits...

ABE1 form hack adds 2 templates and one plugin file...

Admincp -->>> goto products and install after that -->>> goto templates and find form & form_answers templates... modify as you will...

If you run into parse issues then double check your new modifications, most likely U added something wrong or forget 2 add quotes or something... Ohhh yeah the PLUGIN file has all the instructions on how 2 make changes and code stuff...

When making new forms slowly make changes and check yo form after every change 2 verify where the problems start at,,, then backtrack and C what the cause could be...

Download some of the FORM files in earlier posts 2 understand how it works...

Good Luck;)

RedGTiVR6 06-22-2007 02:32 PM

I ended up having to create new templates (with the exact same info mind you) and change the name of the templates the hack was looking for to those templates before I could get the changes to show up...

really not sure why that was the case. All I did was copy and paste the contents of the previous template into a new template and just change the name...strange.

InTeNsE-HuMoR 06-22-2007 10:27 PM

Hi, can anyone tell me how to remove a field that I don't want in the form? I have only been able to remove the field name and not the actual field itself, how to I completely remove a field?

Deepdog009 06-23-2007 05:53 AM

Quote:

{Saviour} Update...

No need for help anymore...finally figured it out and have it working, however, the addons supplied with this hack do not work. Someone might want to take a look into this. The Add-on hacks state they are supported...how does one get their hack validated and marked as supported when it doesn't even contain all the files and instructions you need to make it work.

This Form Hack 4.0 is exactly what I've been looking for and again, Kudos goes out to Abe on this one. I just want a simple CAPTCHA hack that will work with this hack.

I'm currently using vb 3.6.7 PL1.

When U guys posted asking about add-ons I was out of town...
I uploaded those missing files two days ago...

Most guys dont stay glued 2 these forums everyday my friend,,, when time permits I stop by 2 help and fix issues...

At the time of release I uploaded a new file and forgot 2 add images 4 that add-on...

Good Luck;)

H1MendlessDark 06-25-2007 05:55 PM

I was just wondering how to edit the questions below:

PHP Code:

$dropdownquestion1 "What is your gender?";

// The following choices must NOT have quotation marks
$dropdownchoice1a "no comment";
$dropdownchoice1b "male";
$dropdownchoice1c "female"

How do I edit the variables and stuff. I dont get it.

Jeffler 06-28-2007 05:14 PM

Alright, I'm an idiot, and I've never worked with hooks before (crazy, I know).

Can someone just tell me where I have to go to edit the hook? I'll be fine then. :P

Deepdog009 06-29-2007 04:32 AM

Quote:

Originally Posted by Jeffler (Post 1278571)
Alright, I'm an idiot, and I've never worked with hooks before (crazy, I know).

Can someone just tell me where I have to go to edit the hook? I'll be fine then. :P

Plugin Hook 4 this Hack is located in Admincp, near bottom of listing under RSS FEEDS and below that is {{{Plugins & Products}}}...

Within the {Plugins & Products} menu is option Plugin Mgr...

After accessing that menu look 4 Forms Hack plugin, open and view code...

This is where U make modifications 2 create new forms or make changes 2 primary test form...


Below is start of Hooks Code 4 this Hack...

Making changes ain't easy... I suggest taking your time and study and read the setup area several times...

Eventually U will understand how it works with a little patients...

Good Luck!



// To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'.
// After, change the form name. You can't have 2 forms with the same name.

// Name of this form
$formname = "testemp";

if ($_REQUEST['do'] == $formname)
{

// ################################################## #####################
// ######################## 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(
'normalanswer1' => TYPE_STR,
'radioanswer1' => TYPE_STR,
'radioanswer2' => TYPE_STR,
'radioanswer3' => TYPE_STR,
'radioanswer3other' => TYPE_STR,
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'checkboxanswer1_1' => TYPE_STR,
'checkboxanswer1_2' => TYPE_STR,
'checkboxanswer1_3' => TYPE_STR,
'longanswer1' => TYPE_STR
));

// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$radioanswer1 = $vbulletin->GPC['radioanswer1'];
$radioanswer2 = $vbulletin->GPC['radioanswer2'];
$radioanswer3 = $vbulletin->GPC['radioanswer3'];
$radioanswer3other = $vbulletin->GPC['radioanswer3other'];
$answer1 = $vbulletin->GPC['answer1'];
$answer2 = $vbulletin->GPC['answer2'];
$answer3 = $vbulletin->GPC['answer3'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
$checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1'];
$checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2'];
$checkboxanswer1_3 = $vbulletin->GPC['checkboxanswer1_3'];
$longanswer1 = $vbulletin->GPC['longanswer1'];

vFan 06-29-2007 05:31 PM

Silly question perhaps, but in addition to being posted to a thread, poll, etc., does the information submitted via the form hack automatically get stored in the database as well? If it doesn't get stored in the db then is it possible to modifiy the form to have 2 actions associated with the submit button. (You know like the ability to submit info to a db while notifying someone via email that their order has been received.) What I want is for the form data to be posted to a thread upon submission as well as storing it in the db so I can send it on to a different application it later. If if can be done, how do I do it?

(By the way, I have looked through the tables in my db and do not see any of the information that has been posted to my threads so I'm assuming that it only gets posted not stored ? Please correct me if I'm wrong)

Sorry if this is a ridiculous question but I am not a coder. Any help is appreciated. Thanks.


All times are GMT. The time now is 03:23 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.02046 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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