vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=93970)

mcgrco 06-29-2006 07:34 PM

Oh what have I done. I was playing around with the forums and now the form won't work. admin, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

I set the redirectoption = 4 but it wont work. Anyone able to help

bayridge 07-03-2006 01:54 AM

Is there a way to make user enter the post title? For instance, I would like the answer from $normalquestion1 to be the $posttitle. Whatever the user enters in that box should be the title of the post. Can this be done? Thx.

armstrong 07-03-2006 11:44 AM

Hi! I have the icash hack installed for my forum money, and I'm interested in exploring applicability of these two functions of your forms hack:

># Order form to buy things
># Donation form

How are these things done with the forms hack, in the context of forum money? Is it even applicable?

Polo 07-03-2006 03:52 PM

Cool Hack!

powermoves 07-03-2006 04:26 PM

Abe1
Can you help me understand a little better:
Of the steps below I completed step 1
However I dont understand how to perform step 2. How do I edit the main hook and after that how will I make the form.
Any help you can give would appreciated.

Thank you.
1 - Import the xml into products. (admin cp -> Plugin System -> Manage Products -> Add/Import Product)
2 - Edit the main hook - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
3 - To get to the form, go to: /newthread.php?do=form (change "form" to the name of your form if you have few)

DoKoK 07-03-2006 05:17 PM

Need some help...

I'm trying to modify my form but have no luck...

Link to the form: http://www.en-raptured.com/main/newthread.php?do=app

I tried to put the following

Code:

//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(
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
'answer7' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'checkboxanswer1_1' => TYPE_STR,
'checkboxanswer1_2' => TYPE_STR,
'checkboxanswer1_3' => TYPE_STR,
'checkboxanswer1_4' => TYPE_STR,
'checkboxanswer2_5' => TYPE_STR,
'checkboxanswer2_6' => TYPE_STR,
'checkboxanswer2_7' => TYPE_STR,
'checkboxanswer2_8' => TYPE_STR,
'checkboxanswer2_9' => TYPE_STR,
'longanswer1' => 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'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
$checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1'];
$checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2'];
$checkboxanswer1_3 = $vbulletin->GPC['checkboxanswer1_3'];
$checkboxanswer1_4 = $vbulletin->GPC['checkboxanswer1_4'];
$checkboxanswer2_5 = $vbulletin->GPC['checkboxanswer2_5'];
$checkboxanswer2_6 = $vbulletin->GPC['checkboxanswer2_6'];
$checkboxanswer2_7 = $vbulletin->GPC['checkboxanswer2_7'];
$checkboxanswer2_8 = $vbulletin->GPC['checkboxanswer2_8'];
$checkboxanswer2_9 = $vbulletin->GPC['checkboxanswer2_9'];
$longanswer1 = $vbulletin->GPC['longanswer1'];


DoKoK 07-05-2006 02:21 AM

Anyone?

DoKoK 07-06-2006 04:50 AM

Shameless bump...really need help with it :/

Abe1 07-06-2006 12:35 PM

You have to edit the template also.

PimvanJ 07-06-2006 02:27 PM

Do I edit the xml product file directly?
I have no idea where to start, Is there some sort of help for Vbdummies?


All times are GMT. The time now is 05:05 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.02160 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_code_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