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)

storpappa 05-06-2008 11:07 AM

3.7 thread / version available or just keep posting here? Great mod - thanks, used it for some time. This should be a must install for every site, you always can use a form

Kinneas 05-06-2008 11:49 AM

Quote:

Originally Posted by alternity (Post 1508676)
Hi, I'm having issues with this hack since upgrading to 3.7. The forms display correctly, but when I try to submit them I get the following text on a white background:

I'm running Form Hack 4.1.
Any ideas?

Quote:

Originally Posted by dutchbb (Post 1508871)
Yes I'm having the same error message, any help from the coder please?

Latest version should have fixed it AFAIK. Did you use some custom template names for your forms?

Try editing them and look for:

Code:

<input type="hidden" name="posthash" value="$posthash" />
Add below:

Code:

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

dutchbb 05-06-2008 02:22 PM

That solved it, thanks!

vrokar 05-06-2008 09:52 PM

I have a question maybe some of you who or more advanced then I can answer.

Say I have two Drop down Menus. DropDownA with 5 Options and DropdownB with 3 options.

Is it possible to set the Dropdown boxes in this fashion..

If DropDownA (Option 1) Selected then DropDownB's Selectable options are a,b,c.

Example...

DropDown1 Offers, Warrior, Warlock, Priest.

If Warrior is selected then DropDownB would offer the Protection, Fury, Arms as an option.

If Warlock is selected DropDownB would offer Affliction, Demonology, Destruction as an option. I have a feeling it is possible...but im not sure how. Any help would be appreciated.

Spinball 05-06-2008 10:15 PM

vrokar this is possible, but you need to use Javascript function to alter the available options in the dependant drop-down when the first is changed. You call the function using onchange.
There are plenty of examples on the 'net and buying a Javascript book would not hurt.

vrokar 05-07-2008 12:52 PM

Quote:

Originally Posted by Spinball (Post 1511011)
vrokar this is possible, but you need to use Javascript function to alter the available options in the dependant drop-down when the first is changed. You call the function using onchange.
There are plenty of examples on the 'net and buying a Javascript book would not hurt.

Ill have to do that. Maybe find an example somewhere that can help. Have any reconmendations for a good javascript book?

Spinball 05-07-2008 01:41 PM

Quote:

Originally Posted by vrokar (Post 1511593)
Ill have to do that. Maybe find an example somewhere that can help. Have any reconmendations for a good javascript book?

Have a look over at Sitepoint.com

Scalemotorcars 05-07-2008 01:47 PM

Ive looked over the thread and I don't see my answer so if this has been covered I apologize.

I cant get the attachments section to display on the form.

Made the edit to:
PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////

//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 "1";

//////////////////////////////////////////////////////////////////////////////////////////////////// 

But still not showing on the (/newthread.php?do=form ) page.

Also: I'm using this to post to a specific thread and edited this feature.
PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply "1";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid "2040";

//////////////////////////////////////////////////////////////////////////////////////////////////// 

I really need the attachments section to work or the mod or its useless to me. Any help please. Thanks

Scalemotorcars 05-07-2008 04:51 PM

Ive looked again and again and noticed several others having this problem. I'm using 3.6.5 and when I go to the form page theres no area for attachment.

Any help would be great. Thanks....

Scalemotorcars 05-07-2008 09:38 PM

OK I need to get this working so I'm offering up $20.00 to the first guy that can help me get this going on 3.6.5.

Everything else works fine I just cant get this section of code to work.
PHP Code:

<if condition="$attachmentoption">
<
tr>
<
td class="alt1" colspan="3" align="center">
<
div style="width:$stylevar[formwidth]align="$stylevar[left]">$attachmentoption</div>
</
td>
</
tr>
</if> 

Ive tried it without the <If> and as a stand alone $attachmentoption, even moved it to other area's on the template. :confused::confused::confused:


All times are GMT. The time now is 12:15 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.02384 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_php_printable
  • (4)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