The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#887
|
||||
|
||||
Quote:
$newpost['emailupdate'] = 9999; |
#888
|
|||
|
|||
I'd like to create a thread. But when I submit the form, I obtain the preview screen and the thread isn't created. What could be the problem ?
|
#889
|
||||
|
||||
Quote:
|
#890
|
|||
|
|||
I am also looking for the option to add an attachment while submitting the form. Hopefully, the creator of this mod will provide us with the answer to this.
I believe, but haven't tested it yet, that instead of having the final input option on the form as: 1. $vbtextquestion = "Please write down a paragraph about how you like this forum."; and 2. $vbtextexplain = "For example, what makes this forum different from all other forums?"; We might be able to switch that to what the regular forums are using when a forum user submits a regular forum message. I say this because when you click on submit within a forum area, it comes up with the same looking text editor box, but has the "paper clip" attachment option so the user then has the ability to upload an attachment. If I knew what this vbbox was called, I could try it out. I don't know enough about vbulletin yet to test it out. My question then is...instead of using: $vbtextquestion = $vbtextexplain = What would it be for the regular message posting area to come up? Here is the form I modified so far for my website (see the attached jpeg picture): Quote:
|
#891
|
|||
|
|||
I noticed that the subject of the created thread is the name of the form. Is there any easy way to allow the user to enter the subject?
|
#892
|
||||
|
||||
Quote:
|
#893
|
||||
|
||||
Quote:
|
#894
|
|||
|
|||
Quote:
Also, by the way: http://www.vbulletin.com/forum/showt...55#post1134155 Zachery Woods of the vbulletin support team stated in a post over at vbulletin.com recently, "Attachments are currently exclusive to posts now, but they are working on making it non exclusive to anything", but there is no set timeframe of when this will be available. |
#895
|
||||
|
||||
Quote:
|
#896
|
|||
|
|||
This tutorial is for anyone who wants to use this nice hack simply for an affiliation form. So enjoy.
Note: Is there anyway these forms are protected against bot flooding? I don't see an option for human input. BE SURE TO UPLOAD THE PLUGIN BEFORE DOING ALL OF THIS! Step 1. Create a new plugin: Plugin Manager > Add New Plugin - Hook Location: newthread_start - Title: Affiliation Form - Plugin Code Below (Edit If you wish) PHP Code:
PHP Code:
- Title: form_affiliation - Template code below: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle] - $formtitle</title> </head> <body> $header $navbar <!-- main --> <if condition="$preview"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat"> Preview </td> </tr> <tr> <td class="alt1"> $preview </td> </tr> </table> </if> <br /> <form name="vbform" action="newthread.php" method="post"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(0, $vboptions[postminchars])"</if>> <input type="hidden" value="$formname" name="do" /> <input type="hidden" value="submit" name="action" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3"> $vboptions[bbtitle] - $formtitle </td> </tr> <tr> <td class="panelsurround" align="center" colspan="3"> <table class="panel" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%"> <tr> <td align="$stylevar[left]"> <fieldset class="fieldset" style="margin:0px"> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> $formpurpose </td> </tr> </table> </fieldset> </td> </tr> </table> </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$normalquestion1</b> </td> </tr> <tr> <td class="alt2" colspan="3"> <input class="bginput" type="text" size="30" value="$normalanswer1" name="normalanswer1" /> </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$normalquestion2</b> </td> </tr> <tr> <td class="alt2" colspan="3"> <input class="bginput" type="text" size="30" value="$normalanswer2" name="normalanswer2" /> </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$normalquestion3</b> </td> </tr> <tr> <td class="alt2" colspan="3"> <input class="bginput" type="text" size="30" value="$normalanswer3" name="normalanswer3" /> </td> </tr> <tr> <td class="alt1" colspan="3"> <b>$longquestion1</b> - $longexplain1 </td> </tr> <tr> <td class="alt2" colspan="3" align="center"> <textarea class="bginput" rows="10" cols="90" name="longanswer1">$longanswer1</textarea> </td> </tr> <tr> <td valign="top" colspan="3"> <p align="center"> <input class="bginput" type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" /> <input class="bginput" type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" /> <input class="bginput" type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" /> </p></td></tr> </table> </form> $footer </body> </html> - Title: forumanswers_affiliation - Template Code Below: Code:
$formtitle $normalquestion1 $normalanswer1 $normalquestion2 $normalanswer2 $normalquestion3 $normalanswer3 ----------------------------------------------------- $longquestion1 $longanswer1 ------------------------------------------------------ - Type the following into your browser to access it: http://www.yourforums.com/newthread.php?do=affiliation - Fill out all the information and click submit. - Check your e-mail to see if everything is working. |
#897
|
|||
|
|||
Hello,
I am unable to add to the drop down box list. I am using the base form...just trying to add to the drop down box list. how do i do this? or How do i create a new form? thanks, gamelandz |
#898
|
||||
|
||||
Quote:
If you know nothing about PHP and want a nice form for your site, you can PM me and I can create one for you telling me what you want. I'm just about finished with a something that generates forms that has better options then the regular hack. |
#899
|
|||
|
|||
Thanks for the tutorial DaPro. For some reason I'm getting a "Invalid forum specified" message? Any ideas?
|
#900
|
|||
|
|||
have done a little more trouble shooting and it seems that as soon as I add another plugin and change the $forumname to something different from the original say something like $forumname="different_form"; then none of the forms will load and I get the error "Invalid forum specified". I've set the plugin up as
Product Form Hack Hook Location newthread_start Title different_form Plugin PHP Code same as the original install files accept I changed $formname="different_form"; $maintemplate="form_different_form"; $answertemplate="formanswers_different_form"; Abe1 any idea what I'm doing incorrect? Everything works if I set it up as you outlined but as soon as I try to add another form with a different main and answer template the wheels seem to fall off the cart |
#901
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|