The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Form Hack Details »» | |||||||||||||||||||||||||
Form Hack 4.1 Features: Ever wanted an online form that a user can fill out, which when submitted gets:
Or any combination or all of the above? Well, this is the hack for you! You can use this for:
Or anything you like - this hack is totally customizable via the AdminCP. The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms. Format of the form:
This is customizable via the hook. Also:
INSTALLATION Easy - takes only a few minutes:
Done! Use this hack to make as many forms as you like! Enjoy! Updates: Version 4.0: (09/15/2006)
Version 4.1: (04/24/2008)
MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. Abe1 with rights from Dr Erwin Loh Supporters / CoAuthors Show Your Support
|
Comments |
#152
|
|||
|
|||
Can someone explain this statement?
Code:
if condition="$dropdownchoice2d == $dropdownanswer2">selected="selected"</if> Code:
<option value="$dropdownchoice2d" <if condition="$dropdownchoice2d == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2d</option> |
#153
|
||||
|
||||
Quote:
|
#154
|
|||
|
|||
//USERNAME TO PM TO (separate multiple usernames with a ';')
$formpmname = "SeQual"; Instead of putting $formpmname = "user1;user2;user3"; I wanne put a variable in there $formpmname = "$pmmembers"; But the people in the variable don't get a pm, only works if I put the usernames in manually. The variable is correct tho, when I show variable in the form itself (form from newthread_start) it shows the usernames. Members this will get pm'd to: SeQual;user1;user2 (SeQual;user1;user2 is in variable $pmmembers) any idea's? |
#155
|
|||
|
|||
Abe I could really use a hand here, Im going nuts trying to figure this out.
Im using this mod to post a form to my forums and it works great with no issues. However I recently decided it would be nice if the form created a second thread/post in a different forum. I made the following modifications to the original plugin. Essentially I just duplicated all the variables and code used in the default plugin responsible for creating the post which I know works and modified a few variables. With all my modifications the original code continues to work but the duplicated code refuses to post in the second forum. I cant understand why since its exactly the same code. Any thoughts? Code:
// Name of the main template $maintemplate = "wow_appform"; // Name of the answer template $answertemplate = "wow_apppostcandidate"; // Name of template to be posted to journal forum $journaltemplate = "wow_apppostjournal"; Code:
//FORUM TO POST NEW THREAD IN //You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list. $formforumid = "141"; $journalforumid = "140"; Code:
//////////////////////////////////////////////////////////////////////////////////////////////////// //TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error) //You may use variables from the form for this. //////////////////////////////////////////////////////////////////////////////////////////////////// $posttitle = "$bbuserinfo[username] Recruitment Application"; $journaltitle = "$bbuserinfo[username] Journal"; Code:
eval('$formsend = "' . fetch_template("$answertemplate") . '";'); eval('$journalsend = "' . fetch_template("$journaltemplate") . '";'); Code:
if ($formforum == "1") { $foruminfo = verify_id('forum', $formforumid, 0, 1); $forumperms = fetch_permissions($foruminfo[forumid]); $newpost['username'] =& $vbulletin->userinfo['username']; $newpost['message'] =& $formsend; $newpost['title'] =& $posttitle; $newpost['parseurl'] = '1'; $newpost['poststarttime'] = $poststarttime; $newpost['posthash'] = $posthash; if ($vbulletin->userinfo['autosubscribe'] != -1) { $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe']; } else { $newpost['emailupdate'] = 9999; } if ($vbulletin->userinfo['signature'] != '') { $newpost['signature'] = '1'; } else { $newpost['signature'] = '0'; } build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors); $foruminfo = verify_id('forum', $journalforumid, 0, 1); $forumperms = fetch_permissions($foruminfo[forumid]); $newpost['username'] =& $vbulletin->userinfo['username']; $newpost['message'] =& $journalsend; $newpost['title'] =& $journaltitle; $newpost['parseurl'] = '1'; $newpost['poststarttime'] = $poststarttime; $newpost['posthash'] = $posthash; if ($vbulletin->userinfo['autosubscribe'] != -1) { $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe']; } else { $newpost['emailupdate'] = 9999; } if ($vbulletin->userinfo['signature'] != '') { $newpost['signature'] = '1'; } else { $newpost['signature'] = '0'; } build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors); } |
#156
|
|||
|
|||
Well wouldnt you know it. After fighting with things for 4 hours, I figured out the problem about 5 minutes after I posted here for help. I had my minimum time between posts option set to 15 which was bouncing the second post. Disabling that option let both posts go through.
|
#157
|
|||
|
|||
My question happens to be basic PHP/HTML, but since I'm not a developer, I can't figure out the issue.
I'm trying to associate values (numeric) based on a selection of a dropdown. The numeric variable is associated to a thread ID wherease the dropdown selection is a recognizable name. Here's the default code: Code:
<select name="dropdownanswer1"> <option value="$dropdownchoice1a" <if condition="$dropdownchoice1a == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1a</option> </select> Code:
<option value="$dropdownthreadID" <if condition="$dropdownchoice1a == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1a</option> $dropdownthreadID = 100 $dropdownchoice1a = Monday These variables are called within a newthread_start plugin. Code:
//EXISTING THREAD ID FOR FORM TO REPLY IN $formreplythreadid = "$dropdownanswer1"; Any help would be appreciated! |
#158
|
|||
|
|||
Great mod! I change some variable and put my own html over it and it works wonders!
|
#159
|
|||
|
|||
Is it possible to insert an IF statement in the Answers form? If so, please tell me how.
|
#160
|
|||
|
|||
Anyone know how I can pass some of the variables into the thread title?
|
#161
|
||||
|
||||
<a href="http://www.chiptalk.net/forum/newthread.php?do=poker_article_submit" target="_blank">Installed</a>! Great hack.
Can I prepopulate any elements? I'd particularly like to pre-populate the vb text area input box. I want to put a template in there, so taht users format article submissions correctly. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|