View Full Version : New Posting Features - Form Hack
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
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?
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:
<input type="hidden" name="posthash" value="$posthash" />
Add below:
<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
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
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:
////////////////////////////////////////////////////////////////////////////////////////////////////
//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.
////////////////////////////////////////////////////////////////////////////////////////////////////
//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.
<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:
Deepdog009
05-09-2008, 02:12 AM
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.
<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:
Scalemotorcars keep your $$$,,, I shall assist U...
In order 4 me to resolve I will need...>>>
answer template info ... >>> text format
main template info ... >>> text format
plugin info ... >>> text format
Place all in zip and upload
I will give it a go and hopefully find issue...
Scalemotorcars
05-10-2008, 12:39 AM
Wow Thanks!!!! :D
Been a long day so Ill get those posted in the morning. :up:
Deepdog009
05-10-2008, 01:17 AM
Wow Thanks!!!! :D
Been a long day so Ill get those posted in the morning. :up:
I will be a bit busy this weekend,,, but if U upload by saturday or sunday I will download when time permits and take a look - C................;)
L8ter
Scalemotorcars
05-10-2008, 11:44 AM
I really appreciate it Deepdog009 :D:D:D
Heres that Zip.
Ive included a Screen shot just in case and the three files. All I changed was the basic setup in the plugin script. The other 2 templates should be unchanged.
Daniel
ccplim
05-10-2008, 01:26 PM
I am going slow with my designing and it has been smooth till this point of point (well, at least not until I start playing around with the conditional stuff).
Anyway, for my first question. How can I move/shift the center split line (which I have highlighted in red) towards the left? I have tried playing around but can't seem to get it to work :o
Thanks in advance.
Deepdog009
05-11-2008, 02:29 AM
I really appreciate it Deepdog009 :D:D:D
Heres that Zip.
Ive included a Screen shot just in case and the three files. All I changed was the basic setup in the plugin script. The other 2 templates should be unchanged.
Daniel
**************************************
Daniel,,,
Just got back from work,,, give me by the morrow and I will post info...
*****************************************
ccplim,,,
I can help,,, but only if you post the main TEMPLATE info here in one of your posts...
ccplim
05-11-2008, 03:08 AM
Hi Deepdog009,
Thank you so much for that. I have attached my form template here for your reference.
Most of the original codes were left untouch. I bascially insert what I need before the original codes and keep pushing them downwards (will only remove those original codes when I complete my entire form).
Deepdog009
05-11-2008, 03:31 AM
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....
************************************************** **
Daniel,,,
I setup your form and its showing manage attachments...
Scratch the form as the issue...
Its gotta B something else???
May its the usergroup setup??? It has 2-B something concerning PERMISSIONS or USERGROUP access...
************************************************** **
ccplim,,,
I will post L8ter
ccplim
05-11-2008, 03:40 AM
Thanks! Take your time as I am still in the process of adding in the other fields. :)
Deepdog009
05-11-2008, 05:44 AM
Thanks! Take your time as I am still in the process of adding in the other fields. :)
ccplim,,,
I usually add CSS,,, but its not needed here...
Goto Admincp
Open Style Mgr
Goto StyleVars
Look 4 Spacer Size and Edit
Play around with it between {{{ 30 to 200 }}}
Good Luck 2 ya
ccplim
05-11-2008, 05:57 AM
ccplim,,,
I usually add CSS,,, but its not needed here...
Goto Admincp
Open Style Mgr
Goto StyleVars
Look 4 Spacer Size and Edit
Play around with it between {{{ 30 to 200 }}}
Good Luck 2 ya
But if I were to use this method, that means it will affect the entire forum.
Is it possible to retain the spacer size and just adjust the column width?
It is okay if that is too troublesome. I can still live with it. :p
ccplim
05-11-2008, 06:24 AM
Bro Deepdog009,
I tried playing around with the following codes
<tr>
<td class="alt2" valign="middle">
<b>$radioquestion1</b>
</td>
<td class="alt3" valign="middle" colspan="1">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
<input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b (Want To Sell)
</td>
<td> </td>
</tr>
and it seems like by changing the "colspan" in the following from 2 to 1, it does help to shift the margin towards the left. However, I am not sure if this will have any side effect?
Change the colspan="2"
<td class="alt3" valign="middle" colspan="2">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
To colspan="1"
<td class="alt3" valign="middle" colspan="1">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
Deepdog009
05-12-2008, 01:53 AM
Bro Deepdog009,
I tried playing around with the following codes
<tr>
<td class="alt2" valign="middle">
<b>$radioquestion1</b>
</td>
<td class="alt3" valign="middle" colspan="1">
<input type="radio" name="radioanswer1" value="$radiochoice1a" <if condition="$radiochoice1a == $radioanswer1">checked="checked"</if> /> $radiochoice1a (Want To Buy)
<input type="radio" name="radioanswer1" value="$radiochoice1b" <if condition="$radiochoice1b == $radioanswer1">checked="checked"</if> /> $radiochoice1b (Want To Sell)
</td>
<td> </td>
</tr>
and it seems like by changing the "colspan" in the following from 2 to 1, it does help to shift the margin towards the left. However, I am not sure if this will have any side effect?
Change the colspan="2"
To colspan="1"
ccplim,,,
Good deal,,, Hard work pays off...:up:
Sorry,,, I forgot about the spacer size changes will also affect your forum alignments...
Changing the colspan count in your form will only affect that template...
COLSPAN ("how many across") and ROWSPAN ("how many down")
ccplim
05-12-2008, 05:12 AM
ccplim,,,
Good deal,,, Hard work pays off...:up:
Sorry,,, I forgot about the spacer size changes will also affect your forum alignments...
Changing the colspan count in your form will only affect that template...
COLSPAN ("how many across") and ROWSPAN ("how many down")
Thanks! :)
But then, I noticed that the column that I wanted to change is not controlled by COLSPAN. The COLSPAN that we are using here is actually controlling the column on the right hand side. :confused:
Scalemotorcars
05-12-2008, 12:17 PM
************************************************** **
Daniel,,,
I setup your form and its showing manage attachments...
Scratch the form as the issue...
Its gotta B something else???
May its the usergroup setup??? It has 2-B something concerning PERMISSIONS or USERGROUP access...
************************************************** **
ccplim,,,
I will post L8ter
Thats what I thought also but no luck Ive edited both those in several ways and its not changing.
What about using the code right off the upload pop-up? Can it be hard coded into the form page? And if so how???
redraider
05-12-2008, 05:58 PM
Any changes required for vb 3.7 ?
Deepdog009
05-12-2008, 10:47 PM
Thanks! :)
But then, I noticed that the column that I wanted to change is not controlled by COLSPAN. The COLSPAN that we are using here is actually controlling the column on the right hand side. :confused:
************************************************** ***
ccplim,,,
I've been a bit busy with testing some stuff for this mod and others,,, afterwards when I have some free time,,, I will try a bit of css and see if that might do the trick...
I will post about it L8ter...
************************************************** ***
Scalemotorcars,,,
I setup your form info and loaded it in IE,,, and it had the manage attachments in the right place... So next I went into my usergroups and switched attachments off,,, refreshed the page and the option was gone...
If you already checked the usergroups and its still not showing then it could also be that another MOD is affecting it???
************************************************** ***
redraider,,,
YES,,, this works with 3.7 beauts... install the 4.1 and read help file by ABE1
ccplim
05-14-2008, 11:37 AM
Hi Deepdog009,
Thank you so much :)
Deepdog009
05-14-2008, 07:03 PM
Hi Deepdog009,
Thank you so much :)
YEAP,,,
I think Im going 2 focus more on forms next month and create some add-on form packs with mostly custom forms that will help folks with customizing a bit easier...;):cool:
Scalemotorcars
05-15-2008, 07:15 PM
I think Im going 2 focus more on forms next month and create some add-on form packs with mostly custom forms that will help folks with customizing a bit easier...;):cool:[/QUOTE]
That would be great. No mater what I do I cant get the attachments section to come up. I turned off every hack Ive got and nothing changed. Must be something else.
If you can make another form hack like the WOW with a better attachments section that would be great. I could really use this for my car site when we have on line shows.
uberjon
05-17-2008, 10:56 PM
read this works on 3.7 and appears to with stock .xml file. however when i attempt to use my customized one. i get a white page? cant diagnose the error with a white page with no output source code.
anyone have any ideas?
edit:
*blush* i figured it out! template naming mismatch :p
ccplim
05-18-2008, 04:52 AM
I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down::o
What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.
If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.
Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.
Thanks!
ccplim
05-18-2008, 08:09 AM
How can I remove the VB text input area? I tried to remove '$messagearea' but the three buttons (Submit, Preview, Reset) below also disappeared :confused:
Deepdog009
05-18-2008, 06:11 PM
I am trying to set up some conditional check for my fields but where should I put them in? In the plugin itself or the main template? I have been playing around with the codes for days but just can't seem to get the conditional syntex right :down::o
What is going to happen is that I will have 3 fields in my form, namely $radiochoice1a, $radiochoice1b, and normalanswer1.
If a member select $radiochoice1a as his answer, normalanswer1 will be disabled and no information can be entered in that field.
Else, if the member select $radiochoice1b as his answer, normalanswer1 will be enable.
Thanks!
ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...
What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...
Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...;):eek:
Take a look at this site...>>> PHP HELPER
(http://www.killerphp.com/videos/)
If you still need help after checking over there,,, Give me until tuesday and I will assist U...
*************************************************
ccplim,,,
VB Text edit...>>> delete both lines listed below...
<td class="alt2" valign="middle" colspan="3">
<b>$vbtextquestion</b><br /> <<<......{{{delete this}}}
$vbtextexplain <<<......{{{delete this}}}
<div align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
$messagearea
</td>
</tr>
</table>
</div>
</td>
</tr>
<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" />
</p></td></tr>
</table>
</form>
That should do the trick...
*************************************************
ccplim,,,
Using the disable feature seems to work better with ajax,,, the only problem is that I haven't worked with ajax modifications yet... Too many things going on now,,, so maybe next month If Im not burnt out with mod updates,,, I will attempt adding some ajax...
*************************************************
uberjon,,, Beauts!
ccplim
05-19-2008, 02:48 AM
ccplim,,,
I haven't had much time to help recently because of my job,,, but yeah you can use the standard if conditional to work out your issue...
What I recommend is downloading a few easy mods and take a look at the XML code... Look for mods that use the if statment allot...
Im still half way out of the PHP twilight zone and on top of that my job wont allow my ball and chain to come off very often...;):eek:
Take a look at this site...>>> PHP HELPER
(http://www.killerphp.com/videos/)
If you still need help after checking over there,,, Give me until tuesday and I will assist U...
Thanks for the link pal :) I'll take a look at it and see how things can progress from there :up:
rwoscott
05-20-2008, 02:24 AM
I've managed to customise my form, (finally) and can PM it to myself, but I can't seem to get the submit to a forum work. I've set the Forum id to a couple of forums to ensure it works, but alas it does not.
Anyone have an idea as to why it may not work?
Will supply the link if needed.
grimmer
05-20-2008, 01:07 PM
I would like to have the form post new threads in multiple forums selected by checkboxes.
This code seems to work well for selecting one $formforumid, but the first two "else" statements would prevent multiple selections, and taking them out did no good.
I'm guessing the issue may be that $formforumid can't be assigned multiple values (i.e., $formforumid = "1,2,3" or some such), but hopefully it can and I'm just missing the language that will do it. Easy answers are nice. :p
If anyone has a suggestion to get multiple forums working, I'll make the edit to the original form and post it as an example so it's easy for the next person. Thanks for any ideas... :)
if ($checkboxchoice1_1 = 1)
{
$formforumid = "1";
}
else
if ($checkboxchoice1_2 = 1)
{
$formforumid = "2";
}
else
if ($checkboxchoice1_3 = 1)
{
$formforumid = "3";
}
else
$formforumid = "4";
Bump for a question that about a dozen people here including myself have.
Smiry Kin's
05-20-2008, 11:31 PM
does this work in 3.7.?
as looking for something like this again :)
ccplim
05-22-2008, 02:15 PM
Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:
What could have gone wrong? :confused: :(
Alteran Ancient
05-22-2008, 07:50 PM
Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:
What could have gone wrong? :confused: :(
It's a good thing I refuse to use Firefox. It's an over-rated, worshipless piece of pap that I only ever touch for the plugins people make for it, such as Download managers. I come for their work, not the work of Mozilla.
At least IE8 will come out with Standard mode available.
rwoscott
05-22-2008, 08:11 PM
Oh my goodness..... my form shown up alright in Internet Explorer (see attached "Internet explorer.jpg) but not in Firefox (see attached "Firefox.jpg). :eek:
What could have gone wrong? :confused: :(
It looks like you may have an incorrectly form comment somewhere. <!-- -->
ccplim
05-23-2008, 12:29 AM
It's a good thing I refuse to use Firefox. It's an over-rated, worshipless piece of pap that I only ever touch for the plugins people make for it, such as Download managers. I come for their work, not the work of Mozilla.
At least IE8 will come out with Standard mode available.
That may be true but with so many members out there, I cannot force each and everyone of them to use IE. So, well..... no choice, we have to balance between the two. :(
ccplim
05-23-2008, 12:30 AM
It looks like you may have an incorrectly form comment somewhere. <!-- -->
Maybe? But it works in IE :confused:
I will try and remove the unwanted codes that I have commented out and see how it turn out :)
Deepdog009
05-23-2008, 04:31 AM
Maybe? But it works in IE :confused:
I will try and remove the unwanted codes that I have commented out and see how it turn out :)
ccplim,,,
Use the process of elimination by testing the original form in this mod in IE and FF,,, if all goes well with the original form,,, then next check your new form step by step until you find the issue and correct them or it...
*************************************************
Yes,,, this mod works with 3.7...
ABE1 has version 4.1 listed above,,, download and read instructions...
*************************************************
rwoscott,,,
Upload your form in .txt format and I will try to find the problem in your form...
*************************************************
grimmer,,,
I understand your post...
But can you be more specific about what you are trying to do???
I will help if what you ask,,, isn't difficult...;)
rwoscott
05-24-2008, 12:57 AM
rwoscott,,,
Upload your form in .txt format and I will try to find the problem in your form...
As requested.
Deepdog009
05-24-2008, 01:17 AM
As requested.
rwoscott,,,
I also need the other two parts...>>> (main template, anwser template)
rwoscott
05-24-2008, 01:24 AM
rwoscott,,,
I also need the other two parts...>>> (main template, anwser template)
Oops.
Deepdog009
05-24-2008, 05:23 AM
Oops.
rwoscott,,,
I setup your form and tested on my wamp pc server and my online server and all is well...
I didn't see any issues with your form,,, and so I only changed the forum id from 56 to ...>>> formforumid = "2"; and submitted... It posted without problems...
Verify that forumid's exist and try again...
**************************************************
ccplim,,,
I took a deeper look at your main template and yes rwoscott is correct about there are a few errors causing alignment problems and FF issues...
rwoscott
05-24-2008, 09:52 AM
rwoscott,,,
I setup your form and tested on my wamp pc server and my online server and all is well...
I didn't see any issues with your form,,, and so I only changed the forum id from 56 to ...>>> formforumid = "2"; and submitted... It posted without problems...
Verify that forumid's exist and try again...
Very odd, I changed it to forumid "2" as well and still nothing.
:confused:
I only get a PM.
Deepdog009
05-24-2008, 09:15 PM
Very odd, I changed it to forumid "2" as well and still nothing.
:confused:
I only get a PM.
rwoscott,,,
pm me the link 2 your form,,, and I will give it a go...
Also use the process of elimination by trying a few tests???
try the original form without changing the pm name
try changing your form pm info to empty and submit it
try turning off pm's and submit it
try checking your posting permissions
There's always a reason why its do or die...;)
xTerMn8R
05-25-2008, 02:55 AM
HI all,
I recently reinstalled a few forms I had created with Forms 4.0, and am running into a few issues... The infamous "Security Token" issue which I was able to fix after reading the posts here... Thank you VERY Much ....
But for some reason MY FORMS dont use the style correctly and stretch out the center Block way over to the right side of the form making it look like crap. I loaded the default "FORM" and that displays fine... I took all the code from the top of the "Form" Template ( all the way done to the </td> after </fieldset> tag ) and inserted it into My Form but to no avail... I still have a stretched out ugly form?
Can someone Point me into the right direction to fix this...
Below is the WebHelp Template 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="75%" 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" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="75%" align="center">
<tr>
<td class="tcat" colspan="2">
$vboptions[bbtitle] - $formtitle
</td>
</tr>
<tr>
<td class="panelsurround" align="center" colspan="2">
<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>
<table width="75%" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86" align="center">
<tr>
<td class="alt1" valign="middle">
<b>Username</b></td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>Your Listed E-mail</b><br />(Be sure this is correct or your form will not be processed)</td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[email]</b></td>
</tr></table>
<table width="75%" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86" align="center">
<tr>
<td class="alt1" valign="middle">
<b>User Group</b></td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[usergroupid]</b></td>
</tr>
<tr>
<td class="alt1" valign="middle">
<b>User ID</b></td>
<td class="alt1" valign="middle">
<b>$bbuserinfo[userid]</b></td>
</tr>
</table>
<table width="75%" align="center" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86">
<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:
</td>
<td class="alt1" valign="middle" colspan="1">
<select name="dropdownanswer1">
<option value="$dropdownchoice1a" <if condition="$dropdownchoice1a == $dropdown1">selected="selected"</if>>$dropdownchoice1a</option>
<option value="$dropdownchoice1b" <if condition="$dropdownchoice1b == $dropdown1">selected="selected"</if>>$dropdownchoice1b</option>
<option value="$dropdownchoice1c" <if condition="$dropdownchoice1c == $dropdown1">selected="selected"</if>>$dropdownchoice1c</option>
<option value="$dropdownchoice1d" <if condition="$dropdownchoice1d == $dropdown1">selected="selected"</if>>$dropdownchoice1d</option>
<option value="$dropdownchoice1e" <if condition="$dropdownchoice1e == $dropdown1">selected="selected"</if>>$dropdownchoice1e</option>
<option value="$dropdownchoice1f" <if condition="$dropdownchoice1f == $dropdown1">selected="selected"</if>>$dropdownchoice1f</option>
<option value="$dropdownchoice1g" <if condition="$dropdownchoice1g == $dropdown1">selected="selected"</if>>$dropdownchoice1g</option>
<option value="$dropdownchoice1h" <if condition="$dropdownchoice1h == $dropdown1">selected="selected"</if>>$dropdownchoice1h</option>
</select></td>
</tr></table>
<table width="75%" align="center" font color="#000000" border=8 bordercolorlight="#db8928" bordercolordark="742f07" bgcolor="#dcbd86">
<tr>
<td class="alt1" valign="Top">
<b>$longquestion1</b><br />
$longexplain1</td>
<td class="alt1" valign="Top" colspan="2">
<textarea rows="20" cols="50" name="longanswer1">$longanswer1</textarea>
</td>
</tr></table>
<br>
<table width="75%" bgcolor="#dcbd86" align="center" font color="#000000" border="4" bordercolorlight="#db8928" bordercolordark="742f07">
<tr>
<td>After clicking the<b>"Submit"</b> button you will be redirected to Super Skunk's Home page. This will indicate that your request for assistance has been processed for attention. Thank you...</td>
</tr>
</table><br>
</table>
</div>
</td>
</tr><br><br>
<tr>
<td valign="top" colspan="3">
<p align="center">
<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="submit" value="Preview" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" />
<input type="reset" value="Reset" name="reset" style="font-family: Verdana; font-size: 10pt" class="button" />
</p></td></tr>
</table>
</form>
$footer
</body>
</html>
Thank you,
Tom
www.superskunkracing.org
CampinCarl
05-25-2008, 06:38 AM
How do i make it so there is a drop down menu, and if the user picks one of the choices, it posts the form in the forum indicated by the drop down menu?
xTerMn8R
05-25-2008, 03:12 PM
Never Mind I figured it out, it was just getting my Colspans set correctly in the Templates, Wierd how they worked before but anyway there all done and back to Normal, LOL probably better then before...
Tom
CampinCarl
05-25-2008, 03:32 PM
my problem is still unsolved!
Deepdog009
05-26-2008, 02:10 AM
How do i make it so there is a drop down menu, and if the user picks one of the choices, it posts the form in the forum indicated by the drop down menu?
CampinCarl,,,
goto this link and yee shall find what yee ask...>>> Dropdowns (https://vborg.vbsupport.ru/showpost.php?p=1337121&postcount=645)
************************************************** **********
xTerMn8R,,,
glad you resolved your issue...
Also table and longanwser settings can cause some issues...;)
Does this also work with vb 3.7.1 - the new release?
If this works in 3.7, then I'd like to suggest a thread is opened for this hack in the sub-forum for 3.7 mods too :)
HabboHut
05-30-2008, 06:29 AM
Not sure if this has been asked before, but is it possible that you can just have normal answer boxes for all the form fields? This is what I'm trying to do, but can't work out how...
ccplim
05-30-2008, 07:09 AM
Not sure if this has been asked before, but is it possible that you can just have normal answer boxes for all the form fields? This is what I'm trying to do, but can't work out how...
Yes you can. And this should be pretty simple and straight forward :)
edongski
06-02-2008, 02:54 PM
I wish that it would be updated to use the prefixes in 3.7.1
vrokar
06-02-2008, 07:42 PM
How do i make it so there is a drop down menu, and if the user picks one of the choices, it posts the form in the forum indicated by the drop down menu?
Dont have the code handy at work. But set your forumid to a dropdown answer.
EX $forumid = $dropdown1
HabboHut
06-04-2008, 07:47 AM
For some reason, Administrators can see the attachment option at the bottom, but normal users cannot. How can I fix this?
Deepdog009
06-04-2008, 09:14 PM
For some reason, Administrators can see the attachment option at the bottom, but normal users cannot. How can I fix this?
HabboHut,,,
Goto admincp and look 4 usergroup options area...
Open and make changes to only groups that U wish to access page...
**************************************************
I forgot about the internal usergroup option within this mod...
Look in the PLUGIN code at the top and edit the usergroup option there to allow other members grps...
CampinCarl
06-06-2008, 05:13 AM
I cant get multiple forms to work :/
i get this error when i try:
Parse error: syntax error, unexpected '<' in /usr/local/apache/htdocs/deathmatch/communitysite/index/forums/newthread.php(73) : eval()'d code on line 1
ionian
06-06-2008, 06:37 AM
I wish that it would be updated to use the prefixes in 3.7.1
Yes..! It would be great update for me too :)
Deepdog009
06-08-2008, 01:04 AM
I cant get multiple forms to work :/
i get this error when i try:
Parse error: syntax error, unexpected '<' in /usr/local/apache/htdocs/deathmatch/communitysite/index/forums/newthread.php(73) : eval()'d code on line 1
CampinCarl,,,
That line of code helps about 10%...
Can U give a bit more info please and I will try to assist U???
Loved using this, cant get it to work at all in 3.7.1. Getting a security token error whenever anyone tries to submit a form. Does anyone know how to stop this from happening?
Deepdog009
06-09-2008, 06:25 PM
Loved using this, cant get it to work at all in 3.7.1. Getting a security token error whenever anyone tries to submit a form. Does anyone know how to stop this from happening?
*************************************************
absy,,,
Download 4.1 ver...
Read Instructions on how to update S.Token...
*************************************************
Folks I've noticed that IE7 has a minor issue with ATTachmenTs... N-E-Body???
If I can see the issue I will post on why its doing that...
ravelink69
06-11-2008, 01:49 PM
anyone getting this to work on 3.7.1?
Deepdog009
06-11-2008, 10:48 PM
anyone getting this to work on 3.7.1?
ravelink69,,,
YES,,, its working...
Which browser are U using???
Post a link to your FORM???
Attitude5ire
06-15-2008, 05:48 PM
Not sure if this was asked before did a search and saw vague posts.
Is there any tweaks to do by which when it sends out email.
We can get the FROM: address to be email address of Username which sent the form.
Any help regarding this would be helpful.
redraider
06-17-2008, 02:04 PM
In vbulletin 3.7x ...there is a new features to allow for thread "tagging" ...is there a way to have user input tags as a part of the form?
Smiry Kin's
06-18-2008, 12:05 AM
wtf, why is this so basic? what happen to the old version where you could add forms via ACP? im sure u cud..
Smiry Kin's
06-18-2008, 12:20 AM
anyone got this to intergrate with vbadvanced? cant seem to do it?..
i cant get it to work. its intalled it comes up, but i tested it, i dont recieve email/pm/thread
Deepdog009
06-18-2008, 10:34 PM
Not sure if this was asked before did a search and saw vague posts.
Is there any tweaks to do by which when it sends out email.
We can get the FROM: address to be email address of Username which sent the form.
Any help regarding this would be helpful.
************************************************** *******
Attitude5ire,,,
I haven't tryed messing with the email yet,,, if I ever get lots of free time,,, I will look at email functions... ABE1 can help you better...
************************************************** *******
redraider,,,
The way this mod is setup,,, Its not easy making it more easy...
Believe me i've played with it a bit and afterwards,,, I've had to take a long break away to recoup brain cells... YES it could be done,,, but it ain't going to be easy brother...:eek:
************************************************** *******
Smiry Kin's,,,
This mod works ok...
Can you upload your form in TXT mode?
I will help U get er up and rolling if I can...
Attitude5ire
06-19-2008, 02:07 PM
Thnx for reply Deep, ill scratch around stuff and see anythin i can come up with.. I did find the Vbmail function and the variables used, it uses the generic support email of board in FROM field. i jus need to change it as make it parse the senders email field.
vbmail function is $from='email'. Thnx for followup though.. not sure if ABE1 is supportin this thread.. but maybe he can post a better solution.
Sofia
06-20-2008, 10:58 AM
Thanks a lot ! Great hack !!
Deepdog009 ->
I've a problem :
I alter the answer template and I added some BBcode.
Example :
[.B]$answer1[./B]
But I can't use BBcode around variable. I just want to have answer bold.
Thank you for your help :)
ccplim
06-20-2008, 12:19 PM
Thanks a lot ! Great hack !!
Deepdog009 ->
I've a problem :
I alter the answer template and I added some BBcode.
Example :
[.B]$answer1[./B]
But I can't use BBcode around variable. I just want to have answer bold.
Thank you for your help :)
Hi Sofia,
Try putting a space just before and after $answer1 as shown in my example given below. It works for me :)
[.B] $answer1 [./B]
Sofia
06-20-2008, 12:36 PM
Hi Sofia,
Try putting a space just before and after $answer1 as shown in my example given below. It works for me :)
[.B] $answer1 [./B]
Yeahhhh !!!
It works now :) Thanks a lot, ccplim ;)
ccplim
06-21-2008, 02:17 AM
Yeahhhh !!!
It works now :) Thanks a lot, ccplim ;)
You are welcome! :) With that solution given to you, it actually resolved another similar question that I have raised to deepdog009 two days back.
Man.... I have been messing with html and ajax for my form that I completely forgot about the bb codes :p
Smiry Kin's
06-23-2008, 12:38 PM
anyone edited theres to look nicer lay-out???
also how do i intergate this into vbadvanced... i cant find away
regards
aflax045
06-25-2008, 10:45 PM
Strange Issue. I get a security token error when using the form with a registered user, but not when I use it with an unregistered user. This makes it kind of useless. Any thoughts on why this is happening?
Deepdog009
06-26-2008, 03:34 AM
anyone edited theres to look nicer lay-out???
also how do i intergate this into vbadvanced... i cant find away
regards
*********************************************
Smiry Kin's,,, this mod works by way of http://yoursite.com/forum/newthread.php?do=form
That's the only link that activates all forms in forumhome newthreads...
What do you mean about it working in CMPS = vbadvanced???????
*********************************************
aflax045,,,
Download 4.1 zip file and read txt file by ABE1,,, it explains how to update and FIX security token issue...
aflax045
06-26-2008, 02:21 PM
aflax045,,,
Download 4.1 zip file and read txt file by ABE1,,, it explains how to update and FIX security token issue...
Already had done that. It was some other issue, thanks anyway.
karnevil
07-01-2008, 11:28 AM
ah haaaaaaaaaaaa edit the template too. Wicked all works lovely....will be amazingly helpful. Thankyou.
Oh I'm on 3.7 :)
GraNdMaStEr-B
07-01-2008, 11:48 PM
I get this error for some reason anyone know why?
Your submission could not be processed because a security token was missing or mismatched.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Deepdog009
07-02-2008, 07:21 AM
I get this error for some reason anyone know why?
*********************************************
GraNdMaStEr-B,,,
I posted about your issue several times recently...>>>
*********************************************
Many have been asking about TRIPLE DROPDOWN's...>>> Install Form Hack and add ajax triple & double dropdowns...
U must have basic javascript knowledge to setup ajax dropdowns...
vithorius
07-02-2008, 08:38 AM
Hi folks!
I have a doubt, and don't know if this question was already answered, so sorry if this it was. ;)
My situation:
I have two Free Classified Adds sections on my forum and I would like my users to fill a form with some formated fields so they can make new posts on those sub-forums (say forumdisplay.php?f=21 AND forumdisplay.php?f=22).
Ok, until now, I guess that this Mod is just fine for me, but I would like to remove the button "New Thread" from those sub-forums (f=21 and f=22), so users can't start new threads using the "New Thread" button.
Instead, they will have start new threads only using the form.
My question:
How do I disable the "New Thread" button only for those sub-forums? :confused:
Thank you very much to all! :up: :up:
ccplim
07-02-2008, 11:59 AM
Hi folks!
I have a doubt, and don't know if this question was already answered, so sorry if this it was. ;)
My situation:
I have two Free Classified Adds sections on my forum and I would like my users to fill a form with some formated fields so they can make new posts on those sub-forums (say forumdisplay.php?f=21 AND forumdisplay.php?f=22).
Ok, until now, I guess that this Mod is just fine for me, but I would like to remove the button "New Thread" from those sub-forums (f=21 and f=22), so users can't start new threads using the "New Thread" button.
Instead, they will have start new threads only using the form.
My question:
How do I disable the "New Thread" button only for those sub-forums? :confused:
Thank you very much to all! :up: :up:
Hi Vithorius,
If I understand your requirements correctly, this (https://vborg.vbsupport.ru/showthread.php?t=102923) could be just the mod that you need :)
vithorius
07-02-2008, 12:24 PM
If I understand your requirements correctly, this (https://vborg.vbsupport.ru/showthread.php?t=102923) could be just the mod that you need :)
Well...!!! How can I say this...?!?
JUST PERFECT!!! PERFECT, PERFECT, PERFECT!!!
Thank you so very, very much!!!
:up: :up: :up: :p :up:
(What a quick answer to my question! I must say that I was a bit pessimist about getting a quick answer... That was GREAT!)
Will install it right away!
https://vborg.vbsupport.ru/external/2011/07/3.gif P.S. - I must suggest that you edit the original post for this hack and put some kind of information regarding this "Edit New Thred Button" hack... It will for sure help a lot of new users! (like myself!) https://vborg.vbsupport.ru/external/2011/07/3.gif
ccplim
07-03-2008, 08:00 AM
Well...!!! How can I say this...?!?
JUST PERFECT!!! PERFECT, PERFECT, PERFECT!!!
Thank you so very, very much!!!
:up: :up: :up: :p :up:
(What a quick answer to my question! I must say that I was a bit pessimist about getting a quick answer... That was GREAT!)
Will install it right away!
You are most welcome and glad that the solution works for you :up:
https://vborg.vbsupport.ru/external/2011/07/3.gif P.S. - I must suggest that you edit the original post for this hack and put some kind of information regarding this "Edit New Thred Button" hack... It will for sure help a lot of new users! (like myself!) https://vborg.vbsupport.ru/external/2011/07/3.gif
This is a good idea. You might want to contact Abe1 and get him to do so :)
vithorius
07-03-2008, 12:57 PM
This is a good idea. You might want to contact Abe1 and get him to do so :)
Ooops...! I was so speedy on replying that I did not even see that you are not the author of this hack... :eek: :p :rolleyes:
So, Abe, one suggestion:
https://vborg.vbsupport.ru/external/2011/07/3.gif You should put some information here on your first post informing users that you have the "Edit New Thread Button" available for all those that might nedd it!
It would be a tremendous help for us non-coders and a bit inexperienced (just like myself!) https://vborg.vbsupport.ru/external/2011/07/3.gif
Keep on the excellent work! :up: :up:
eternal_
07-04-2008, 10:10 PM
Are there any updates for 3.7? Or any mods similar to this with a simple xml upload?
brainfood
07-06-2008, 07:19 PM
Hi,
This looks like a great modification and is just what I am looking for. I have recently installed vBulletin 3.72 and am wondering two things:
1) Does this modification work with 3.7x? If yes what modifications need to be done to the latest version of this modification?
2) Is there a version of this modification or something like it that has been developed specifically for 3.7x?
Thanks!
GraNdMaStEr-B
07-06-2008, 09:31 PM
*********************************************
GraNdMaStEr-B,,,
I posted about your issue several times recently...>>>
*********************************************
Many have been asking about TRIPLE DROPDOWN's...>>> Install Form Hack and add ajax triple & double dropdowns...
U must have basic javascript knowledge to setup ajax dropdowns...
Well instead of reading thru 75 threads can you give me the link
GraNdMaStEr-B
07-06-2008, 09:43 PM
ok I found the post but I can't seem to find where this is located at
Open the hook (plug-in)
Find:
eval('$formsend = "' . fetch_template("$answertemplate") . '";');
REPLACE with this:
eval('$formsend = "' . fetch_template("$answertemplate", 0, false) . '";');
ccplim
07-07-2008, 09:29 AM
ok I found the post but I can't seem to find where this is located at
Go to your ACP and scroll down to Plugins & Products --> Plugin Manager.
Under the Plugin System, look for "Product : Form Hack" and you should see the name of your plugin in the first column (default = Form Hack). Click on the "Edit" option to the right of the plugin and it will bring you to the Edit plugin page. Search for the codes under "Plugin PHP Code" and you should be able to find it :)
Deepdog009
07-07-2008, 03:00 PM
Well instead of reading thru 75 threads can you give me the link
************************************************** ***********
Er U GO...>>>DROPDOWNS (https://vborg.vbsupport.ru/showthread.php?t=182144)<<<
DROPDOWN forum posting...>>>One of many (https://vborg.vbsupport.ru/showpost.php?p=1337121&postcount=644)<<<
Stryker412
07-09-2008, 12:18 AM
Before I begin, do any of the directions need to change for 3.7.2?
Deepdog009
07-09-2008, 04:11 AM
Before I begin, does any of the directions need to change for 3.7.2?
************************************************** ********
NOPE,,, all is wonderful here...
Read instructions by ABE1 in Form Hack 4.1 download and thats about it...
************************************************** ********
I will be releasing a FORMs EASY PACK addon in the future...
Whats in this FORMs EASY PACK you say? FORMs...;)
Custom Forms
Standard Forms
Ajax Forms
Why??? To help newbie form hack guys & gals...
************************************************** ********
Stryker412
07-09-2008, 06:11 PM
Is there anyway to have certain fields auto filled? I have restricted the application to registered forum users only. I'd like their e-mail, birthday, and xfire info to auto fill before they start. Is this possible?
I've created a forum for just the applications to go after being completed. I want the title of the thread to be their usernames.
Also, how do I get rid of questions and/or change their formats?
lazytown
07-09-2008, 09:26 PM
For some reason this will not work for GUESTS in 3.7.2 pl1. It submits the form fine, but the thread doesn't appear in the mod section. It works fine for all other members.
Update: I had to turn off guest image verification in order for this to work for guests...
-vissa
lazytown
07-09-2008, 09:59 PM
Unfortunately all of the spam prevention options/plug-ins for this are gone. If you click the links within the first thread that point to the anti-spam plugins, they have been removed/disabled by the author.
So what are people using for spam protection / image verification / etc for this with 3.7?
-vissa
Deepdog009
07-10-2008, 01:00 AM
Is there anyway to have certain fields auto filled? I have restricted the application to registered forum users only. I'd like their e-mail, birthday, and xfire info to auto fill before they start. Is this possible?
I've created a forum for just the applications to go after being completed. I want the title of the thread to be their usernames.
Also, how do I get rid of questions and/or change their formats?
*******************************************
Yes Stryker412,,,
But it will require pulling info from your forum database...
I only do simple add-ons with this mod,,, ABE1 can help you better...
I been working on some options with this mod that work,,, but Im still not quite there...
This mod has deleted many brain cells and so I break away and come back when replenished...
Working several jobs,,, two wifes {computer and wife};) and two kids {dog and kid}:eek:
I need a VACATION...
*******************************************
vissa,,,
I was working on another image verification,,, but very little support using them so I put it on hold...
Stryker412
07-10-2008, 03:58 PM
I can worry about the auto filling fields later, but what's the best way to delete some of the existing questions?
Shazz
07-10-2008, 04:06 PM
I can worry about the auto filling fields later, but what's the best way to delete some of the existing questions?
You have to open the XML file do some dirty work :o
davida500
07-11-2008, 09:18 PM
I have an issue, its probably something stupif, or im probably forgetting something, so i hope you can help, it is a very small problem but if i need to do something more important in the future then it will mess everything up.
I have made a Form for reporting issues with the wesbite, this is what the code says FOR THIS SPACIFIC PART when you click Plugins and Products --> Plugin Manager --> Site Issues Form Hack
$dropdownquestion2 = "Importance:";
$dropdownchoice2a = " ";
$dropdownchoice2b = "Low";
$dropdownchoice2c = "Medium";
$dropdownchoice2d = "High";
$dropdownchoice2e = "Urgent";
$dropdownchoice2f = "Critical";
If you then go to Styles and Templates --> Current Theme --> Edit Template --> SiteForm...
You get this:
<tr>
<td class="alt2" valign="middle">
<b>$dropdownquestion2</b>
</td>
<td class="alt2" valign="middle" colspan="2">
<select name="dropdownanswer2">
<option value="$dropdownchoice2a" <if condition="$dropdownchoice2a == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2a</option>
<option value="$dropdownchoice2b" <if condition="$dropdownchoice2b == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2b</option>
<option value="$dropdownchoice2c" <if condition="$dropdownchoice2c == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2c</option>
<option value="$dropdownchoice2d" <if condition="$dropdownchoice2d == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2d</option>
<option value="$dropdownchoice2e" <if condition="$dropdownchoice2e == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2e</option>
</select></td>
</tr>
Then if you do the same thing but not go to SiteFormAnswers instead of Site Form... You get this:
<font color="white"><strong>$dropdownquestion2</font></strong>
$dropdownanswer2
When you go onto the form, it shows up fine and everything works, when it is submited it goes into the correct Forum Area, below is a picture showing the form before being submited:
http://img384.imageshack.us/img384/46/beforebp5.jpg (http://imageshack.us)
http://img384.imageshack.us/img384/46/beforebp5.53e4ea0cfe.jpg (http://g.imageshack.us/g.php?h=384&i=beforebp5.jpg)
Below is a picture showing the form after it has been submited:
http://img521.imageshack.us/img521/9744/afterlm1.jpg (http://imageshack.us)
http://img521.imageshack.us/img521/9744/afterlm1.48085affa7.jpg (http://g.imageshack.us/g.php?h=521&i=afterlm1.jpg)
As you can see there is a problem were it shows the "Importance" which i think i have spelt wrong lol, but as you can see nothing is written next to it, even though i do go into the frop down menu and select an option.
Please be aware that i was not the one that set up the hack or created the forms, i just added the "Importance" drop down menu, but as you can see, my noobness makes me fail.
I think i found everything that would need editing so if someone could please point me in the right direction as to were i am going wrong and how to resolve it, i would be so greatful.
Thanks in advance,
- David
R1lover
07-11-2008, 09:32 PM
is there one for 3.7.2? or will this one work?
davida500
07-11-2008, 09:47 PM
Im running 3.7 and it works :)
davida500
07-12-2008, 01:48 PM
Can someone help me PLEASE!!
Antivirus
07-12-2008, 04:20 PM
Big fan of this mod for a while now Abe1, thanks.
One thing I recently noticed however is that the form template isn't cached when viewing newthread.php?do=form. As we all know, this causes an unnecessary query on the server.
This can be fixed by adding the following plugin to the product at hook location: cache_templates
if (THIS_SCRIPT == 'newthread' AND $_REQUEST['do'] == 'form')
{
// Cache template for Abe1 Form Hack
$globaltemplates[] = 'form';
$globaltemplates[] = 'formanswers';
}
:)
davida500
07-13-2008, 03:33 PM
Its ok, i fexed my problem, it was something very simple lol.
Thanks,
- David
Stryker412
07-14-2008, 07:14 PM
If anyone has some time, I could use some help over IM in getting this set up for the first time.
sparkster666
07-14-2008, 07:35 PM
Is there anyway you could make it so when a form is filled out the person who filled out the application is added to a group??:D
Deepdog009
07-15-2008, 04:42 AM
If anyone has some time, I could use some help over IM in getting this set up for the first time.
****************************************
Stryker412,,,
What exactly do ye need help with???
****************************************
sparkster666,,,
YES,,, but it requires some modifications to enchance this mod...
Sorry but I only do simple add-ons to this mod...
****************************************
davida500,,,
I stop by vbulletin.org every three days... Great job finding your issue and fixing...
Stryker412
07-15-2008, 12:22 PM
I want to edit the forum for a standard application to a clan/guild. I don't understand how to edit the questions and/or delete some of them already there.
eternal_
07-15-2008, 07:25 PM
I downloaded, and uploaded in my plugins, when I go to the url, it gives me this
Invalid Forum specified. If you followed a valid link, please notify the administrator.
Why is it not showing up, I did everything correctly, I didn't change the name from form, so I'm going to http://example.com/newthread.php?do=form
I'm using vb 3.7.0
eternal_
07-15-2008, 08:17 PM
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.
is there something here
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?
I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
ccplim
07-15-2008, 11:58 PM
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.
is there something here
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?
I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
Did you delete the radio buttons entries in the formanswers template too?
RedGTiVR6
07-16-2008, 01:56 AM
Big fan of this mod for a while now Abe1, thanks.
One thing I recently noticed however is that the form template isn't cached when viewing newthread.php?do=form. As we all know, this causes an unnecessary query on the server.
This can be fixed by adding the following plugin to the product at hook location: cache_templates
if (THIS_SCRIPT == 'newthread' AND $_REQUEST['do'] == 'form')
{
// Cache template for Abe1 Form Hack
$globaltemplates[] = 'form';
$globaltemplates[] = 'formanswers';
}
:)
thanks!
RedGTiVR6
07-16-2008, 02:20 AM
Essentially my question is the same as questions 22-27 in this thread, but I haven't seen an answer although Dirtycrow figured it out, there is no explanation as to how.
is there something here
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
that causes the radio buttons to stay even though I deleted them in Part 1 and Part 2 and the Questions section?
I find it strange that even though I delete all references to those radio buttons they still stay in the form, and the "If yes, Please explain here" box stays there too.
You cannot just delete the radio buttons from Part1 and Part2 of the plug-in, you also have to comment them out in the rest of that code. For instance, where it says $radioquestion1, just add a // before that entire part and it will comment it out.
You also need to remove them from the form and formanswers templates by removing the code that references it, and not JUST the $radioquestion1 part, everything that relates to it, starting with the <tr> and ending with the last </tr> that wraps that section of the code...including the radioanswer and $radiochoice code as well.
RedGTiVR6
07-16-2008, 03:05 AM
////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "1";
//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.
if ($dropdownanswer2 == "Title here")
{
$formforumid = "11";
}
if ($dropdownanswer2 == "Title here 1")
{
$formforumid = "5";
}
if ($dropdownanswer2 == "Title here 2")
{
$formforumid = "17";
}
if ($dropdownanswer2 == "Title here 3")
{
$formforumid = "9";
}
if ($dropdownanswer2 == "Title here 4")
{
$formforumid = "32";
}
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "0";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
//Make poll public - 1 = yes, 0 = no
$pollpublic = "0";
////////////////////////////////////////////////////////////////////////////////////////////////////
POSTING 2 FORUMS ??????????????????????????????????
Many ways, but this may help U
For some strange reason, this prevents the attachment feature from showing on the form.
Any ideas why that might happen?
BlueBulletRL
07-16-2008, 03:07 AM
I'm having trouble making it work when I click new thread in my 2 forsale forums to the forum. I have put in the variables. I'm not sure if the form works yet because I can't get the form to link to when I hit new thread. Is this something I'm missing in the setup?
RedGTiVR6
07-16-2008, 03:14 AM
this modification doesn't touch the new thread button. To do that, you need a separate modification.
Abe1 created a modification that would do this already. Just check his profile for that.
ccplim
07-16-2008, 03:15 AM
I'm having trouble making it work when I click new thread in my 2 forsale forums to the forum. I have put in the variables. I'm not sure if the form works yet because I can't get the form to link to when I hit new thread. Is this something I'm missing in the setup?
I believed this (https://vborg.vbsupport.ru/showpost.php?p=1564746&postcount=1089) should help solve your problem :)
BlueBulletRL
07-16-2008, 03:35 AM
Thank yoU!
Stryker412
07-16-2008, 12:16 PM
Ok thanks for the tip about the templates, that was what I was missing. Now I want to add a question for the following.
Birthday (3 separate drop down boxes next to each other on the same line, can this be auto filled like the forum name?)
Edit: Ok I've added drop downs for State/Province but I've already used a-z & aa-zz so what can I use next? Can I just keep going aaa-zzz or should I switch to numbers?
How can I make sections separate on the form? I want to have a section for personal info, gaming, info, then a longanswer box for final comments.
I also tested the forum and filled in every question, yet when I go to preview it said I didn't answer all the questions.
RedGTiVR6
07-17-2008, 08:15 PM
I'd keep using letters.
As for the answers, did you ad them to the answer template as well?
No ideas on the separate section other than perhaps creating multiple forms.
MoMan
07-18-2008, 01:01 AM
I almost got everything to work on vBulletin 3.7.2, but there are two things that are bugging me which I'll have to get to work before using the form on my site:
1. Can the form have a field through which users can choose a custom thread title?
2. If the forum to which you try linking the form requires thread prefixes, no new threads can be posted through the form. How would I got about having the form automatically add a prefix, or select a prefix based on a radio button choice or dropdown?
RedGTiVR6
07-18-2008, 02:03 AM
To get the form to have a thread title which is essentially a field, just change $posttitle = $whateveransweryouwant ($answer1 or $longanswer1 or $dropdownanswer1, etc.)
Same as above.
For instance, on our forum, the thread title is generated as the following:
$posttitle = "$dropdownanswer2 - $dropdownanswer1 - $answer2";
MoMan
07-18-2008, 11:34 AM
To get the form to have a thread title which is essentially a field, just change $posttitle = $whateveransweryouwant ($answer1 or $longanswer1 or $dropdownanswer1, etc.)
Same as above.
For instance, on our forum, the thread title is generated as the following:
$posttitle = "$dropdownanswer2 - $dropdownanswer1 - $answer2";
Thanks a lot for the reply!
Do you also happen to know what the vBulletin variable for prefixes is?
RedGTiVR6
07-18-2008, 01:01 PM
That I don't know, but you might try the programing discussions forum?
AsscBB
07-18-2008, 04:28 PM
Is there a way to have the dropdown menu selections be a variable? I have a need for a variable length dropdown based on the results of a query so rather than using a drop down for static results like gender, I would like it to be able to return a variable length of options such as all of the members of a particular usergroup.
any ideas?
Thanks!
Stryker412
07-18-2008, 04:31 PM
How do I do three drop downs side by side rather than under each other? I want one for Month, Day, year.
If I want the thread title to be the username of the applicant it would be $posttitle = $bbuserinfo ?
Also, is there anyway to have the submitted form posted in a section that the user cannot see? I want each application to be submitted to the admin section so we may comment/vote on each one.
Is it possible to only allow the person to submit an application once?
Lastly, is there a way to automatically reject an application (once it's filled out) if a certain variable is not met (such as age)?
Stryker412
07-20-2008, 12:47 PM
bump, anyone?
Stryker412
07-21-2008, 02:38 PM
I'd keep using letters.
As for the answers, did you ad them to the answer template as well?
No ideas on the separate section other than perhaps creating multiple forms.
This is how my formanswers looks:
$formtitle
$bbuserinfo[username]
$question1
$answer1
$question2
$answer2
$question3
$answer3
$question4
$answer4
$dropdownquestion1
$dropdownanswer1
$dropdownquestion2
$dropdownanswer2
$dropdownquestion3
$dropdownanswer3
$dropdownquestion4
$dropdownanswer4
-----------------------------------------------------
$longquestion1
$longanswer1
------------------------------------------------------
RedGTiVR6
07-21-2008, 03:09 PM
1.) Make sure each answer is added to the plug-in in the top section.
2.) Make sure each answer is also listed as an option in the form template. (usually as such: <select name="dropdownanswer2">) - you MUST tell the system essentially this: What ever the users pics as their answer to the drop down, that becomes dropdownanswerx.
3.) Make sure each answer is listed in the form answer template.
If you have them listed in each, then you should see it showing up.
Stryker412
07-21-2008, 03:36 PM
1.) Make sure each answer is added to the plug-in in the top section.
2.) Make sure each answer is also listed as an option in the form template. (usually as such: <select name="dropdownanswer2">) - you MUST tell the system essentially this: What ever the users pics as their answer to the drop down, that becomes dropdownanswerx.
3.) Make sure each answer is listed in the form answer template.
If you have them listed in each, then you should see it showing up.
I have the questions I'm not using commented out, could that be an issue?
// 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,
'dropdownanswer1' => TYPE_STR,
'dropdownanswer2' => TYPE_STR,
'dropdownanswer3' => TYPE_STR,
'dropdownanswer4' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => 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'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
$dropdownanswer2 = $vbulletin->GPC['dropdownanswer2'];
$dropdownanswer3 = $vbulletin->GPC['dropdownanswer3'];
$dropdownanswer4 = $vbulletin->GPC['dropdownanswer4'];
$answer3 = $vbulletin->GPC['answer3'];
$answer4 = $vbulletin->GPC['answer4'];
//$checkboxanswer1_1 = $vbulletin->GPC['checkboxanswer1_1'];
//$checkboxanswer1_2 = $vbulletin->GPC['checkboxanswer1_2'];
//$checkboxanswer1_3 = $vbulletin->GPC['checkboxanswer1_3'];
$longanswer1 = $vbulletin->GPC['longanswer1'];
RedGTiVR6
07-21-2008, 03:46 PM
No, that wouldn't cause the problem.
In your form template, the call for the drop down should look something like this, does it?
<td class="alt1" valign="middle">
<b>$dropdownquestion2</b>:
</td>
<td class="alt1" valign="middle" colspan="2">
<select name="dropdownanswer2">
<option value="$dropdownchoice2a" <if condition="$dropdownchoice2a == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2a</option>
<option value="$dropdownchoice2b" <if condition="$dropdownchoice2b == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2b</option>
<option value="$dropdownchoice2c" <if condition="$dropdownchoice2c == $dropdownanswer2">selected="selected"</if>>$dropdownchoice2c</option>
</select></td>
</tr>
Stryker412
07-21-2008, 04:07 PM
Mine:
<tr>
<td class="alt2" valign="middle">
<b>$dropdownquestion1</b>:
</td>
<td class="alt2" valign="middle" colspan="2">
<select name="dropdownanswer1">
<option value="$dropdownchoice1a" <if condition="$dropdownchoice1a == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1a</option>
<option value="$dropdownchoice1b" <if condition="$dropdownchoice1b == $dropdownanswer1">selected="selected"</if>>$dropdownchoice1b</option>
</select></td>
</tr>
Stryker412
07-21-2008, 04:20 PM
This is how my formanswers looks:
$formtitle
$bbuserinfo[username]
$question1
$answer1
$question2
$answer2
$question3
$answer3
$question4
$answer4
$dropdownquestion1
$dropdownanswer1
$dropdownquestion2
$dropdownanswer2
$dropdownquestion3
$dropdownanswer3
$dropdownquestion4
$dropdownanswer4
-----------------------------------------------------
$longquestion1
$longanswer1
------------------------------------------------------
ok I think I found the issue. I forgot to edit the one section of the hack.
if ($answerall == "1")
{
if ($answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $answer4 == '' OR $dropdownanswer1 == '' OR $dropdownanswer2 == '' OR $dropdownanswer3 == '' OR $dropdownanswer4 OR $longanswer1 == '')
I edited the line but am still getting the error that I have to answer all questions.
MoMan
07-21-2008, 10:26 PM
Thanks a lot for the reply!
Do you also happen to know what the vBulletin variable for prefixes is?
That I don't know, but you might try the programing discussions forum?
I've looked through the XML file and found a way for a radio option to assign a thread prefix. Here's the code I added, if anyone else is interested:
Find:
$newpost['title'] =& $posttitle;
Below Add:
if ($radiochoice2a == $radioanswer2)
{
$newpost['prefixid'] = '7';
}
Modify the conditional to your needs, obviously, or add a second or third one, depending on how many prefixes you're using. You'll need to get the prefix IDs from the admin panel's prefix list page.
Stryker412
07-21-2008, 11:24 PM
Ok I fixed it finally. I still need help on some questions.
1) How can I bold the questions once they're posted?
2) How can I set it so the title of each thread includes the applicant's forum name?
3) How do I add two more drop down boxes next to an existing question? Like I've said previously I want to do month, day, and year in a row.
4) Is there anyway to prevent a person from submitting a application more than once?
Deepdog009
07-22-2008, 04:30 AM
For some strange reason, this prevents the attachment feature from showing on the form.
Any ideas why that might happen?
*******************************************
RedGTiVR6,,,
I'm currently looking into other options... I will post about it by wensday...
*******************************************
Ok I fixed it finally. I still need help on some questions.
1) How can I bold the questions once they're posted?
2) How can I set it so the title of each thread includes the applicant's forum name?
3) How do I add two more drop down boxes next to an existing question? Like I've said previously I want to do month, day, and year in a row.
4) Is there anyway to prevent a person from submitting a application more than once?
*******************************************
Stryker412,,,
Posting bbcodes will solve Q1... This mod allows bbcode in both MAIN template & ANSWERS template...
MAIN template
<tr>
<td class="alt1" valign="middle">
<b>Username</b>:<br />
Your Username.</td>
<td class="alt1" valign="middle" colspan="2">
<b>$bbuserinfo[username]</b></td>
</tr>
<tr>
<td class="alt2" valign="middle">
<b>$question1</b>:<br />
</td>
ANSWER template
$bbuserinfo[username]
$question1 :eek:
$answer1
$question2 ;)
$answer2
$question3 :up:
$answer3
$question4 :D
$answer4
$dropdownquestion1
$dropdownanswer1
$dropdownquestion2
$dropdownanswer2
Q2 requires some minor code changes to $posttitle,,, take a look RedGTiVR6 recent postings......
Q3 ??? *** Download and install forms below to help you better with triple dropdowns......
Q4 ??? *** Prevent more than once submit? Members by userid,,, guests???:eek: ......
pipin
07-22-2008, 06:59 AM
For some reason this will not work for GUESTS in 3.7.2 pl1. It submits the form fine, but the thread doesn't appear in the mod section. It works fine for all other members.
Update: I had to turn off guest image verification in order for this to work for guests...
-vissa
same here, but it doesn't bother me, cause guests aren't allowed to post in the forum.
Strange thing is, that in 4.1 and the versions before the messagearea with the vb editor doesnt work at all, even in the standard template of this mod.
Stryker412
07-22-2008, 09:41 AM
Q4 ??? *** Prevent more than once submit? Members by userid,,, guests???:eek: ......
Registered users only, I don't allow guests to use the form.
If I try to add bbcode to the answers form I get this:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected '/', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /forum/includes/adminfunctions_template.php(3716) : eval()'d code on line 4
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Also, not sure if anyone knows but hitting the Reset button on the form does nothing.
Stryker412
07-22-2008, 04:20 PM
Q3 ??? *** Download and install forms below to help you better with triple dropdowns...
I installed the triple dropdown product, but what do I do with it?
lazytown
07-23-2008, 08:52 AM
Works pretty good in 3.7.2, however it's SPAMORAMA on my 2 forums... I will probably have to remove this if there is no spam protection option.
-vissa
Deepdog009
07-25-2008, 05:34 AM
For some strange reason, this prevents the attachment feature from showing on the form.
Any ideas why that might happen?
*****************************************
Take a look at these links...>>>
Dropdown Forum posting (https://vborg.vbsupport.ru/showpost.php?p=1079165&postcount=80) {1}
Dropdown Forum posting (https://vborg.vbsupport.ru/showpost.php?p=1104833&postcount=155) {2} Reset forums posting time in admincp...
Dropdown Forum posting (https://vborg.vbsupport.ru/showpost.php?p=1181873&postcount=282) {3}
*****************************************
I installed the triple dropdown product, but what do I do with it?
*****************************************
U wanted to use triple dropdowns for testing? Test in new forms...
*****************************************
Stryker412
07-25-2008, 01:38 PM
*****************************************
U wanted to use triple dropdowns for testing? Test in new forms...
*****************************************
I'm not sure how to implement it into the form, is there a readme?
Also, is there a way to limit users (registered only) from using the form more than once in a set period of time?
RedGTiVR6
07-25-2008, 02:16 PM
[quote]Dropdown Forum posting (https://vborg.vbsupport.ru/showpost.php?p=1079165&postcount=80) {1}
It seems to be on the right track, but he never got it to work.
:(
Dropdown Forum posting (https://vborg.vbsupport.ru/showpost.php?p=1104833&postcount=155) {2} Reset forums posting time in admincp...
Hrmm - close, but no cigar unfortunately. This guy is only adding code (unsuccessfully) to have the form post in two places upon submitting.
Dropdown Forum posting (https://vborg.vbsupport.ru/showpost.php?p=1181873&postcount=282) {3}
Unfortunately, this is essentially the same code that you provided just for a thread instead of a forum. Since I'm wanting to have a new thread created in a specific forum based on the drop-down that's selected, this doesn't really apply to my situation. Thanks though!
Your code seems to be there, it just doesn't allow attachments when it's in there for some strange reason. No clue why though? Maybe I need to take this to the developers forum to get another set of eyes on it?
karnevil
07-27-2008, 01:48 PM
I seem to have done something stupid
anytime you hit POST TOPIC (new thread) on my forum now it brings up my form answers instead of opening the post a new thread page.
Amethyst ______________________________________ weekly ? : ____ monthly ? : ____ Who gets? : Comments : ______________________________________ ____ ______________________________________ ____ ______________________________________ ____ ______________________________________ ____ ______________________________________ ____ ______________________________________ ____ ____ ______________________________________ ____ ______________________________________ ____ ______________________________________ ______________________________________ ______________________________________ ______________________________________ ______________________________________ ______________________________________
ie the answers without format or any completion
The path is correct ''.............. forums/newthread.php?do=newthread&f=168 ''
I think when I was editing the formanswers template I accidentaly changed the title of formanswers to newthread, (I meant to search templates but was distracted grr), I changed it back straight away - but thats where things went wrong and I really cant work how to get back.
I now seem to have two formanswers template, one is the original and one is the one i have been working on.
Any ideas ? please please please
karnevil
07-27-2008, 02:03 PM
okay sorry brain dead moment
I went and made a new newthread template - seems I have overwritten it with formanswers, so all fixed.....sorry for being a pleb.
btw - form is really great just a bit tedious to edit.
Stryker412
07-28-2008, 11:39 AM
Can anyone help me with these issues so I can get this form ready, it's the only issues holding me back right now.
1) Need help with how to implement the Ajax triple dropdown menu on one line.
2) How to make the questions bold when they are posted in a thread.
3) How to put the user's forum ID or name in the thread title when posted.
RedGTiVR6
07-28-2008, 12:00 PM
Can anyone help me with these issues so I can get this form ready, it's the only issues holding me back right now.
[quote]1) Need help with how to implement the Ajax triple dropdown menu on one line.
Post in that thread then, this thread has nothing to do with the AJAX add on.
2) How to make the questions bold when they are posted in a thread.
That's beenc overed before in the thread here.
Go to your answer template and add in bb code where you want it, just like in a regular post on your forums. Just be sure to leave a space between the BB code and the code in your answer template.
3) How to put the user's forum ID or name in the thread title when posted.
Also been covered numerous times in this thread. You might want to use the search in this thread feature in the future when you have questions about how to do something with a mod. It saves the developers and others from having to repeat themselves numerous times and it means that those with questions that haven't been answered actually might have their questions answered and seen....
Stryker412
07-28-2008, 12:20 PM
Post in that thread then, this thread has nothing to do with the AJAX add on.
Actually I'm sure lots of people would like to ask user's for birthday so I'd say it's very relevant.
RedGTiVR6
07-28-2008, 12:34 PM
You're asking for help with the AJAX mod, this isn't the AJAX thread.
They are two completely different developers.
Abe1 wrote the form hack, deepdpg009 wrote the ADD-ON for the form hack: https://vborg.vbsupport.ru/showthread.php?t=182144
AJAX functionality is NOT a normal part of this modification, it's an add on which was written by a different developer. If you have questions about AJAX functionality, you should ask it in the AJAX thread, NOT the general modification thread.
Stryker412
07-28-2008, 12:39 PM
For the username in title I tried:
$posttitle = "$bbuserinfo[username]";
However I got nothing but errors, what is the proper code for that line?
RedGTiVR6
07-28-2008, 12:49 PM
can you post the errors?
Stryker412
07-28-2008, 12:51 PM
I don't get an error but the thread title looks like this if I have the code as:
$posttitle = "$formtitle - $bbuserinfo[username]";
Thread shows as Community Member Application -
No user name shows.
PHILLYFAN
07-28-2008, 02:13 PM
ok I uploaded the XML file, how can I view the application I can't seem to find it
PHILLYFAN
07-28-2008, 02:15 PM
***EDIT never mind I figured it out!***
Installed!
vbboarder
07-30-2008, 02:18 AM
I just installed this awesome mod on VB 3.7.2 - it works great! :cool:
However, there is a small bug that appears if your testing it with the default/ original form. If you set $answerall = "1"; then the mod will keep on saying that you need to answer all questions even though you did and double checked it. The problem is in the condition for $answerall. Find:
if ($answerall == "1") {
Replace the if condition inside that if statement with (note that I also added the condition to check for $dropdownanswer1):
if ($normalanswer1 == '' OR ($radioanswer1 == '' AND $radioanswer2 == '' AND $radioanswer3 == '') OR $answer1 == '' OR $answer2 == '' OR $answer3 == '' OR $dropdownanswer1 == '' OR !($checkboxchoice1_1 OR $checkboxchoice1_2 OR $checkboxchoice1_3) OR $longanswer1 == '')
Now your form submissions should work when $answerall is enabled. :D
Note that if you add more variables, then you need to check for them inside the above if condition. Also, if you want some variables to be optional, then you can omit them from that statement.
RedGTiVR6
07-30-2008, 11:59 AM
hehe - that's probably the best explanation I've seen of that in this thread.
bravo.
now if only we could add stuff like this to the first post so that other see it too...
Stryker412
07-30-2008, 12:08 PM
Is it possible to have three different questions on the same line? I was thinking of doing that instead of using the ajax plugin.
lazytown
07-31-2008, 01:17 AM
Anyone else using this as a "contact us" form? I use it to send comments/questions to a moderator forum. However, with guests being able to use the form (but not post in threads), it's causing massive spam.
Is there any way to modify this to catch spam or have image/human verification?
If not, is there another mod that can send 'contact us' requests (even the built in one) to a forum instead of email?
Thanks!
-vissa
vithorius
07-31-2008, 03:08 PM
hehe - that's probably the best explanation I've seen of that in this thread.
bravo.
now if only we could add stuff like this to the first post so that other see it too...
:up: I fully agree! This thread has now 1166 answers and there is a lot of great (an not so great) stuff here to read and learn... :eek:
1166 posts...? :erm: That is heavy...! :(
PGAmerica
07-31-2008, 04:34 PM
ok I uploaded the XML file, how can I view the application I can't seem to find it
I am having the same problem. I installed this into my 3.7.2 and cannot find the menu options to configure it or add new forms.
Where is it?
Karri
08-01-2008, 02:03 PM
There are no menu options, all of it is done with in the plugin. Edit the main plug-in - the instructions are all inside the hook itself, in the top half. In the plugin it says
// To add more then one form, copy this whole text, and create 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.
Just for who ever cares, I'm currently building a form creator that will allow you to easily create as many forms on your site as you want while just using a nice GUI (graphical user interface). Unfortunately, I will have to charge for it so it wont be released on this site, but it basically allows you to create a perfect form for your site in just minutes. You dont need to know or play around with any HTML or PHP.
Now, I should have a beta ready for release in a few days for who ever is interested. You can drop me a PM with your email and I'll contact you with more details. (It may take a few days for me to respond.)
RedGTiVR6
08-04-2008, 12:39 PM
great!
I can absolutely understand having to charge for something like this. Just the support time along on this thread would have been a full time job for someone.
Can't wait to see the final product!
vbboarder
08-06-2008, 06:31 AM
VB memory optimization for Form Hack: As you noticed, the plugin for the form hack is large. Since VB stores plugin code in memory, this module uses relatively a lot of memory. Also every time you need to edit the plugin, VB parses the code for color coding which takes 5+ secs before you can edit. To save memory and enable faster editing of the form hack plugin: 1. create a new file in WordPad, 2. cut and paste ALL the form hack code into that new file, 3. add a <?php tag at the very beginning and a ?> tag at the very end of the file., 4. save the file with a php extension, (ie: form_hack.php). 5. insert this code into the form hack plugin (the period indicates the path is relative to the VB forum directory): include('./modules/form_hack.php');
That's it. VB can now dynamically load the module only when needed, and you don't need to wait for VB to parse the code whenever editing the form hack code.
ccplim
08-06-2008, 08:43 AM
VB memory optimization for Form Hack: As you noticed, the plugin for the form hack is large. Since VB stores plugin code in memory, this module uses relatively a lot of memory. Also every time you need to edit the plugin, VB parses the code for color coding which takes 5+ secs before you can edit. To save memory and enable faster editing of the form hack plugin: 1. create a new file in WordPad, 2. cut and paste ALL the form hack code into that new file, 3. add a <?php tag at the very beginning and a ?> tag at the very end of the file., 4. save the file with a php extension, (ie: form_hack.php). 5. insert this code into the form hack plugin (the period indicates the path is relative to the VB forum directory):
That's it. VB can now dynamically load the module only when needed, and you don't need to wait for VB to parse the code whenever editing the form hack code.
Great tips! Thanks for sharing that :up: This would be useful for me since I got pretty much customizations.
Stryker412
08-06-2008, 11:58 AM
I don't get an error but the thread title looks like this if I have the code as:
$posttitle = "$formtitle - $bbuserinfo[username]";
Thread shows as Community Member Application -
No user name shows.
Has anyone figured this out yet?
Stryker412
08-09-2008, 12:54 PM
Anyone, anyone? Bueller?
swisscotton
08-09-2008, 07:08 PM
I have just installed this but I can't set it up. I am a designer, not a programmer and there are no instructions just a few lines. I have been reading what it says in the "hook" (took me long enough to find out what was meant by hook) done everything it says in there and I get the message "Invalid Forum specified. If you followed a valid link, please notify the administrator" when I try and preview it. I mean how is this done? Do I set up a forum? What?
I need a form and this is the only one I have seen but there are not enough instructions, it kind of assumes you already know what youre doing. Can anyone point me in the right direction?
Emma
blind-eddie
08-10-2008, 02:22 AM
I have just installed this but I can't set it up. I am a designer, not a programmer and there are no instructions just a few lines. I have been reading what it says in the "hook" (took me long enough to find out what was meant by hook) done everything it says in there and I get the message "Invalid Forum specified. If you followed a valid link, please notify the administrator" when I try and preview it. I mean how is this done? Do I set up a forum? What?
I need a form and this is the only one I have seen but there are not enough instructions, it kind of assumes you already know what you?re doing. Can anyone point me in the right direction?
Emma
To edit your form, you need to open the form hack plugin, Scroll down through it, you will see
everything you are looking for.
BlueBulletRL
08-10-2008, 02:57 PM
In our forum our for sale and wanted to buy sections require you to have a minimum post count. How can I get it so it requires that minimum post count??? I am thinking that once they hit the new thread button it tells them no they can't.
Stryker412
08-11-2008, 02:45 PM
I hate to keep bumping this but has anyone figured out how to correctly put the user's name in the title of the thread created? As I stated before I put
$posttitle = "$formtitle - $bbuserinfo[username]";
However, no name ever shows for the title.
blind-eddie
08-11-2008, 02:57 PM
It displays the applicants name automatically in the Thread. Show a SS of what you see whn Thread is made.
Stryker412
08-11-2008, 03:44 PM
It displays the applicants name automatically in the Thread. Show a SS of what you see whn Thread is made.
In the thread yes, but I'm trying to get it to show in the thread title so we can keep them separate.
blind-eddie
08-11-2008, 04:40 PM
It does show Username below thread title.
Stryker412
08-11-2008, 04:46 PM
Yes it shows username as the author but I wanted it in the title itself as well.
BlueBulletRL
08-11-2008, 06:47 PM
Hey Stryker I believe you are looking for a different variable. Try $post[user] instead. I think I ran into that using something else. Let me know how that works....
now anyone able to help me with my issue?
Stryker412
08-11-2008, 07:22 PM
Hey Stryker I believe you are looking for a different variable. Try $post[user] instead. I think I ran into that using something else. Let me know how that works....
now anyone able to help me with my issue?
Unfortunately no it didn't. However, I ran into something else. Is there a way to restrict a user from only filling out the application once?
BlueBulletRL
08-11-2008, 07:47 PM
Sorry about that I was pretty sure that was it. i'm actually at work so I can't really figure out what is going on or what I did until I get home in a little while. I believe though if you look at ur postbit template you might be able to see what field they use.
Stryker412
08-12-2008, 12:28 PM
Sorry about that I was pretty sure that was it. i'm actually at work so I can't really figure out what is going on or what I did until I get home in a little while. I believe though if you look at ur postbit template you might be able to see what field they use.
Were you able to look at your code?
CEOPcGamingGuru
08-13-2008, 10:58 PM
Im sorry if this has been explained before, but i looked through all 12 pages and didnt see it. i want to change the color of the "output" text that is posted after the submit button is hit. i have all dropdown choices and need to know what code to add to the choices to make them output a certain color, and another simple question. When one of those dropdown choices are selected I would like it to output certain text...e.g. I have 3 choices on a part for a car to add, they are from 3 different stores...each store has its own color if picked and each has its own price, but those are only revlevant to the "output" forum. hope this isnt 2 confusing. any ideas or help?
ccplim
08-14-2008, 03:40 AM
Im sorry if this has been explained before, but i looked through all 12 pages and didnt see it. i want to change the color of the "output" text that is posted after the submit button is hit. i have all dropdown choices and need to know what code to add to the choices to make them output a certain color, and another simple question. When one of those dropdown choices are selected I would like it to output certain text...e.g. I have 3 choices on a part for a car to add, they are from 3 different stores...each store has its own color if picked and each has its own price, but those are only revlevant to the "output" forum. hope this isnt 2 confusing. any ideas or help?
To change the output text color, you just need to modify your formanswer template and enclose the item that you want with a different color with the color BB code.
As for your second question, you might need to use the Ajax add-on from bro Deepdog009 (https://vborg.vbsupport.ru/showthread.php?t=182144). (if I understand your requirements correctly)
d-wiz
08-15-2008, 08:44 AM
How do you make more than one of a type of question say I wanted two "$normalquestion1 ="?
BlueBulletRL
08-15-2008, 06:42 PM
just name it normalquestion2 and so forth so anyone able to help me out with the post count???
d-wiz
08-16-2008, 03:14 AM
just name it normalquestion2 and so forth so anyone able to help me out with the post count???
I tried that but nothing shows up?
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'normalanswer2' => TYPE_STR,
'normalanswer3' => TYPE_STR,
// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$normalanswer2 = $vbulletin->GPC['normalanswer2'];
$normalanswer3 = $vbulletin->GPC['normalanswer3'];
$normalquestion2 = "N?vn de byer du har rejst mest til i forbindelse med arbejde?";
normalquestion2 doesn't show up?
ccplim
08-16-2008, 05:47 AM
Did you add normalquestion2 into your main template too? What you shown here are just the declaration in the plugin.
I tried that but nothing shows up?
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'normalanswer2' => TYPE_STR,
'normalanswer3' => TYPE_STR,
// Part 2
$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$normalanswer2 = $vbulletin->GPC['normalanswer2'];
$normalanswer3 = $vbulletin->GPC['normalanswer3'];
$normalquestion2 = "N?vn de byer du har rejst mest til i forbindelse med arbejde?";
normalquestion2 doesn't show up?
d-wiz
08-16-2008, 07:44 AM
No how do you do that?
ccplim
08-16-2008, 03:45 PM
No how do you do that?
Take a look at the templates in admincp -> styles and template. You should be able to find 2 template by the name of "formhack" and "formhackanswers". Use those as an example and create your own version.
CEOPcGamingGuru
08-16-2008, 08:02 PM
To change the output text color, you just need to modify your formanswer template and enclose the item that you want with a different color with the color BB code.
Can you give me an example of the code ... e.g . dropdown question 1 has 4 selections each having its own color...i understand what you mean btw just do not know how to do it, an example code i could use as a "template" would be great ty in advance.
I do know how to change the color of the non-dropdown questions just havent been able to figure out the coding to change the dropdown choices e.g dropdownchoice1a ...red
dropdownchoice1b...blue etc
ccplim
08-17-2008, 12:26 AM
Can you give me an example of the code ... e.g . dropdown question 1 has 4 selections each having its own color...i understand what you mean btw just do not know how to do it, an example code i could use as a "template" would be great ty in advance.
I do know how to change the color of the non-dropdown questions just havent been able to figure out the coding to change the dropdown choices e.g dropdownchoice1a ...red
dropdownchoice1b...blue etc
I am sorry that I will likely not able to help you on this as I am not a programming guy myself. Maybe someone more experience will be able to provide some help. :o
Has anyone figured this out yet?
$posttitle = "$formtitle - {$vbulletin->userinfo[username]}";
BlueBulletRL
08-18-2008, 03:03 AM
Abe can you help me with what I am working on
Stryker412
08-18-2008, 11:33 AM
$posttitle = "$formtitle - {$vbulletin->userinfo[username]}";
That worked great, thank you.
skulldred
08-19-2008, 06:20 PM
Hi all
i have a question about the creation of a new thread.
PHP 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 = "1";
When i set $formforumid = "1"; to //$formforumid = "1"; and open the link
how descript with do=form&f=1 nothing happens after saving. I receive the message box that all is ok but when i have a look no new thread. Have you an idea why this happen? I see in the info text that i have to set the variable but also when i open the form with the link?
Thanks for your help
Stryker412
08-19-2008, 07:06 PM
Hi all
i have a question about the creation of a new thread.
PHP 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 = "1";
When i set $formforumid = "1"; to //$formforumid = "1"; and open the link
how descript with do=form&f=1 nothing happens after saving. I receive the message box that all is ok but when i have a look no new thread. Have you an idea why this happen? I see in the info text that i have to set the variable but also when i open the form with the link?
Thanks for your help
If you set it to //$formforumid = "1" you are cancelling out that line, so effectively it's not posting it at all. You have to go into your admincp and look at your forum manager from there determine what the forumid is and set that line to the corresponding # and it will post within that forum.
skulldred
08-19-2008, 07:21 PM
ok that's clear but whats with this: You can have a drop down menu or in the link like do=form&f=1. I think that mean i can give the forumID information over the link? On this way i have to create only one form and not for each Forum one...
Stryker412
08-19-2008, 07:32 PM
Not really sure what that is, maybe the others can chime in.
farplane dragon
08-20-2008, 02:06 AM
alright, I'm getting a bit frustrated here. It seems that no matter what I do, I just can't get this to work, I'm getting two errors.
Parse error: syntax error, unexpected T_STRING in /home/.earthworms/archaicstudios/archaicstudios.net/testvb/testforums/newthread.php(74) : eval()'d code on line 190
and
Invalid Forum specified. If you followed a valid link, please notify the administrator
If I didn't have so much patience, I'd have given up on this so called "easy" hack. Yeah, easy if you don't change anything but the text, but after that, it just seems to complicate itself. Can someone give me a hand with this?
ccplim
08-20-2008, 03:52 AM
No offence on this but before we start pouring out the solutions, you might want to had another good look at the codes in your plugin again.
I had a look at it and discovered a few missing items like ", ; and :. :)
alright, I'm getting a bit frustrated here. It seems that no matter what I do, I just can't get this to work, I'm getting two errors.
Parse error: syntax error, unexpected T_STRING in /home/.earthworms/archaicstudios/archaicstudios.net/testvb/testforums/newthread.php(74) : eval()'d code on line 190
and
Invalid Forum specified. If you followed a valid link, please notify the administrator
If I didn't have so much patience, I'd have given up on this so called "easy" hack. Yeah, easy if you don't change anything but the text, but after that, it just seems to complicate itself. Can someone give me a hand with this?
skulldred
08-20-2008, 09:42 AM
Nobody knows the way over do=form&f=1? It makes a lot easier with this form... Or is there a way to to take the address in to a variable? Or is there alredy a variable? So i can take the informations from the address...
[H]Dazz
08-20-2008, 11:01 AM
Does anyone know if this works with 3.7.x?
farplane dragon
08-20-2008, 11:02 AM
No offence on this but before we start pouring out the solutions, you might want to had another good look at the codes in your plugin again.
I had a look at it and discovered a few missing items like ", ; and :. :)
That's because I'm not a coder, it's not that I haven't looked over my code, it's that I have no idea where stuff is missing. I've done a little bit of code editing in the past, but nothing like I've had to do with this.
edit: I went through the 3 forms again, I fixed some of the variables on the answer form, and found some missing ; on the hook, but I have no idea if anything is wrong with the template or what else is missing. Just to note, I haven't edited the imported xml file if that makes a difference.
BlueBulletRL
08-20-2008, 12:21 PM
Hey I'm trying to get this to work with cyb advanced permissions based on post count and I'm having trouble. Anyone have any idea why? I've tried changing the execution order and it did not work. Still lets me post.
ccplim
08-20-2008, 01:22 PM
That's because I'm not a coder, it's not that I haven't looked over my code, it's that I have no idea where stuff is missing. I've done a little bit of code editing in the past, but nothing like I've had to do with this.
edit: I went through the 3 forms again, I fixed some of the variables on the answer form, and found some missing ; on the hook, but I have no idea if anything is wrong with the template or what else is missing. Just to note, I haven't edited the imported xml file if that makes a difference.
Frankly speaking, when I posted the previous reply, I haven't even open up your form and formanswers template and look at their contents yet.
I am also not a coder myself but it is through this mod that I started to have more ideas on php, html, and javascripts.
Anyway, I have re-attached your plugin that I have edited. I have not tested it on my test site yet but I believed it should work (unless I happened to miss out any spot due to my tired eyes).
Good luck.
farplane dragon
08-20-2008, 03:20 PM
Well, the good new is that it's working, however, I'm having 2 main problems. Setting to where they have to answer all questions causes it to say, "X, you have to answer all questions" even if you have.
Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?
Also, is there a way to make it so the questions in that topic appear bold, so they stand out from the answers?
Stryker412
08-20-2008, 03:50 PM
Well, the good new is that it's working, however, I'm having 2 main problems. Setting to where they have to answer all questions causes it to say, "X, you have to answer all questions" even if you have.
Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?
Also, is there a way to make it so the questions in that topic appear bold, so they stand out from the answers?
I had the same problem when I first started it too. You have to go lower down in the form area and edit this section.
if ($answerall == "1")
{
if ($answer1 == '' OR $answer2 == '' OR $answer4 == '' OR $dropdownanswer1 == '' OR dropdownanswer3 == '' OR $dropdownanswer4 == '' OR $longanswer1 == '')
{
$errormessage = "$bbuserinfo[username], you need to answer every question!";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
exit();
Make sure that all your questions are in there or ones you're not using are removed.
ccplim
08-20-2008, 03:52 PM
Well, the good new is that it's working, however, I'm having 2 main problems. Setting to where they have to answer all questions causes it to say, "X, you have to answer all questions" even if you have.
Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?
Also, is there a way to make it so the questions in that topic appear bold, so they stand out from the answers?
I have not tried on the answer all questions portion but this (https://vborg.vbsupport.ru/showpost.php?p=1587125&postcount=1163) post might provide some clues for you.
I don't really understand what do you mean in your following paragraph.
Also, I have it set to create a new thread, but the answers are partly out of order compared to the form, any idea to how to fix that?
As for your last question, are you saying that you want the questions to be appeared in bold in your submitted form? If that is the case, just go to your formanswers template and enclose those questions that you want to appear in bold using the standard bb codes.
farplane dragon
08-20-2008, 04:07 PM
This is my current hook. I don't know if I'm defining them wrong at the bottom or what.
Stryker412
08-20-2008, 04:12 PM
This is my current hook. I don't know if I'm defining them wrong at the bottom or what.
You have a typo.
if ($answerall == "1")
{
if ($normalanswer1 == '' OR $normalanswer2 == '' OR $normalanswer3 == '' OR $normalanswer4 == '' OR $normalanswer5 == '' OR $normalanswer6 == '' OR $normalanswer7 == '' OR $normalanswer8 == '' OR $normalanswer9 =='' OR $checkboxcanswer1_1 =='' OR $longanswer2 =='' OR $dropdownanswer1 =='' OR $dropdownanswers2 =='' OR $dropdownanswers3 =='' OR $dropdownanswers4 =='' OR $dropdownanswers5 =='')
{
farplane dragon
08-20-2008, 04:13 PM
I have not tried on the answer all questions portion but this (https://vborg.vbsupport.ru/showpost.php?p=1587125&postcount=1163) post might provide some clues for you.
I don't really understand what do you mean in your following paragraph.
As for your last question, are you saying that you want the questions to be appeared in bold in your submitted form? If that is the case, just go to your formanswers template and enclose those questions that you want to appear in bold using the standard bb codes.
What I mean, is if you look at the 2 pictures I uploaded, if you look at the post, the questions/answers are listed in a different order then on the form. For example, on the form it asks for position and then experience, but in the post it goes, experience then position, I think the next 2 were out of order too.
farplane dragon
08-20-2008, 04:18 PM
You have a typo.
if ($answerall == "1")
{
if ($normalanswer1 == '' OR $normalanswer2 == '' OR $normalanswer3 == '' OR $normalanswer4 == '' OR $normalanswer5 == '' OR $normalanswer6 == '' OR $normalanswer7 == '' OR $normalanswer8 == '' OR $normalanswer9 =='' OR $checkboxcanswer1_1 =='' OR $longanswer2 =='' OR $dropdownanswer1 =='' OR $dropdownanswers2 =='' OR $dropdownanswers3 =='' OR $dropdownanswers4 =='' OR $dropdownanswers5 =='')
{
Even after fixing that, the problem still persists
I have not tried on the answer all questions portion but this (https://vborg.vbsupport.ru/showpost.php?p=1587125&postcount=1163) post might provide some clues for you.
What's the difference between that and what's already there? It seems the same to me
Maybe the dropdown box is the problem?
EDIT: As I supected, it was adding the drop down box to that line that caused the problem. So know all that's left is the order problem.
EDIT2: Actually, now it just gets stuck on the thank you screen.
ccplim
08-20-2008, 04:22 PM
What I mean, is if you look at the 2 pictures I uploaded, if you look at the post, the questions/answers are listed in a different order then on the form. For example, on the form it asks for position and then experience, but in the post it goes, experience then position, I think the next 2 were out of order too.
I see..... you just need to rearrange the items in the formanswers template to the correct position that you want.
ccplim
08-20-2008, 04:29 PM
What's the difference between that and what's already there? It seems the same to me
Maybe the dropdown box is the problem?
I will need to figure that out as I have not done that on my side yet. I'll try to take a look at it tomorrow morning (it's now 1.30am over here and I need to get some sleep :p)
farplane dragon
08-20-2008, 04:35 PM
I will need to figure that out as I have not done that on my side yet. I'll try to take a look at it tomorrow morning (it's now 1.30am over here and I need to get some sleep :p)
Yeah, yeah, cool. Thanks for the help so far. I actually got the answer all problem fixed, it's just the "getting stuck on the thank you screen" I have to figure out.
Stryker412
08-20-2008, 07:13 PM
Yeah, yeah, cool. Thanks for the help so far. I actually got the answer all problem fixed, it's just the "getting stuck on the thank you screen" I have to figure out.
What do you mean by this?
Daggerzz
08-20-2008, 08:13 PM
I am sure that this question has been asked. With over 80 pages, it is probably in there somewhere, but I have not found an exact match to my problem. So maybe someone can help me.
I want to call my copy of the hack in this way:
/newthread.php?dp=myform&p=### where ### is the post I want to reply to.
I can generate this link without problem. My form begins executing. I can echo to the screen for verification, the "p" variable, by accessing $_REQUEST['p'].
I want to set the variable $formreplythreadid to this "p" variable. I have tried various variations:
$formreplythreadid = $_REQUEST['p'];
or this
$x = $_REQUEST['p'];
$formreplythreadid = $x;
I also attempted to add a variable to the form like other user input variables, using
something like this:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'var1' => TYPE_STR,
'wheretogo' => TYPE_STR,
));
// Part 2
$var1= $vbulletin->GPC['var1'];
$wheretogo= $vbulletin->GPC['wheretogo'];
With the value defined in this way, I tried to assign to it in two different ways. First I tried to directly assign to it:
$wheretogo = $_REQUEST['p'];
and lastly I tried to allow the user to input the value via the form input screen. This works so I know a variable will work. But I cant figure out how to have the program assign the variable
In all cases, I could echo the value to the screen with success; however, in all cases when I tried to assign my variables value to $formreplythreadid, the value seems to be empty.
How can I set the value $formreplythreadid to a value that is generated at runtime?
farplane dragon
08-20-2008, 09:14 PM
What do you mean by this?
Normally, I'd see the thank you screen then get redirected back to forumhome I believe. Now, I see the thank you screen and that's it, it doesn't redirect to anywhere.
skulldred
08-20-2008, 09:54 PM
Hi Daggerzz i have the same problem but with threads... I guess that is the solution... :
//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "1";
if ($dropdownanswer1 == 'Mage'){
$formreplythreadid = "43";}
if ($dropdownanswer1 == 'Warlock'){
$formreplythreadid = "34";}
if ($dropdownanswer1 == 'Warrior'){
$formreplythreadid = "41";}
if ($dropdownanswer1 == 'Rogue'){
$formreplythreadid = "42";}
if ($dropdownanswer1 == 'Priest'){
$formreplythreadid = "40";}
if ($dropdownanswer1 == 'Hunter'){
$formreplythreadid = "46";}
if ($dropdownanswer1 == 'Paladin'){
$formreplythreadid = "45";}
if ($dropdownanswer1 == 'Shaman'){
$formreplythreadid = "44";}
//EXISTING THREAD ID FOR FORM TO REPLY IN
Can you explain me where you have added this code please? $x = $_REQUEST['p'];
Daggerzz
08-20-2008, 11:50 PM
;
I put this in the form hack right after I defined the variables. i know this is teh right value because i can make it display the number. The problem is if iIuse that as a variable for $formreplythreadid it gives me an error. I need to be able to post this to any number of threads so a drop down box would not work.
Stryker412
08-22-2008, 09:05 PM
Normally, I'd see the thank you screen then get redirected back to forumhome I believe. Now, I see the thank you screen and that's it, it doesn't redirect to anywhere.
That's how it is on mine too, it never redirected. I would like to know if you find out how.
Also, I'd like to beg/plead one more last time if someone can help me set up a birthday question so the three drop down menus are side by side on the same line.
BlueBulletRL
08-24-2008, 03:43 PM
Also I will plead again someone please help me!
cragtay
08-25-2008, 07:20 AM
I make my question in a quote because after posted this, I saw Daggerzz's post. The problem is similar. However, I typed my question so I don't want to delete it :">
For example, I have 2 categories: A and B, and in each category, there are 3 forums.
The forum ids are 2, 4, 6 (3 forums in category A) and 5, 7, 9 (3 forums in category B).
I want to design 2 forms (newA and newB) for each category. 3 forums in each category will use a common form.
http://mydomain.com/newthread.php?do=newA&f=2
http://mydomain.com/newthread.php?do=newA&f=4
http://mydomain.com/newthread.php?do=newA&f=6
http://mydomain.com/newthread.php?do=newB&f=5
http://mydomain.com/newthread.php?do=newB&f=7
http://mydomain.com/newthread.php?do=newB&f=9
How can I do that?
I think that I should get the forumid from the URL to put into the variable $formforumid in the form template (newA or newB). Is it possible?
If I don't make that number a variable, then I have to make 3 separate forms, whose the contents are same, but names are different, for each category. In the example, there are only 6 forums. However, in practically, there may have more forums that 6. Make seperate form for each forum is really not effective way.
Could someone help me?
Stryker412
08-25-2008, 12:55 PM
Thanks to Abe I was able to get the triple drop down question working.
Vackrick
08-26-2008, 02:25 AM
Parse error: syntax error, unexpected T_VARIABLE in /home/shawnyue/public_html/forum/newthread.php(74) : eval()'d code on line 191
Vackrick
08-26-2008, 03:35 AM
How to add this into the templete???
$dropdownquestion1 = "Suspension Reason";
// The following choices must NOT have quotation marks
$dropdownchoice1a = "Inactivity";
$dropdownchoice1b = "No Ads";
$dropdownchoice1c = "Wrong Ads ";
$dropdownchoice1d = "Incorrect Placement Of Ads";
$dropdownchoice1e = "No Index Up Within 1 Week Or More";
$dropdownchoice1f = "Another Reason That Is Unlisted";
$dropdownchoice1g = "Unknown";
mustang_lex
08-26-2008, 01:12 PM
<font color="Red">Threads automatically generated state that they are "Moderated" SOLVED!
Form missing "Manage Attachments" SOLVED!</font>
For those who have had this happen to them. I found the solutions. Its quite simple but easily overlooked. Please note that in my situation, the form was being posted to an admin forum that is not accessible to any registered users, just admins.
1) Login into Admin CP
2) Under "Forum and Moderators" click Forum Permissions
3) Go to the forum that the form gets submitted to.
4) Click "Edit" on the usergroup that uses the form (you may need to do this for more then just one usergroup)
5) Because in my situation, everything was set to NO. So I selected YES to "Can Post Threads", "Follow Forum Moderation Rules" and "Can Upload Attachments".
6) Save and volla. Well it worked for me.
Stryker412
08-26-2008, 01:55 PM
I didn't test my triple drop down question in IE. It shows in Firefox fine, but in IE the one drop down box does not even appear.
Edit: fixed
cragtay
08-27-2008, 08:34 AM
In the default form template of Form Hack 4.1, there is only one place where user can use editor menu bar, emotions, etc., i.e. $messagearea
Can I create another place where user can use editor menu bar, emotions, etc. in a form? I may have only one VB TEXT AREA INPUT, but is there any way to have one more field where user can use bbcode, emoticons, etc.?
viper357
08-27-2008, 01:01 PM
I have 2 forms up and running but when I click submit on my newly created form it is not creating any threads, I have tried various forum numbers but nothing?
skulldred
08-27-2008, 10:32 PM
My solution:
Add: <input type="hidden" value="$foid" name="fid" />
after: <input type="hidden" value="$formname" name="do" />
then set the variable:
'foid' => TYPE_STR $foid = $_REQUEST['fid'];
and now add the following:
//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.
if ($foid == '5'){
$formforumid = "5";}
if ($foid == '6'){
$formforumid = "6";}
open the form with:
newthread.php?do=form&fid=5 or 6 or what you want
thats it
lazytown
08-28-2008, 12:12 AM
For those of you trying to use this as a "contact us" form but are frustrated with the spam, I found a solution..
Use this mod https://vborg.vbsupport.ru/showthread.php?t=186926 instead (only useful for a single contact us form to be posted as a thread).. Uses the spam prevention features of vbulletin.
-vissa
BlueBulletRL
09-02-2008, 02:19 AM
pretty please someone help me
Castro82
09-03-2008, 02:21 PM
after the update to 3.7.3 there is an securitytokken error using this hack.?
DieselMinded
09-05-2008, 12:59 AM
WOW will implement when its updated next
zglows
09-05-2008, 02:13 AM
after the update to 3.7.3 there is an securitytokken error using this hack.?
is this true?
brianFL1
09-05-2008, 07:38 AM
Sorry if this has been asked before, but is it possible to redirect to a specified page with our own URL instead of a thankyou message. Thankyou
RedGTiVR6
09-06-2008, 11:57 AM
is this true?
Try searching vbulletin.org for "Security Token", you'll find that it's not related to this specific hack at all.
I'm guessing you went from 3.6.8 to 3.7.3?
Just search for the term and you will find a solution.
RedGTiVR6
09-06-2008, 11:58 AM
Has anyone been able to find a way to warn the user when the title is too long for the 'thread'?
I'm finding that our users are putting a very long title in.
I have a field set: Please give a brief description of the problem here
Well, they seem to think that brief means long....
So they go to submit a bug report, they are told by vBulletin that it's submitted...yet nothing ever shows up because the title is too long.
jdunsworth
09-09-2008, 10:55 AM
Great hack!
For some reason when I import this product to a new set of forums running vBulletin 3.7.3 and try the newthread.php?do=<name> it gives me a parse error:
Parse error: syntax error, unexpected T_STRING in /<taken out>/forums/newthread.php(74) : eval()'d code on line 100
I tried it in forums running 3.7.0 and it doesn't work either, whereas the original forum I made these for was running 3.7.0.. It honestly makes no sense. Any help is appreciated!
illithid
09-09-2008, 12:44 PM
Check around line 100 for a missing semicolon( ; ), double quote( " ), single quote( ' ) or bracket( { ).
BlueBulletRL
09-10-2008, 10:18 PM
Has anyone been able to find a way to warn the user when the title is too long for the 'thread'?
I'm finding that our users are putting a very long title in.
I have a field set: Please give a brief description of the problem here
Well, they seem to think that brief means long....
So they go to submit a bug report, they are told by vBulletin that it's submitted...yet nothing ever shows up because the title is too long.
The way I had took care of this was go to your input textbox for the thread title and add maxlength="75". I believe the cut off is 80 but I just put 75 to be safe. This will work its funny to cause I just was asked to do this.
Has anyone gotten this to work where you must have a certain amount of post before you can do it.
RedGTiVR6
09-10-2008, 10:22 PM
The way I had took care of this was go to your input textbox for the thread title and add maxlength="75". I believe the cut off is 80 but I just put 75 to be safe. This will work its funny to cause I just was asked to do this.
Has anyone gotten this to work where you must have a certain amount of post before you can do it.
can you show me exactly per the code? I'm not sure I understand.
Input text box....is that in teh product its self or in the form template?
As for your second question, can you put those users in another group and allow only that group (and others) to use the form?
On my forums I have used the active members and registered members groups.
Active for those I want to be allowed to use the features of the site.
viper357
09-12-2008, 01:57 PM
How do I add a url into the form? It is just showing up as plain text and not as a link. Pic attached.
86798
ForumsMods
09-12-2008, 04:14 PM
How do I add a url into the form? It is just showing up as plain text and not as a link. Pic attached.
86798
Use html.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.