View Full Version : Forms Hack
Forms Hack 3.5
Features:
Ever wanted an online form that a user can fill out, which when submitted gets:
Posted into a new thread in a forum of your choice
Create a new poll in the new thread with options of your choice
Posted as a reply in an existing thread of your choice
PMed to you or someone else
Emailed to an email address you specify
Choose to redirect to the post, thread or forum, or a custom thank you message
Choose to redirect to edit post to upload attachments
See a preview before they submit
Or any combination or all of the above?
Well, this is the hack for you!
You can use this for:
Moderator Applications
Quiz Submit Form which gets PMed to a moderator
Contact Form that goes to PM, email or thread
Guests to apply to be members
Report a Moderator form that goes as a PM to you
Guests can PM you for whatever reason
Order form to buy things
Donation form
News or Articles submissions that can go straight to a thread
Or anything you like - this hack is totally customizable via the AdminCP.
The beauty of this hack is that once you install this hack, to make a new form all you need to do is copy the main hook, rename it to whatever you want, edit the variables in the hook, and you have a totally new form!!! You do not need to touch the templates again, but can always create new ones and use different templates for different forms.
Format of the form:
One main input question
3 Radio buttons Choice questions
3 Normal text input questions
1 Drop down menu
3 Check boxes
1 Long answer question
1 VB message editor text box question
This is customizable via the hook.
Also:
You can set the usergroups you want access to this form.
Depending on your forum permissions, if the new thread is in a public forum, members can reply to it. This hack allows a form to submit the new thread or post wherever you want it to go.
Force the user to answer all questions.
INSTALLATION
Easy - takes only a few minutes:
Import the XML into products. (admin cp -> Plug-in System -> Manage Products -> Add/Import Product)
Edit the main plug-in - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
To get to the form, go to: /newthread.php?do=form (change "form" to the name of your form if you have few)
Done!
Use this hack to make as many forms as you like!
Enjoy!
Updates:
Version 2.0: (08/10/2005)
Ported over for vb3.5
Version 2.1: (08/10/2005)
bug fix with answers not showing
Version 2.5: (08/13/2005)
Major update:
Templates have a few lines changed here and there.
You can now have more then 2 poll options very easily
Polls can't be created if your not creating a new thread
New Thread now uses VB function to add the thread
New Poll now uses VB function to add the poll
New Reply now uses VB function to add the reply
PM now uses VB function to send the PM
Version 2.6: (08/21/2005)
fixed bug with posts having to be moderated
Version 2.7: (08/23/2005)
Minor update:
Fixed some issues with signatures, URL parsing, and subscriptions
Option to name the post titles
Made template XHTML 1.0 Transitional
Version 3.0: (11/29/2005)
Major update:
Added drop down menu
Made the long answer show up in a the vb message box
Re-wrote some instructions
Pressing back should save work
Both templates and plug-in were edited
Some more minor things
Version 3.1: (12/07/2005)
Brought back the standard text box (longanswer)
Version 3.2: (12/09/2005)
[ADDED] Option to make polls public.
Version 3.3: (12/19/2005)
[FIXED] Guests can now post using the forms to make a thread or post. They cannot send a PM though.
[ADDED] Paypal link so you can make a donation for this hack.
Version 3.4: (04/05/2006)
[FIXED] Removed extra line from template.
[ADDED] WYSIWYG editor now works besides the regular editor.
[ADDED] Preview.
[CHANGED] Subscriptions now take from user default setting.
Version 3.5: (05/31/2006)
[ADDED] Check boxes.
Abe1 with rights from Dr Erwin Loh
This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=bigware%40gmail%2ecom&item_name=Donation%20for%20Forms%20Hack&no_shipping=0&tax=0¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)
Woohoo!!!
This has always been my Favorite Hack Ever!!
Thanks to Erwin and now Abe1 for this.
Cyricx
08-10-2005, 11:39 AM
Very awesome!!!
Totally agree with Jugo, I think I have 8 or 9 forms running on my site now :)
Thanks!
Cyricx
08-10-2005, 12:37 PM
Hmmm testing this, even the generic unaltered form.
Answers are not posting to the forum. The template posts comes up right, and the questions do.. but the answers are blank.
Hmmm testing this, even the generic unaltered form.
Answers are not posting to the forum. The template posts comes up right, and the questions do.. but the answers are blank.
Ok. I will look into this.
Hmmm testing this, even the generic unaltered form.
Answers are not posting to the forum. The template posts comes up right, and the questions do.. but the answers are blank.
Fixed.
Cyricx
08-11-2005, 12:05 PM
Tested and works :)
Thanks so much!!! :D
* Cyricx gets busy updating his dozen or so forms...
Cyricx
08-11-2005, 12:58 PM
One more bug fix for ya bud.
If you use a tableprefix and use this thread to post a reply, you'll get an error, missed 2 table prefixs. :)
Change this in the plugin
if ($formreply == "1") {
$db->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pa getext,allowsmilie,showsignature,ipaddress,iconid, visible) VALUES (NULL,'$formreplythreadid','".$db->escape_string(htmlspecialchars($bbuserinfo[username]))." $formtitle','".$db->escape_string($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" . $db->escape_string($formsend) . "','1','1','0','0','1')");
$db->query("UPDATE thread SET replycount = replycount + 1, lastpost = " . TIMENOW . ", lastposter = '".$db->escape_string($bbuserinfo[username])."' WHERE threadid = $formreplythreadid");
To this
if ($formreply == "1") {
$db->query("INSERT INTO " . TABLE_PREFIX . "post (postid,threadid,title,username,userid,dateline,pa getext,allowsmilie,showsignature,ipaddress,iconid, visible) VALUES (NULL,'$formreplythreadid','".$db->escape_string(htmlspecialchars($bbuserinfo[username]))." $formtitle','".$db->escape_string($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','" . $db->escape_string($formsend) . "','1','1','0','0','1')");
$db->query("UPDATE " . TABLE_PREFIX . "thread SET replycount = replycount + 1, lastpost = " . TIMENOW . ", lastposter = '".$db->escape_string($bbuserinfo[username])."' WHERE threadid = $formreplythreadid");
I decided to acually work on this hack. I made new thread, new poll, new post, and new PM all use VB's functions instead of the form runing the queries. This alows everything to be done correctly. Words beng added to search, subsciptions being emailed, and so on.
Here is the offical list of this major update:
Version 2.5 - Major update:
- Templates have a few lines changed here and there.
- You can now have more then 2 poll options very eazaly
- Polls can'tbe created if your not creating a new thread
- New Thread now uses VB function to add the thread
- New Poll now uses VB function to add the poll
- New Reply now uses VB function to add the reply
- PM now uses VB function to send the PM
LOL..Nice work Abe...
Classy!!
Bro_Joey_Gowdy
08-15-2005, 07:34 PM
*Rowdy clicks install*
Hamma
08-16-2005, 05:55 PM
When I import this, it's blank? :confused:
Any ideas?
Hamma
08-16-2005, 06:10 PM
Nevermind, I imported into the wrong location :)
Michael2
08-17-2005, 12:04 PM
Installed and works but it doesn't look like vB code will work in the answers template. Any way to get that to work so that I can bold the questions when the results are spit out?
Hamma
08-17-2005, 03:18 PM
Installed and works but it doesn't look like vB code will work in the answers template. Any way to get that to work so that I can bold the questions when the results are spit out?
You can use HTML for that :D
I have a question - I have mine posting to a new thread. One problem is when the thread gets posted it goes into the moderation queue - any idea how to stop taht? It does not appear to be the forum perms causing it.
You can use HTML for that :D
I have a question - I have mine posting to a new thread. One problem is when the thread gets posted it goes into the moderation queue - any idea how to stop taht? It does not appear to be the forum perms causing it.
Either forum permissions or usergroup permissions. It uses the vb function so it's got to be something in vb that is telling it moderate it.
Installed and works but it doesn't look like vB code will work in the answers template. Any way to get that to work so that I can bold the questions when the results are spit out?
bb code will work in the answer template if you make sure to have a space or go to next line after a varable.
Erwin
08-17-2005, 11:27 PM
Nice work. :) Thanks for doing it.
Nice work. :) Thanks for doing it.
Your very welcome. And thanks again for your permission. I did listen to your only request about making it a plugin hack :)
XdePloppy
08-18-2005, 07:08 AM
With the previcious version I could use parameters using ?param1=lsdkfjkl¶m2=blabla
Is it posible to use it in this version?
With the previcious version I could use parameters using ?param1=lsdkfjkl¶m2=blabla
Is it posible to use it in this version?
Yes. Here is an example:
The link would be: newthread.php?do=form¶m1=lsdkfjkl¶m2=blabla
In the plugin, you have to add:
$vbulletin->input->clean_array_gpc('r', array(
'param1' => STR,
'param2' => STR
));
$param1 =& $vbulletin->GPC['param1'];
$param2 =& $vbulletin->GPC['param2'];
XdePloppy
08-18-2005, 04:26 PM
OWSOME, it works smoothhhhhhhhhhhh :), thx m8
Sovereign
08-20-2005, 01:25 AM
One issue, the default questions won't go away! The question for "is it yes or no if yes please explain" is still displaying despite my eliminating that code! www.alliancemodding.com/vb/newthread.php?do=rpg
lcryan
08-20-2005, 02:47 AM
it completly messes up my forum it throws the header all over the place and the footer all over the place
One issue, the default questions won't go away! The question for "is it yes or no if yes please explain" is still displaying despite my eliminating that code! www.alliancemodding.com/vb/newthread.php?do=rpg
You have to remove it from the tempate also.
it completly messes up my forum it throws the header all over the place and the footer all over the place
Can you get a screenshot and what did you do to the hack besides installing it?
version 2.6 released.
fixed bug with posts having to be moderated
WHAT THE CHANGES WERE:
in the plugin,
FIND:
$foruminfo = verify_id('forum', $formforumid, 0, 1);
Add after:
$forumperms = fetch_permissions($foruminfo[forumid]);
FIND:
$threadinfo = verify_id('thread', $formreplythreadid, 0, 1);
Add after:
$forumperms = fetch_permissions($threadinfo[forumid]);
RMS-Chef
08-21-2005, 06:15 PM
Thanks for this update. There are a few things I would need to be able to use this though. Is any of the following possible?
Immediate Wish List
-URLs submitted are clickable in the resulting post
Complicated? Wish List
-Have something like $titlefield1, $titlefield2, $titlefield3, etc. that when completed, generates the thread title for a new post or subject line for a sent email, etc. As a generic example say for submitting an auction item: "Title", "Location", and "Cost". The user would fill in something like: "2000 Ford Mustang for sale", "Ebay", and "$12,000". Then the resulting generated thread title would be: "2000 Ford Mustang for sale | Ebay | $12,000"
Zain Jaffer
08-21-2005, 09:03 PM
Either forum permissions or usergroup permissions. It uses the vb function so it's got to be something in vb that is telling it moderate it.
But then users can also make normal threads in that forum part. What if you don't want users to post in that forum but you do want them to fill in the form?
I mean this for like a news submit system. That would get in the news area...
Sovereign
08-21-2005, 11:56 PM
so do I have to make copies of the plugin to make more forms?
But then users can also make normal threads in that forum part. What if you don't want users to post in that forum but you do want them to fill in the form?
I mean this for like a news submit system. That would get in the news area...
Check out the lates update. It fixes this.
Thanks for this update. There are a few things I would need to be able to use this though. Is any of the following possible?
Immediate Wish List
-URLs submitted are clickable in the resulting post
Complicated? Wish List
-Have something like $titlefield1, $titlefield2, $titlefield3, etc. that when completed, generates the thread title for a new post or subject line for a sent email, etc. As a generic example say for submitting an auction item: "Title", "Location", and "Cost". The user would fill in something like: "2000 Ford Mustang for sale", "Ebay", and "$12,000". Then the resulting generated thread title would be: "2000 Ford Mustang for sale | Ebay | $12,000"
Are you saying URL are not parsed?
The second is easy. Maybe for next release.
so do I have to make copies of the plugin to make more forms?
Yes.
RMS-Chef
08-22-2005, 03:26 AM
Are you saying URL are not parsed?
The second is easy. Maybe for next release.
No, for example, when testing the default form I entered a URL (including the http://) (http://)/) and it is not being parsed.
And if you could get my second request going, other than vBAdvanced CMPS, this would be the #2 most usefull hack for me. I just really can't use it if all thread titles are the same.
Thanks again for your quick responses.
No, for example, when testing the default form I entered a URL (including the http://) (http://)/) and it is not being parsed.
And if you could get my second request going, other than vBAdvanced CMPS, this would be the #2 most usefull hack for me. I just really can't use it if all thread titles are the same.
Thanks again for your quick responses.
This way do dont have to wait,
Find this 2 times:
$newpost['title'] =& $formtitle;
and replace the $formtitle with any varable you want from the form. If you want 2 together, put them in quotes.
Yes, I know i'm awsome, you dont have to say it ;)
This is what I do on my site for my forms.
RMS-Chef
08-22-2005, 05:15 AM
Yes, I know i'm awsome, you dont have to say it ;)
This is what I do on my site for my forms.
Thank you very much. Figures I have to go to sleep before giving this a shot. :(
I will try things out tomorrow, and thanks again.
Sovereign
08-22-2005, 01:22 PM
Now that I understand this thing, [INSTALL] When you make a copy of the plugin, does it generate the templates for you or do you have to write them?
RMS-Chef
08-22-2005, 05:46 PM
No, for example, when testing the default form I entered a URL (including the http://) (http://)/) and it is not being parsed.
And if you could get my second request going, other than vBAdvanced CMPS, this would be the #2 most usefull hack for me. I just really can't use it if all thread titles are the same.
Thanks again for your quick responses.
It does pass bbcode fine though.
So, if I enter:
http://yahoo.com
I just get unparsed text in the post.
But if I enter (I wont enter correctly or it will parse here as well):
[ url=http://yahoo.com (http://yahoo.com/) ]Yahoo[ /url ]
I get the clickable link.
One of my required $longanswer fields are file URL locations so without URLs being parsed and the lack of a WYSIWYG editor controls, I fear my average user will not do things right.
It does pass bbcode fine though.
So, if I enter:
http://yahoo.com
I just get unparsed text in the post.
But if I enter (I wont enter correctly or it will parse here as well):
[ url=http://yahoo.com (http://yahoo.com/) ]Yahoo[ /url ]
I get the clickable link.
One of my required $longanswer fields are file URL locations so without URLs being parsed and the lack of a WYSIWYG editor controls, I fear my average user will not do things right.
I'm going to work on getting the forum default options to work on the parsing. I understand the problem.
RMS-Chef
08-22-2005, 08:08 PM
This way do dont have to wait,
Find this 2 times:
$newpost['title'] =& $formtitle;
and replace the $formtitle with any varable you want from the form. If you want 2 together, put them in quotes.
Thanks Abe1 for you help and support thus far. I am having issues as to the proper code to replace $formtitle with.
I have 3 custom variables that I would like to combine to generate the thread title.
($subjecttitleans $subjectdateans and $subjectlocationans)
I have tried two different versions of code:
$newpost['title'] =& "$subjecttitleans" "$subjectdateans" "$subjectlocationans";
$newpost['title'] =& "$subjecttitleans $subjectdateans $subjectlocationans";
Both give me the following error code displayed at the top of the page (btw, line 266 is the first instance of the code replacment):
Parse error: parse error, unexpected '\"', expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/XXXXX/public_html/newthread.php(68) : eval()'d code on line 266
Also, the form does not load and instead I get a vB error message that says:
Invalid Forum specified. If you followed a valid link, please notify the administrator
Finally, if I just use one of my custom variables to replace $formtitle the form loads properly and the resulting thread title has the proper $subjecttitleans text.
Sorry, I am good with templates but ignorent on code. Any help on this would be greatly appreciated. Thanks!
Thanks Abe1 for you help and support thus far. I am having issues as to the proper code to replace $formtitle with.
I have 3 custom variables that I would like to combine to generate the thread title.
($subjecttitleans $subjectdateans and $subjectlocationans)
I have tried two different versions of code:
$newpost['title'] =& "$subjecttitleans" "$subjectdateans" "$subjectlocationans";
$newpost['title'] =& "$subjecttitleans $subjectdateans $subjectlocationans";
Both give me the following error code displayed at the top of the page (btw, line 266 is the first instance of the code replacment):
Parse error: parse error, unexpected '\"', expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/XXXXX/public_html/newthread.php(68) : eval()'d code on line 266
Also, the form does not load and instead I get a vB error message that says:
Invalid Forum specified. If you followed a valid link, please notify the administrator
Finally, if I just use one of my custom variables to replace $formtitle the form loads properly and the resulting thread title has the proper $subjecttitleans text.
Sorry, I am good with templates but ignorent on code. Any help on this would be greatly appreciated. Thanks!
Drop the &
Use this:
$newpost['title'] = "$subjecttitleans $subjectdateans $subjectlocationans";
RMS-Chef
08-22-2005, 09:30 PM
Kick Ass! That is working flawlessly.
I eagerly await a fix to the URL parse thing.
Again, thanks so much for you help and effort.
Abe1 ..
it would be good if you add one (var) to count ( How many users completed and send the FORM ) in the FORM page ..
I need to use it in my Form in order to inform them the quantity .. ( it should be an optional feature )
thank you in advance Abe1 :) ..
RMS-Chef
08-23-2005, 01:19 PM
Ahh, I have this working and highly customized and it is really damn near a perfect hack.
I came up with I think one last issue. When posting, it automatically subscribes the user posting to the thread. Is there any way to prevent this?
Ahh, I have this working and highly customized and it is really damn near a perfect hack.
I came up with I think one last issue. When posting, it automatically subscribes the user posting to the thread. Is there any way to prevent this?
Can you see if it's deafut it to be subscibed? I'm going to go through all the settings for a post hopefully in a day or two to fix things like this and the url parsing.
RMS-Chef
08-23-2005, 03:12 PM
Can you see if it's deafut it to be subscibed? I'm going to go through all the settings for a post hopefully in a day or two to fix things like this and the url parsing.
It is not default.
Sovereign
08-23-2005, 03:50 PM
This hack is awesome! I got it working and have three easy forms for requesting forums, RPG hosting or webhosting on my site. Sooooo much better than the old "post in the forum" thing...thank you thank you!
Version 2.7 -
- Fixed some issues with signatures, url parsing, and subsciptions
- Option to name the post titles
- Made template XHTML 1.0 Transitional
RMS-Chef
08-24-2005, 01:42 AM
Version 2.7 -
- Fixed some issues with signatures, url parsing, and subsciptions
- Option to name the post titles
- Made template XHTML 1.0 Transitional
Not really sure about product stuff.
What would I need to do in order to upgrade with my three custom forms?
Can I just replace the code after the customizations in the plugin? Are there any required template changes?
Not really sure about product stuff.
What would I need to do in order to upgrade with my three custom forms?
The templates dont realy need to be changed. Their basicly the same just with the XHTML rules.
Here are the plug in edits:
Find:
$formtitle = "Generic Form";
Add after:
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$posttitle = "$formtitle";
Find (2 times):
$newpost['title'] =& $formtitle;
Replace with:
$newpost['title'] =& $posttitle;
$newpost['parseurl'] = '1';
$newpost['emailupdate'] = '9999';
if ($vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}
Find:
$question = $formtitle;
Replace with:
$question = $posttitle;
Find:
$vbulletin->GPC['title'] =& $formtitle;
Replace with:
$vbulletin->GPC['title'] =& $posttitle;
Find:
vbmail($formemailaddress, $formtitle, $formsend);
Replace with:
vbmail($formemailaddress, $posttitle, $formsend);
RMS-Chef
08-24-2005, 02:28 AM
Thanks. I had completly rewritten everything above the actual script code so all I needed was the URL parse issue fixed.
All I did was add the:
$newpost['parseurl'] = '1';
$newpost['emailupdate'] = '9999';
if ($vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}
twice under the "$newpost['title'] =" area and that fixed it.
It is now able to parse URLs and email addresses fine.
Thanks again Abe1!
Thanks. I had completly rewritten everything above the actual script code so all I needed was the URL parse issue fixed.
All I did was add the:
$newpost['parseurl'] = '1';
$newpost['emailupdate'] = '9999';
if ($vbulletin->userinfo['signature'] != '')
{
$newpost['signature'] = '1';
}
else
{
$newpost['signature'] = '0';
}
twice under the "$newpost['title'] =" area and that fixed it.
It is now able to parse URLs and email addresses fine.
Thanks again Abe1!
Doing this fixes 3 things, posts get parsed, you dont subscribe to threads, and signatures show if you have one.
BTW, you can call me Abe. The username was taken when I came.
RMS-Chef
08-24-2005, 02:43 AM
BTW, you can call me Abe. The username was taken when I came.
Will do Abe, now give me a paypal address so I can donate some coinage for all your help! I not going to pay your rent or anything but you will be able to get some lunch or a couple packs of smokes...lol
Will do Abe, now give me a paypal address so I can donate some coinage for all your help!
I work for free here. No need to pay me.
Um .. could you please ...
https://vborg.vbsupport.ru/showpost.php?p=761653&postcount=44
:)
Um .. could you please ...
https://vborg.vbsupport.ru/showpost.php?p=761653&postcount=44
:)
A counter on how many users used a form? Sorry, not being added.
RMS-Chef
08-24-2005, 07:11 PM
Well Abe, although this is working great for me, my users are never fully satisfied...lol
Again, not sure if it's possible or how involved it would be but they are looking to integrate the vB editing options/buttons (like the standard editor or WYSIWYG editor) for the "LONGQUESTION" fields.
Just thought I would throw that out there to see what you think.
Thanks.
Sovereign
08-24-2005, 07:15 PM
Is there a "form requires moderation" setting? Because I had a form submitted today and vB wanted to moderate it even though all usergroups have no moderation.
Well Abe, although this is working great for me, my users are never fully satisfied...lol
Again, not sure if it's possible or how involved it would be but they are looking to integrate the vB editing options/buttons (like the standard editor or WYSIWYG editor) for the "LONGQUESTION" fields.
Just thought I would throw that out there to see what you think.
Thanks.
You guys want a lot. I'll have to look into that.
Is there a "form requires moderation" setting? Because I had a form submitted today and vB wanted to moderate it even though all usergroups have no moderation.
Do you have the latest update?
RMS-Chef
08-24-2005, 07:27 PM
You guys want a lot. I'll have to look into that.
Yeah, lol.
I was looking at Editor Templates>>toolbar_on
Example being one form I am using has 3 "longquestion" fields and even if I would have to create 3 duped but renamed "toolbar_on" templates with properly named texarea filelds I would do it. Or even if I had to enter the entire code for that template and change the textarea to "longanswer1" or whatever that would be fine.
I will play around a bit later tonight but chances are I will mess things up and end up waiting on you...lol
Thanks Abe.
Da Chang Gang
08-25-2005, 03:27 AM
How are you suppose to remove the radio button questions?
How are you suppose to remove the radio button questions?
In the template.
Da Chang Gang
08-25-2005, 04:42 AM
It's awesome. I just finished Installing it
Mr Chad
08-26-2005, 04:28 PM
In the template.
How do i add them? I added the varubles and did the template, it shows the question, and when i click submit it doesnt show the question.
Mr Chad
08-26-2005, 04:36 PM
And what if you could make a form that does not only create a thread but also fills out the profile.
I meen its like editing your profile but it makes a thread too?
what do you think, its for new member and introduceing.
RMS-Chef
08-26-2005, 06:33 PM
How do i add them? I added the varubles and did the template, it shows the question, and when i click submit it doesnt show the question.
Be sure to also add/change the variables in the "_answers" template or it will not display the info.
How do i add them? I added the varubles and did the template, it shows the question, and when i click submit it doesnt show the question.
You realy need a little knoledge of PHP and HTML to modify this hack. Take a look around how things work there, and were varable are put.
Sovereign
08-26-2005, 09:10 PM
Yes I have the latest version. I have to wait for someone to submit a form because my forms (as admin) don't get moderated...
Mr Chad
08-27-2005, 02:43 AM
_answers
thats it, thank you
i also removed all the <b> from the questions in the template and put them in the php, and made the forum support HTML, so i could get the bold questions in the post.
Mr Chad
08-27-2005, 05:42 AM
thats it, thank you
i also removed all the <b> from the questions in the template and put them in the php, and made the forum support HTML, so i could get the bold questions in the post.
wow this has potential, you can really make the post look nice w/ sum HTML alterations.
Mr Chad
08-27-2005, 05:42 AM
wow this has potential, you can really make the post look nice w/ sum HTML alterations.
He He Ha Ha (http://www.blizzedhost.com/form.gif)
Is is possible to change the edior the big msg uses into an actual WYSIWYG box?
RMS-Chef
08-29-2005, 07:01 AM
wow this has potential, you can really make the post look nice w/ sum HTML alterations.
He He Ha Ha (http://www.blizzedhost.com/form.gif)
Is is possible to change the edior the big msg uses into an actual WYSIWYG box?
Well Abe, although this is working great for me, my users are never fully satisfied...lol
Again, not sure if it's possible or how involved it would be but they are looking to integrate the vB editing options/buttons (like the standard editor or WYSIWYG editor) for the "LONGQUESTION" fields.
Just thought I would throw that out there to see what you think.
Thanks.
You guys want a lot. I'll have to look into that.
^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^
Sorry, I didn't work on yet.
RMS-Chef
08-29-2005, 07:41 PM
Take you time Abe. You have already been a huge help.
I was simply pointing it out to chatbum. :)
wimminrule
09-08-2005, 12:51 AM
Hi there - I completely LOVE your form. I am a complete newbie to PHP. I have all of it working except for one part, and was hoping someone could help me with it. :)
We want the form we created completed before we validate registrations. So, I modified the moderateuser in the phrase manager to say the following:
Thank you, {1}! We require one additional step in the registration process. Please click<a href="http://phenomsonline.com/board/newthread.php?do=form"> here</a> and tell us a little more about yourself.
instead of:
Thank you for registering, {1}. Your account has been submitted for moderation by an administrator and will be activated shortly. You will be notified by email when this happens. To return to the forums, click <a href="{2}.php{3}">here</a>.
My problem arises when the new user clicks on the link to the form. It doesn't carry over their username. Consequently, the post will not post to the thread that I have specified for it to reply to. Can anyone help me with this? I'd be most grateful.
Thanking you in advance!
Hi there - I completely LOVE your form. I am a complete newbie to PHP. I have all of it working except for one part, and was hoping someone could help me with it. :)
We want the form we created completed before we validate registrations. So, I modified the moderateuser in the phrase manager to say the following:
Thank you, {1}! We require one additional step in the registration process. Please click<a href="http://phenomsonline.com/board/newthread.php?do=form"> here</a> and tell us a little more about yourself.
instead of:
Thank you for registering, {1}. Your account has been submitted for moderation by an administrator and will be activated shortly. You will be notified by email when this happens. To return to the forums, click <a href="{2}.php{3}">here</a>.
My problem arises when the new user clicks on the link to the form. It doesn't carry over their username. Consequently, the post will not post to the thread that I have specified for it to reply to. Can anyone help me with this? I'd be most grateful.
Thanking you in advance!
I dont think when you register vb automaticly logs you in. You have to then sign in. But I'll try to look for a solution for you.
As for the were the form info gets posted, i can't help you with out you showing me the settings you did and exacly what you want done and were it goes now instead.
wimminrule
09-08-2005, 01:54 AM
Thank you for responding, Abe! Everything else is working perfectly, as far as the posting issue. I had it set to reply to a specific thread in our Adminstrator's Corner Forum. Before I modified the moderateuser to point to the form, if I manually entered the location of the form (http://phenomsonline.com/board/newthread.php?do=form) and completed it, it posted just fine.
Now, however, I have no idea where it goes with the Unregistered user. I assume that since it has no permission to post, it just goes off into neverneverland, although it says that the form completed successfully.
wimminrule
09-08-2005, 01:56 AM
Oh, and I just tried registering a new member and not clicking on the link to the form, but instead going to the index, and it says I'm logged in, so it must be passing that (username) variable somehow, correct? TIA.
wimminrule
09-08-2005, 02:19 AM
Well, for some reason it's working now...thank you for your help!
Edited to say I lied. :(
Well, for some reason it's working now...thank you for your help!
Edited to say I lied. :(
I just signup up for an acount there. If my form didn't go through, here is what it said,
Hi, this is Abe1 the coder of the form hack. I see that this form DID pick up my Username. I have a thery behind why it doesn't post. The form uses the permissions of the cateory to alow it to post this or not. What you should do is make sure the unvalidated users are aloud to post in the section you want these posts to go.
wimminrule
09-08-2005, 12:07 PM
Thanks for testing it, Abe! It did post. It seems to be an intermittent thing as to whether it carries over the username to the form, but we put some instructions to make sure to login first, if it doesn't, in the moderateuser phrase.
This is the greatest thing ever. Again, thanks so much for your hard work and for your willingness to help out a newbie!!
Stacy
Thanks for testing it, Abe! It did post. It seems to be an intermittent thing as to whether it carries over the username to the form, but we put some instructions to make sure to login first, if it doesn't, in the moderateuser phrase.
This is the greatest thing ever. Again, thanks so much for your hard work and for your willingness to help out a newbie!!
Stacy
I guess your web site likes me :) Anyways, you can delete the account now.
does it work on RC3 ?
Yes, it should.
ok going to give this one a try then
since the original one for 3.0.x does not work on 3.0.9
and i need something like this so i just upgrade to 3.5 hopefully it will go final soon
i dont get it though
the installation says
1. Import the xml into products.
i got no directory in my vB folder named products !!!
nexialys
09-19-2005, 02:15 PM
i got no directory in my vB folder named products !!!
it's not DOWNLOAD, it's IMPORT...
admincp >> Plugin System >> Manage Products
ah right got it now
though already got some problems
1. i tried changing the name from form to recruits
but then it does not load anymore or says Invalid Forum
2. i tried changing some stuff to what i want and i got a Invalid Forum and on the top of the page i had
Parse error: parse error in c:\apache\htdocs\forums\newthread.php(68) : eval()'d code on line 204
i also still see this same error when creating a new topic
it shows on the top of the page
it does this with the non edited xml file
eleblanc
09-19-2005, 08:56 PM
I installed the forms hack from erwin. But i have a issue, maybe this one done for vb3.5 will solve my issue.
Let say i have the same form i want to use to post in multiple forum id or forum and sub forums. Do i need to create one form for each forumid, or with this new version i can create one form that will be used to post in all sub forums \forum\ for exemple. if i need to simply had forum id to the form i don't mind.
Also, once the user has posted using the form, can he edit is post and mess up the formatting?,
heck forgot
Abe if you want and have some spare time
can you have a look at my xml to see where i went wrong ?
i want to change the name from the form
atm its something like forums/newthread.php?do=form
i want more then 1 so want to change form to recruit for example
but i cant seem to get that since importing this one will always overwrite the first one uploaded
and this one wont work :P
nice job on this hack though , exactly what i needed
btw how do you get a post like chatbum has in this screenshot http://www.blizzedhost.com/form.gif
WNxWakko
09-19-2005, 11:53 PM
After removing the radio questions and such from the template and the hook, now when the form is submitted to a thread, there is a huge blank space between the username and the answer to the first question. Seems to be about 10 blank lines. Any clue?
I installed the forms hack from erwin. But i have a issue, maybe this one done for vb3.5 will solve my issue.
Let say i have the same form i want to use to post in multiple forum id or forum and sub forums. Do i need to create one form for each forumid, or with this new version i can create one form that will be used to post in all sub forums \forum\ for exemple. if i need to simply had forum id to the form i don't mind.
Also, once the user has posted using the form, can he edit is post and mess up the formatting?,
You can do this if you know how to edit php and html slitly. I do this on my forum. But, I dont have time to write out the steps right now. Maybe another day.
After removing the radio questions and such from the template and the hook, now when the form is submitted to a thread, there is a huge blank space between the username and the answer to the first question. Seems to be about 10 blank lines. Any clue?
Did you edit the answers template?
heck forgot
Abe if you want and have some spare time
can you have a look at my xml to see where i went wrong ?
i want to change the name from the form
atm its something like forums/newthread.php?do=form
i want more then 1 so want to change form to recruit for example
but i cant seem to get that since importing this one will always overwrite the first one uploaded
and this one wont work :P
nice job on this hack though , exactly what i needed
btw how do you get a post like chatbum has in this screenshot http://www.blizzedhost.com/form.gifHere you go.
thanks Abe
one thing though
which line do i use to see the form ?
form does not work form_recruit also wont work
both say
Invalid Forum specified. If you followed a valid link, please notify the administrator
thanks Abe
one thing though
which line do i use to see the form ?
form does not work form_recruit also wont work
both say
Invalid Forum specified. If you followed a valid link, please notify the administrator
recruit
ok got it to work
thanks Abe
one more thing how do you get something like this http://www.blizzedhost.com/form.gif ?
another thing , lets say i post the link to the form in a thread
when i click the link it always opens up in a new window
can it be set so it will open in the same window ?
if so which line do i change for this?
WNxWakko
09-25-2005, 03:30 AM
I got the answer problem fixed. Didnt realize you had two templates.
Another issue, I dont understand how to duplicate this for more forms. I copied the code, clicked add plugin (not product) pasted code, changed title, change description, fixed it to newthread_start hook. However it disables my original one.
I got the answer problem fixed. Didnt realize you had two templates.
Another issue, I dont understand how to duplicate this for more forms. I copied the code, clicked add plugin (not product) pasted code, changed title, change description, fixed it to newthread_start hook. However it disables my original one.
In the first line of the plugin code you have to change the name of the form.
WNxWakko
09-25-2005, 10:50 AM
I did change the name. Here is what happens. Line through it and unchecked. I try to check it but it wont let it stick.
https://vborg.vbsupport.ru/
I did change the name. Here is what happens. Line through it and unchecked. I try to check it but it wont let it stick.
http://www.warriornation.net/temp/formss.gif
Did you click "remember active" on the bottom?
WNxWakko
09-25-2005, 02:53 PM
yup your right. the active switch. sorry, never installed a plug like that before. thanks
WNxWakko
09-25-2005, 03:43 PM
I have another question. I have made a form that I also need unregistered users to use. Now I opened up the usergroup in your permissions, also tried doing the // on the usergroups so all could use. Problem is, unregistered user appears as name in form, it lets me submit and gives me the message that its sent, but it never appears in the designated forum. If I am using a logged in account the form works perfect. So how to I get it to allow unregistered/guests to use the form?
I have another question. I have made a form that I also need unregistered users to use. Now I opened up the usergroup in your permissions, also tried doing the // on the usergroups so all could use. Problem is, unregistered user appears as name in form, it lets me submit and gives me the message that its sent, but it never appears in the designated forum. If I am using a logged in account the form works perfect. So how to I get it to allow unregistered/guests to use the form?
It will not post in that area if unregistered user can't post in that area. It uses vB forum settings. If you allow unregisted users to post in that forum, then it will work.
WNxWakko
09-25-2005, 06:13 PM
ah ok that makes sense, however I tried that and it didnt work. I set that forum permission to allow for unregistered. Same problem
ah ok that makes sense, however I tried that and it didnt work. I set that forum permission to allow for unregistered. Same problem
Their Default has to be to allow also. I the main setting is not to see it, nothing can over ride it.
WNxWakko
09-26-2005, 03:27 AM
what do you mean default? The first form hook installed or? I have the forum that is set to receive the form info with unreg all opened up. I can post as a guest in this forum with no problem to test that my settings were correct.
what do you mean default? The first form hook installed or? I have the forum that is set to receive the form info with unreg all opened up. I can post as a guest in this forum with no problem to test that my settings were correct.
The usergroup default. acp->usergroups->unregistered->view forums "yes"
WNxWakko
09-26-2005, 03:33 AM
Yup, I turned that on, tried the form again and still doenst show up. Turned on can post, can reply, can view was already on.
Yup, I turned that on, tried the form again and still doenst show up. Turned on can post, can reply, can view was already on.
What happens if an ungeristered user tries to make a post in that place with out the forum?
WNxWakko
09-26-2005, 03:36 AM
I tested that and made a successful post in the same forum this form goes to logged out as unregistered.
I tested that and made a successful post in the same forum this form goes to logged out as unregistered.
I will try to look into this. I dont have much time these days but will try to make some.
WNxWakko
09-26-2005, 03:42 AM
thank you. I will keep checking back.
how do i add html code in the xml file ?
so i can have some mor graphical form posted
i know turning html on means security issue's
but i am willing to try this
i can always disable it again if the security gets breached
Zanix
10-01-2005, 07:11 PM
Hi,
This hack is the basically the whole reason I switched over to using VB as a forum. But theres something id like to know if its possible. Is there a way to specify which forum the form gets posted in by the selection from a dropdown menu? I'm currently running a guild website for a game and have subforums inside a recruitment forum according to the classes of the characters and I want to have the form posted in the appropiate subforum by the selection of class from a dropdown menu. If this is indeed possible can someone show me how exactly I would go about doing this? Im kinda a noob when it comes to these, just started getting the hang of things..
Thanks
dutchbb
10-01-2005, 07:39 PM
Sorry i dont understand where are the templates? The old hack was a bit more easy to handle.
Hi,
This hack is the basically the whole reason I switched over to using VB as a forum. But theres something id like to know if its possible. Is there a way to specify which forum the form gets posted in by the selection from a dropdown menu? I'm currently running a guild website for a game and have subforums inside a recruitment forum according to the classes of the characters and I want to have the form posted in the appropiate subforum by the selection of class from a dropdown menu. If this is indeed possible can someone show me how exactly I would go about doing this? Im kinda a noob when it comes to these, just started getting the hang of things..
Thanks
The option is in the plugin.
Sorry i dont understand where are the templates? The old hack was a bit more easy to handle.
Check out the template section in the ACP.
Zanix
10-02-2005, 12:40 AM
The option is in the plugin.
Thanks, I looked through the php and found this part that has to do with where to post.
////////////////////////////////////////////////////////////////////////////////////////////////////
//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
$formforumid = "2";
Now I got it to work posting into one forum, but im not sure how to actually set it up so its according to the option from the dropdown menu in the form. I tried a couple of different ways but it just ended up not posting anywhere at all and giving an error.
WNxWakko
10-02-2005, 02:34 PM
Any progress yet on why I cant get an unregistered user to be able to use the form?
Any progress yet on why I cant get an unregistered user to be able to use the form?
Nope, not yet.
rfairbairn
10-02-2005, 08:55 PM
Hi
Thanks for all the work on this.
We have a working version of your hack working well on our test forum, however I'd like to have 2 forms.
I have read other posts and spent some time experimenting to try and come up with the answer, with no luck.
What exactly would I change, or do to the file so that I can have more than one form.
Thanks again
Hi
Thanks for all the work on this.
We have a working version of your hack working well on our test forum, however I'd like to have 2 forms.
I have read other posts and spent some time experimenting to try and come up with the answer, with no luck.
What exactly would I change, or do to the file so that I can have more than one form.
Thanks again
Copy the plugin and call it a new name. Also change the form name on the first line of the plugin.
rfairbairn
10-03-2005, 09:39 PM
Thanks for the help, I got it to work.
I thought I'd just post this for future reference:
Heres how I got 2 forms to work on the same board:
Copied the file and renamed it
Edit the line in the hack
<product productid="form_hack" title="Form Hack"
Changing the product id (keep lower case and use a underscore if you want more than one word)
Change the title - Makes your life easier when you have more than one form
Find:
<plugins>
<plugin active="1">
<title>Form Hack</title>
<hookname>newthread_start</hookname>
<phpcode><![CDATA[// Name of this form
$formname = "form";
if ($_REQUEST['do'] == $formname)
change formname to something else eg $formname = "anotherform";
After you've imported the product, you should then be able to find your form at:
http://www.yourboard.com/forum/newthread.php?do=anotherform (or whatever your formname is)
eure-mudder
10-05-2005, 08:09 AM
Is there any possibility to change the name of the new thread, so that the name of the user who filles in the form is part of the name of the thread?
I want to use this hack to make an introduction Interview, for every new member. And the name of the new Thread schould sometihing like "<username>´s Interview".
Is there any possibility to change the name of the new thread, so that the name of the user who filles in the form is part of the name of the thread?
I want to use this hack to make an introduction Interview, for every new member. And the name of the new Thread schould sometihing like "<username>?s Interview".
Put as the thread title "$user[userid]'s Interview".
WNxWakko
10-05-2005, 11:48 PM
Is there a way to add the attachment feature to this?
Also similar question as above, but Id like the answer of question one to appear as the title, is that possible?
WNxWakko
10-05-2005, 11:58 PM
ok I tried what you told him,
$formtitle = "$user[userid]";
Is that the right spot? Cause it didnt work
ok I tried what you told him,
$formtitle = "$user[userid]";
Is that the right spot? Cause it didnt work
Sorry, '$vbulletin->userinfo[username]'
WNxWakko
10-06-2005, 02:19 AM
That didnt work either.
$formtitle = "$vbulletin->userinfo[username] Justice Appeal";
output was,
Array[username] Justice Appeal
That didnt work either.
$formtitle = "$vbulletin->userinfo[username] Justice Appeal";
output was,
Array[username] Justice Appeal
try
$bbuserinfo = $vbulletin->userinfo;
$formtitle = "$bbuserinfo[username] Justice Appeal";
WNxWakko
10-06-2005, 02:49 AM
yeah it worked. Thank you. Um now my other question. How do I pull the answer of question 1 to the title also, and is attachments possible or to complicated?
yeah it worked. Thank you. Um now my other question. How do I pull the answer of question 1 to the title also, and is attachments possible or to complicated?
For attachment, you should use the option to transfer to edit post.
You can add the $answer1 varible to the title.
WNxWakko
10-06-2005, 03:01 AM
im confused on the attachment part. option to transfer? did get the question working thanks.
im confused on the attachment part. option to transfer? did get the question working thanks.
There is an option were to send the user after they click submit. Use the one to go to the edit post page. This way thay can upload attachments right after.
WNxWakko
10-06-2005, 03:06 AM
ah, so it will only work after submitting the form.
ah, so it will only work after submitting the form.
Yes.
WNxWakko
10-06-2005, 04:26 AM
I have another nutty question :) sorry. I have the banner mod installed which allows me to add images or html to put a banner in a forum. Is is possibly for me to put this code into this html box so the form shows up at the top of this forum. If so how would I make this work?
I have another nutty question :) sorry. I have the banner mod installed which allows me to add images or html to put a banner in a forum. Is is possibly for me to put this code into this html box so the form shows up at the top of this forum. If so how would I make this work?
You would put it in the main form template.
eure-mudder
10-06-2005, 05:15 AM
try
$bbuserinfo = $vbulletin->userinfo;
$formtitle = "$bbuserinfo[username] Justice Appeal";
Works fine.
Thank you, great Hack!
i don't really understand what this hack do...
neofootball
10-06-2005, 04:51 PM
Question for you Abe1 when I edit the hook and remove radio choices and add more text questions do I edit the hook to below:
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => STR,
'normalanswer2' => STR,
'normalanswer3' => STR,
'normalanswer4' => STR,
'normalanswer5' => STR,
'longanswer1' => STR,
'longanswer2' => STR,
'action' => STR
));
$normalanswer1 =& $vbulletin->GPC['normalanswer1'];
$normalanswer2 =& $vbulletin->GPC['normalanswer2'];
$normalanswer3 =& $vbulletin->GPC['normalanswer3'];
$normalanswer4 =& $vbulletin->GPC['normalanswer4'];
$normalanswer5 =& $vbulletin->GPC['normalanswer5'];
$longanswer1 =& $vbulletin->GPC['longanswer1'];
$longanswer2 =& $vbulletin->GPC['longanswer2'];??
Because I can only get it to show normalanswer1 & longanswer1.
Question for you Abe1 when I edit the hook and remove radio choices and add more text questions do I edit the hook to below:
$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => STR,
'normalanswer2' => STR,
'normalanswer3' => STR,
'normalanswer4' => STR,
'normalanswer5' => STR,
'longanswer1' => STR,
'longanswer2' => STR,
'action' => STR
));
$normalanswer1 =& $vbulletin->GPC['normalanswer1'];
$normalanswer2 =& $vbulletin->GPC['normalanswer2'];
$normalanswer3 =& $vbulletin->GPC['normalanswer3'];
$normalanswer4 =& $vbulletin->GPC['normalanswer4'];
$normalanswer5 =& $vbulletin->GPC['normalanswer5'];
$longanswer1 =& $vbulletin->GPC['longanswer1'];
$longanswer2 =& $vbulletin->GPC['longanswer2'];??
Because I can only get it to show normalanswer1 & longanswer1.
This is great! But, you have to add to the formanswers template these new varibles also.
neofootball
10-06-2005, 06:27 PM
They are in the template that's what I don't understand why only two is showing.
They are in the template that's what I don't understand why only two is showing.
In the form, did you make sure you changed the name= to normalanswer1 & longanswer1
neofootball
10-06-2005, 09:18 PM
Yes they are correctly in the template form.
Mepher
10-07-2005, 12:12 AM
Abe is it possible to have the form post to 2 seperate forums? I have it all set up and working with a custom form. It posts to a single forum fine but I would like it to generate 2 seperate posts in different forums.
WNxWakko
10-07-2005, 02:33 AM
You would put it in the main form template.
Im not sure what you mean? I did try copying the form template info into the banner html header box, but it just displayed all the boxes and code.
WNxWakko
10-08-2005, 04:06 AM
Hi (waves) ya me again :) I do have another question. How can I make the required fields not for all but only for certain questions?
RMS-Chef
10-08-2005, 04:14 AM
Hi (waves) ya me again :) I do have another question. How can I make the required fields not for all but only for certain questions?
Look in the plugin code not too far below the end of the variables setup.
Look for:
if ($answerall == "1")
A couple lines under that you will see the question variables listed in a format something like:
$answer1 == '' OR $answer2 == '' OR $answer3 == ..........etc.
Just remove the answers you do not want to be required and add in any custom ones that you do want answered.
Of course make sure you set that you want answers to be required in the upper part plugin. ;)
WNxWakko
10-09-2005, 01:08 AM
Thank you all for your assistance with my needy needs. I appriciate it. There is still a couple things I want this to do, but most have been resolved so thanks.
Alteran Ancient
10-09-2005, 02:49 PM
Is there any way you can ger the User's Username included IN the name of the Thread you create with the form.
Is there any way you can ger the User's Username included IN the name of the Thread you create with the form.
Look back a few posts.
silurius
10-10-2005, 03:56 AM
Argh, this is a great concept but having a heck of a time with the customization of it. Still, I should not be complaining.
Main issue at the moment is, I seemed to have done something wrong and my forums will not load up the form no matter what. This is even after uninstalling the product, making sure it was not listed in product/plugin/styles, clearing my cache and reinstalling it again.
"Sorry! This forum is not accepting new posts." <- get this on DEFAULT installation now
What could I be missing?
Argh, this is a great concept but having a heck of a time with the customization of it. Still, I should not be complaining.
Main issue at the moment is, I seemed to have done something wrong and my forums will not load up the form no matter what. This is even after uninstalling the product, making sure it was not listed in product/plugin/styles, clearing my cache and reinstalling it again.
"Sorry! This forum is not accepting new posts." <- get this on DEFAULT installation now
What could I be missing?
It means the settings for the forum you want to post the thread in, dont allow you to post.
Mepher
10-10-2005, 10:43 AM
Abe, reposting this from a page back.
Abe is it possible to have the form post to 2 seperate forums? I have it all set up and working with a custom form. It posts to a single forum fine but I would like it to generate 2 seperate posts in different forums.
Abe, reposting this from a page back.
Find this:
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);add after:$foruminfo = verify_id('forum', $formforumid, 0, 1);
$forumperms = fetch_permissions($foruminfo[forumid]);
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);Replace on the first line '$formforumid' with the other forumid you want to post in.
Mepher
10-10-2005, 12:14 PM
Nice, thanks for the fast reply Abe.
Mepher
10-10-2005, 12:30 PM
$foruminfo = verify_id('forum', 9, 0, 1);
Im assuming thats what you meant. 9 being the id of the other forum I wanted to post it to.
Fatal error: Only variables can be passed by reference in /home/heroesfa/public_html/newthread.php(68) : eval()'d code on line 254
Thats the error im getting.
plubius
10-10-2005, 01:24 PM
Could someone post exactly what you need to do to make more than one form? I know you need to copy the hook and change the name of the form in the first line of the code, but what about the line of code that deals with the templates.
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS
////////////////////////////////////////////////////////////////////////////////////////////////////
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
What goes here?
If my new form has modapp in the first line what would I put here?
silurius
10-10-2005, 03:37 PM
...I seemed to have done something wrong and my forums will not load up the form no matter what. This is even after uninstalling the product, making sure it was not listed in product/plugin/styles, clearing my cache and reinstalling it again.
"Sorry! This forum is not accepting new posts." <- get this on DEFAULT installation now
What could I be missing?
It means the settings for the forum you want to post the thread in, dont allow you to post.
You sure there couldn't be another cause? I re-checked the permissions for the forum in question, and the form is definitely pointing to that.
Mepher
10-10-2005, 05:00 PM
I got it working. Added the lines you said and changed $formforumid to $formforumid2 and just added that variable. Works great.
Is there an easy way to get a forum id? I assumed the ids just went in numerical order but they are ordered by when they were created. Had to do some quessing to get my the forumid right. Even though its listed last it was created before many others so the id numbers are strange. Maybe its just something im not seeing.
RMS-Chef
10-10-2005, 06:26 PM
I got it working. Added the lines you said and changed $formforumid to $formforumid2 and just added that variable. Works great.
Is there an easy way to get a forum id? I assumed the ids just went in numerical order but they are ordered by when they were created. Had to do some quessing to get my the forumid right. Even though its listed last it was created before many others so the id numbers are strange. Maybe its just something im not seeing.
Just hover your mouse over the forum in question and look at your browser status bar for the link.....or click the forum and look at the URL.
You will see:
?f={FORUMID#}
{FORUMID#} = the forum id
Mepher
10-10-2005, 07:02 PM
Lol thanks RMS-Chef, now I feel like a total idiot =) I don't know why I didn't just think of that in the first place. I was kinda expecting it to display the forum ids in the Forum Management. /shrug.
silurius
10-10-2005, 07:51 PM
So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?
WNxWakko
10-10-2005, 11:32 PM
How can I make the Questions Bold or colored when its submitted into the thread?
RMS-Chef
10-11-2005, 12:44 AM
How can I make the Questions Bold or colored when its submitted into the thread?
You can use vBcode in your answer template.
There is one thing mentioned above, make sure there is a space after the last opening tag and before the first closing tag. Otherwise I think you get an error when you try to save the template.
An example taken from one of my answer templates:
$subjecttitleans
$longanswer1
_____________________________________________
$subjectdate : $subjectdateans
$subjectlocation : $subjectlocationans
$filesize : $filesizeans
$fileruntime : $fileruntimeans
$fileformat : $fileformatans
_____________________________________________
$longquestion2
$longanswer2
_____________________________________________
$longquestion3
$longanswer3
silurius
10-11-2005, 12:55 AM
So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?
Er...anyone...?
WNxWakko
10-11-2005, 12:59 AM
ah thankyou, worked perfect. I was trying it before but kept getting the error. I can see now it was the space that was needed.
RMS-Chef
10-11-2005, 12:59 AM
Er...anyone...?
Have you made sure that all groups you want posting are listed in the config area of the plugin code under:
//USERGROUPS ALLOWED
And double check you have the proper forumID.
silurius
10-11-2005, 01:16 AM
Er...anyone...?
Have you made sure that all groups you want posting are listed in the config area of the plugin code under:
//USERGROUPS ALLOWED
And double check you have the proper forumID.
Yep, and yep. :ermm:
silurius
10-11-2005, 05:39 PM
Sorry to keep bumping this. Still wondering if there is anything else I should look at here.
SirJonathan
10-12-2005, 12:09 AM
Hey guys!
I'm having a rather finicky issue.. I'm using this form for a 'membership application' on my message board. Recently, I've had a few members apply, their post get added to the database, but never show up in the right forum. Normally, when someone applies, their post gets added to the "new members" forum, without any trouble. Recently, a member joined, filled out the application, submitted it, and it never showed up in the "new members" forum. If you view the member's profile, it shows that they have one post and if you do a search, you can view their application just fine.
Any ideas why some of the posts are not showing up in the proper forum? I've just done another test of the system and it works just fine. Any thoughts on why some are slipping through?
Thanks guys! :)
-Jonathan
Mr Chad
10-12-2005, 01:12 PM
This is a great hack but what would be even better is if, you could make a hack that does this:
When a member registers and fills out the required info and clicks submit it will automaticly creat a thread w/ his/her info named welcome X.
silurius
10-12-2005, 03:36 PM
This is a great hack but what would be even better is if, you could make a hack that does this:
When a member registers and fills out the required info and clicks submit it will automaticly creat a thread w/ his/her info named welcome X.
Chatbum, I believe this (https://vborg.vbsupport.ru/showthread.php?t=91887) is what you are looking for.
I hate to whine, but I am really struggling with this hack for some reason. Can anyone work with me? I've checked the above suggestions a few times, and I have to wonder if there is something else I'm overlooking. (Have a go-live in a few days and I made the mistake of putting this form on the critical path).
vanayr
10-13-2005, 11:38 PM
Is there a way to put check boxes in this?
-Chris
bhxtyrant
10-16-2005, 02:26 AM
Hey guys,I was wondering is there a way to intergrate this with vBadvanced CMPS?
So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?
I get the same error, it ask for a value f=xx for input. dont know why, and I havent got enough time to work on it. anyway, do a trick do=form&f=1 will work
silurius
10-17-2005, 08:54 PM
I get the same error, it ask for a value f=xx for input. dont know why, and I havent got enough time to work on it. anyway, do a trick do=form&f=1 will work
I can get the form to display now, with the above, but cannot get the results to post ('Sorry! This forum is not accepting new posts.'). Tried outputting to various forums with wide open permissions.
Question about the advice about posting results to multiple forums or threads - what's the strategy here if we want to enable them to upload attachments (which are they taken to, if it works).
Also curious about this (or any other options, dropdown would be nice):
Is there a way to put check boxes in this?
Sezmarone
10-18-2005, 11:53 AM
Has anyone found out how to use this with unregistered guest?
I really like this but, don't seem to have much support!
Mastar
10-19-2005, 03:42 AM
This is my error: Parse error: parse error, unexpected T_STRING in /downunder/newthread.php(68) : eval()'d code on line 134
This is my Link: http://www.***.com/newthread.php?do=Mod/Super Mod Application Form
/ ################################################## #####################
// ######################## CUSTOMIZE VARIABLES ##########################
// ################################################## #####################
////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//You may remove this feature by adding a '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////
if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission();
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS
////////////////////////////////////////////////////////////////////////////////////////////////////
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//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
$formforumid = "2";
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "1";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "1";
//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = "1";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm = "1";
//USERNAME TO PM TO
$formpmname = LEGEND;
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail = "0";
//EMAIL ADDRESS TO EMAIL TO
$formemailaddress = LEGEND@comcast.net;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//REDIRECT OPTIONS:
// 0 - thank you message (thread, reply, pm, or email)
// 1 - redirect to post (thread or reply)
// 2 - redirect to thread (thread only)
// 3 - redirect to forum (thread only)
// 4 - redirect to editpost to upload attachments (thread or reply)
//
// Feel free to change the thank you message if you choose option 0
////////////////////////////////////////////////////////////////////////////////////////////////////
$redirectoption = "0";
$errormessage = Thank you for submitting this form!; //This is the thank you message
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
////////////////////////////////////////////////////////////////////////////////////////////////////
$answerall = "1";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formtitle = Mod/Super Mod Application Form;
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$posttitle = MOD/SUPER MOD APPLICATION;
////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formpurpose = The purpose of this form is to allow you to apply for Staff positions.;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$normalquestion1 = Which Position are you applying for?;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$radioquestion1 = Choose one of the following;
// The following choices must NOT have quotation marks
$radiochoice1a = Mod;
$radiochoice1b = Super Mod;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$radioquestion2 = Where you ever a Mod/Super Mod before?;
// The following choices must NOT have quotation marks
$radiochoice2a = Yes;
$radiochoice2b = No;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$radioquestion3 = Have you tested before?;
// The following choices must NOT have quotation marks
$radiochoice3a = yes;
$radiochoice3b = no;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 = What is your name?;
$explain1 = Please enter your real name here.;
//QUESTION 2 (do not use quotation marks or you will get a parse error)
$question2 = What is your email?;
$explain2 = Please enter your real email here.;
//QUESTION 3 (do not use quotation marks or you will get a parse error)
$question3 = What is your msn messenger ID?;
$explain3 = Please enter your ID here.;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$longquestion1 = Please give a little info about you experience.;
$longexplain1 = for example, What you have tested and what sites have you tested for before, do you make graphics etc.;
////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
///// DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
This is my error: Parse error: parse error, unexpected T_STRING in /downunder/newthread.php(68) : eval()'d code on line 134
This is my Link: http://www.***.com/newthread.php?do=Mod/Super Mod Application Form
You can't have a '/' in a link. get rid of it and see what happens.
Mastar
10-20-2005, 02:22 AM
This is that error I get:
Parse error: parse error, unexpected T_STRING in /home/thebedrock/domains/thebedrocktavern.com/public_html/Taverndownunder/newthread.php(68) : eval()'d code on line 128
This is what I edited:
// ################################################## #####################
// ######################## CUSTOMIZE VARIABLES ##########################
// ################################################## #####################
////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//You may remove this feature by adding a '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////
if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission();
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS
////////////////////////////////////////////////////////////////////////////////////////////////////
// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//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
$formforumid = "2";
//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "1";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "1";
//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = "2";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm = "1";
//USERNAME TO PM TO
$formpmname = "Abe";
////////////////////////////////////////////////////////////////////////////////////////////////////
//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail = "0";
//EMAIL ADDRESS TO EMAIL TO
$formemailaddress = "youremail@yourforums.com";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//REDIRECT OPTIONS:
// 0 - thank you message (thread, reply, pm, or email)
// 1 - redirect to post (thread or reply)
// 2 - redirect to thread (thread only)
// 3 - redirect to forum (thread only)
// 4 - redirect to editpost to upload attachments (thread or reply)
//
// Feel free to change the thank you message if you choose option 0
////////////////////////////////////////////////////////////////////////////////////////////////////
$redirectoption = "0";
$errormessage = "Thank you for submitting this form!"; //This is the thank you message
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
////////////////////////////////////////////////////////////////////////////////////////////////////
$answerall = "1";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formtitle = STAFF APPLICATION FORM;
";
////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$posttitle = STAFF APPLICATION;
////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formpurpose = The purpose of this form is to allow you to apply for Staff positions.;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$normalquestion1 = Which Position are you applying for?;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$radioquestion1 = "Choose one of the following choices";
// The following choices must NOT have quotation marks
$radiochoice1a = Mod;
$radiochoice1b = Super Mod;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$radioquestion2 = Where you ever a Mod/Super Mod before?;
// The following choices must NOT have quotation marks
$radiochoice2a = Yes;
$radiochoice2b = No;
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$radioquestion3 = Are you experienced in any area in the Forum?;
// The following choices must NOT have quotation marks
$radiochoice3a = "yes";
$radiochoice3b = "no";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 = "What is your name?";
$explain1 = "Please enter your real name here.";
//QUESTION 2 (do not use quotation marks or you will get a parse error)
$question2 = "What is your email?";
$explain2 = "Please enter your real email here.";
//QUESTION 3 (do not use quotation marks or you will get a parse error)
$question3 = "What is your Msn Messenger ID?";
$explain3 = "Please enter it here!.";
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$longquestion1 = "Please state what area in the forum suites you best and any sites did you staff for before.";
$longexplain1 = "For example, a bit about your experience in this area.";
////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
///// DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
This is that error I get:
Parse error: parse error, unexpected T_STRING in /home/thebedrock/domains/thebedrocktavern.com/public_html/Taverndownunder/newthread.php(68) : eval()'d code on line 128
I see the error. You have a lot of things not in quotes.
eg.
You have:
$formtitle = STAFF APPLICATION FORM;
";
should be
$formtitle = "STAFF APPLICATION FORM";
you have:
$posttitle = STAFF APPLICATION;
should be:
$posttitle = "STAFF APPLICATION";
Mastar
10-20-2005, 12:32 PM
In the istaructions for the hack it said to remove the quotations.
In the istaructions for the hack it said to remove the quotations.
Can you show me where?
silurius
10-20-2005, 03:14 PM
In the istaructions for the hack it said to remove the quotations.
Can you show me where?
Here -
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 = "What is your name?";
$explain1 = "Please enter your real name here.";
I was initially confused but left them, after noticing that it worked with them.
Here -
I was initially confused but left them, after noticing that it worked with them.
It means dont ADD quotations to the question and explaination. The Quotes around them are needed.
Mastar
10-20-2005, 07:01 PM
Thank you very much for you replies, one last question: What would I put in the address bar to get to the forum? I did it for vb3.09 and I had no problems.
http://www.mysite.com/newthread.php?do=STAFF APPLICATION FORM
I didn't get any errors this time but I get this:
Invalid Forum specified. If you followed a valid link, please notify the administrator
what would I put there, the '$posttitle =' or the '$formtitle ='?
Thank you very much for you replies, one last question: What would I put in the address bar to get to the forum? I did it for vb3.09 and I had no problems.
http://www.mysite.com/newthread.php?do=STAFF APPLICATION FORM
User underscores '_' when naming the form. Dont use spaces.
Mastar
10-20-2005, 07:09 PM
Never mine I got it working
Thanks ABE1 for you support!
This is the first time I got support for a hack that was giving me trouble.
Never mine I got it working
Thanks ABE1 for you support!
This is the first time I got support for a hack that was giving me trouble.
Your very welcome.
silurius
10-20-2005, 10:45 PM
Hi Abe,
Not sure if you saw my question above. Your help last week was great, but my testing was incomplete and it appears that my form is not able to post to my forum. I can get the form to display now, but when I send I get 'Sorry! This forum is not accepting new posts.' Tried outputting to various forums with wide open permissions, no luck.
Hi Abe,
Not sure if you saw my question above. Your help last week was great, but my testing was incomplete and it appears that my form is not able to post to my forum. I can get the form to display now, but when I send I get 'Sorry! This forum is not accepting new posts.' Tried outputting to various forums with wide open permissions, no luck.
What happend if you disable all other hacks that use the newthread page? Try finiding out which one coses the probelm.
Bobbo
10-21-2005, 04:10 AM
I had been running Erwins form on 3.0.7 until I recently upgraded to 3.5 and installed this. Looks great so far, however I'm experiencing two problems.
The first. E-mails dont seem to be coming through. ***(I resolved the email issue)
I do have :
$formemail = "1";
//EMAIL ADDRESS TO EMAIL TO
$formemailaddress = "myname@my.net";
It doesn't seem to mail though. I am getting mail from the system for other features, so I know the mail end is working in general. Any thoughts on where to begin to look?
The second item is on having multiple forms. I need a litttle clarification as I'm new to the plug ins, etc. My forms & templates all contain different types and numbers of questions, etc. Do I need to duplicate the original product-form_hack.xml, make changes to it, and import it as a plug in for each of my forms? (and if so, which specific changes need to be made to the .xml file)
Or do I simply create multiple hooks off the original product-form_hack.xml which I imported?
I have tried both methods. When I have more than one active, the end result is that viewing the form shows a blank white page. Deactivating all except a single hook allows for that form to display properly. What am I missing? ***(I resolved this issue as well. I made a stupid typo in the plug in variable section, doh!)
Thanks for the help! This rocks! :-D
murrtex
10-24-2005, 02:13 PM
super hack..but i have some problems.
i installed that and i did /newthread.php?do=form i fill that ..and sent..but where is that thread..i can see from topxstat and when i push "Generic form" it says no access permission..
what sould i do?
okkkeeyy
i solved..thanks
so,,how can we do the multiple forms ?
Suzie
10-26-2005, 12:43 AM
I am getting a completely blank page, no errors nothing at all on the page. Any idea why?
I am getting a completely blank page, no errors nothing at all on the page. Any idea why?
Nope.
Bobbo
10-27-2005, 01:47 AM
Suzie,
I had a few instances where I got blank pages when I set mine up as well. In each case it was bad coding in my plugin php code. Usually a simple syntax error. Are you testing with the default mod or did you customize it?
bigmo
10-27-2005, 04:36 AM
Hello,
i installed this hack, i was looking about something like that for days.
But now i have an question....
I´am using the hack whithin my vba-Home as a "fight-us"-Form (Clan-Page)
The problem is that the form apears in my vba-Home with logo, navbar, footer and so on. I only want to show the form itself, no other things. Which template or file i have to modify....
THX in advance!!!
Suzie
10-27-2005, 09:25 PM
Suzie,
I had a few instances where I got blank pages when I set mine up as well. In each case it was bad coding in my plugin php code. Usually a simple syntax error. Are you testing with the default mod or did you customize it?
I did change the questions to make it a product review form. I will check my code again. Thanks.
Suzie
10-27-2005, 11:16 PM
I fixed the above problem. I had changed the template name.
I have a question. On the earlier version of the form hack, when I posted a thread it would read like this ...Review: Papa Johns Pan Pizza how can I add the Review: part to the thread title?
life is boost
10-28-2005, 12:52 AM
Great hack here guys, one question. is there anyway to add a drop down menu to the form answers so the user can specify where the form goes? example. i have multiple areas that i would like to use this form. I tried using if statements and making multiple forms on the newthread button to direct to the correct form, but after adding 2 statements it gives an error.
so i would like to add a drop down box. this would allow them to post in either forum ID 2 or say 35.
anyway of doing this? I have tried with no luck on my own
SirJonathan
11-04-2005, 01:44 PM
Hey Guys!
I'm having some serious challenges with this form.. I'm using it for a membership application to my community and I'm having some serious trouble with people filling out an entire application, putting a LOT of time and energy into it, and then bam.. losing the whole thing. They hit post and it just never goes through.
Many applications go through fine, I just have this sinking feeling that just as many aren't going through. There isn't much that's more discouraging than losing something you've really just put your heart and soul into..
Are there alternatives? Is there something I could do to make the form more secure? Has anyone else had trouble with this? =\
Thanks in advance guys, any help is much appreciated!
-Jonathan
seems there is a strange bug in the script
i got 3.5 gold installed
but when people fill in the form it gets posted in the assigned section
BUT the post is actually made
but in the main page from the forums where you can see all the sections
it does not show last poster and the new post icon does not change either
it only does this for the form
regular posts are not doing this
seems there is a strange bug in the script
i got 3.5 gold installed
but when people fill in the form it gets posted in the assigned section
BUT the post is actually made
but in the main page from the forums where you can see all the sections
it does not show last poster and the new post icon does not change either
it only does this for the form
regular posts are not doing this
This is very strainge as this form uses the vb function to add posts and threads. Can you tell me is this when adding a new thread or new post?
well this is how we did it we made a post with a admin account in which all the form posts end up
so its when adding it to a post/reply to thread
silurius
11-04-2005, 07:07 PM
What happend if you disable all other hacks that use the newthread page? Try finiding out which one coses the probelm.
I finally found the problem. Disabling the sign a contract plugin (https://vborg.vbsupport.ru/showthread.php?t=91867) re-enables your plugin. Since I need this hack more than the contract one, this will work for me for a little while.
Couple of questions:
1. I think I saw someone ask about enabling attachment uploads. Is this on the roadmap at all?
2. Someone else asked about adding dropdown (select) options as an alternative to radio. Anyone have an example of how to best accomplish this?
I finally found the problem. Disabling the sign a contract plugin (https://vborg.vbsupport.ru/showthread.php?t=91867) re-enables your plugin. Since I need this hack more than the contract one, this will work for me for a little while.
Couple of questions:
1. I think I saw someone ask about enabling attachment uploads. Is this on the roadmap at all?
2. Someone else asked about adding dropdown (select) options as an alternative to radio. Anyone have an example of how to best accomplish this?
There is an alternative to attachments right now, let your user get forwarded to the edit post page. I work on getting attachments though.
As for the drop down, I may add it one to the template.
Abe1
seems the issue i am having is because each time a form is submitted it ends up being posted as moderated
but only the form post do this
regular posts/replies dont do it
Abe1
seems the issue i am having is because each time a form is submitted it ends up being posted as moderated
but only the form post do this
regular posts/replies dont do it
Are you sure you are using the latest version?
WNxWakko
11-07-2005, 01:57 AM
Hey Guys!
I'm having some serious challenges with this form.. I'm using it for a membership application to my community and I'm having some serious trouble with people filling out an entire application, putting a LOT of time and energy into it, and then bam.. losing the whole thing. They hit post and it just never goes through.
Many applications go through fine, I just have this sinking feeling that just as many aren't going through. There isn't much that's more discouraging than losing something you've really just put your heart and soul into..
Are there alternatives? Is there something I could do to make the form more secure? Has anyone else had trouble with this? =\
Thanks in advance guys, any help is much appreciated!
-Jonathan
I too would like this fixed. I addresed it several pages back. Noone can use the forum unless they are logged in no matter how you tweak the settings.
krela
11-07-2005, 07:02 PM
Okay this is an excellent plugin, particularly when used in conjunction with the 'First post on all thread pages' plugin too, however I have 2 questions that might make it really really useful :)
So here goes:
1) Is there any easy way of using the editor for the longanswer field. It's very hard for my users to input a lot of text withough being able to use it to format it. I've had a look, but I can't figure out how to call it in the template.
2) Would it be possible to implement a hook so that in certain forums you could replace the 'new thread' or 'new reply' buttons so that it goes to a specified form hack instead.
silurius
11-07-2005, 07:51 PM
I finally found the problem. Disabling the sign a contract plugin (showthread.php?t=91867) re-enables your plugin. Since I need this hack more than the contract one, this will work for me for a little while.
Couple of questions:
1. I think I saw someone ask about enabling attachment uploads. Is this on the roadmap at all?
2. Someone else asked about adding dropdown (select) options as an alternative to radio. Anyone have an example of how to best accomplish this?There is an alternative to attachments right now, let your user get forwarded to the edit post page. I work on getting attachments though.
As for the drop down, I may add it one to the template.
I should have qualified my question to say that I'm using this to allow users to submit article and artistic ideas for a print magazine. So in my case I can't grant the submitter any access to the forum to which their submission gets posted.
silurius
11-07-2005, 07:59 PM
Another feature request: allow dropdown/radio/checkboxes/etc. to dictate where the submission ends up.
krela
11-07-2005, 08:33 PM
Okay this is an excellent plugin, particularly when used in conjunction with the 'First post on all thread pages' plugin too, however I have 2 questions that might make it really really useful :)
So here goes:
1) Is there any easy way of using the editor for the longanswer field. It's very hard for my users to input a lot of text withough being able to use it to format it. I've had a look, but I can't figure out how to call it in the template.
2) Would it be possible to implement a hook so that in certain forums you could replace the 'new thread' or 'new reply' buttons so that it goes to a specified form hack instead.
Ignore request number 2, I just wrote my own hooks for it. Seems to work :)
I would love to be able to use the editor for the long fields though.
saxpics
11-08-2005, 04:10 PM
This has ... possibilities. I'm wantening to use this h@x to create a form for people essentially posting classified ads ("want ads", if you prefer), because we have too many posters that tend to forget to post, say, contact information.
Three questions:
* I haven't really checked, but can you set the code to post new threads in a forum, rather than just new posts to an existing thread?
* I HAVE checked, but haven't found: is there a way to set this form's title (i.e. "Generic Form") to be user defined, rather than statically defined? Ideally, I'd like a line in the form that says something like, "What are you selling?" and that ends up being the thread's title.
* I want all the threads to be posted into a forum where my members only have permission to respond to threads already posted. Does this forum hack care about user permissions to post something with it?
krela
11-08-2005, 05:00 PM
This has ... possibilities. I'm wantening to use this h@x to create a form for people essentially posting classified ads ("want ads", if you prefer), because we have too many posters that tend to forget to post, say, contact information.
Three questions:
* I haven't really checked, but can you set the code to post new threads in a forum, rather than just new posts to an existing thread?
* I HAVE checked, but haven't found: is there a way to set this form's title (i.e. "Generic Form") to be user defined, rather than statically defined? Ideally, I'd like a line in the form that says something like, "What are you selling?" and that ends up being the thread's title.
* I want all the threads to be posted into a forum where my members only have permission to respond to threads already posted. Does this forum hack care about user permissions to post something with it?
1) Yes it can be used to post new threads
2) Yes you can use a user field to name the thread, just takes a bit of hacking
3) Yes it cares about user permissions, so will follow normal rules I believe.
krela
11-08-2005, 05:02 PM
Ignore request number 2, I just wrote my own hooks for it. Seems to work :)
I would love to be able to use the editor for the long fields though.
Ignore request number one too, I implemented the editor myself with a dirty but workable hack.
This is a nice plugin :)
saxpics
11-08-2005, 09:06 PM
1) Yes it can be used to post new threads
2) Yes you can use a user field to name the thread, just takes a bit of hacking
3) Yes it cares about user permissions, so will follow normal rules I believe.
I found out how to do #2. I'm fuzzy on #1, still. Would anyone have some info?
I found out how to do #2. I'm fuzzy on #1, still. Would anyone have some info?
Just use the first option. The default one. Just put the forumid were you want the threads created.
saxpics
11-09-2005, 03:15 PM
Thank you very much. * Runs off to play with code *
Okay, this thing is pretty cool. Am playing with setting it up while preparing to deploy our annual 'Secret Santa' gift exchange. Will click 'Install' once I have it running. :up:
One question though: How difficult would it be to add a preview feature to this thing? This could sure eliminate a lot of submitted misinformation.
saxpics
11-09-2005, 08:29 PM
Yah. A preview would be kewl. I betcha the reason we cant have that now is the same reason why we can't get the WYSIWYG text editor.
Anyhow, I wanted to say that I was able to do the modifications the way I wanted (i.e., posts as a new thread, the answer to question 1 becomes the title of the thread).
I do want to ask this again, though, in a somewhat better way:
The idea behind using this Form Hack for my Forum is to make $member submit all the info in the form for "classified" ads. The info gets sent into a forum where the user can't edit anything. The unfortunate thing is, what's to stop $member from just hitting the "New Thread" button? Is there a way to disable that for a forum and link to the form instead? I do want $members to be able to add new posts to the form-submitted thread.
silurius
11-09-2005, 09:45 PM
I finally found the problem. Disabling the sign a contract plugin (showthread.php?t=91867) re-enables your plugin. Since I need this hack more than the contract one, this will work for me for a little while.
Abe, I know you're working on a few enhancements to this great hack, but do you think you might have time to look at the conflict with the sign a contract plugin (showthread.php?t=91867) some time soon? I would like to start utilizing both items. Thanks!
Yah. A preview would be kewl. I betcha the reason we cant have that now is the same reason why we can't get the WYSIWYG text editor.
I lean toward thinking it's more of an oversight than anything. Can't think of any practical reason to add WYSIWYG. Preview, on the other hand, should be standard issue for nearly any complex form submission protocol. Matter of fact, I don't see why VB doesn't use this on its contact form.
SirJonathan
11-14-2005, 11:12 PM
Hey Guys!
I'm having some serious challenges with this form.. I'm using it for a membership application to my community and I'm having some serious trouble with people filling out an entire application, putting a LOT of time and energy into it, and then bam.. losing the whole thing. They hit post and it just never goes through.
Many applications go through fine, I just have this sinking feeling that just as many aren't going through. There isn't much that's more discouraging than losing something you've really just put your heart and soul into..
Are there alternatives? Is there something I could do to make the form more secure? Has anyone else had trouble with this? =\
Thanks in advance guys, any help is much appreciated!
-Jonathan
Do I get any points for persistance? :).. *grins*.. Is there anyone who'd be willing to take a look at it for me? Any help would be greatly appreciated! Thanks guys!
-Jonathan
murat
11-16-2005, 05:15 AM
Abe, I know you're working on a few enhancements to this great hack, but do you think you might have time to look at the conflict with the sign a contract plugin (showthread.php?t=91867) some time soon? I would like to start utilizing both items. Thanks!
:up:
Cyricx
11-18-2005, 07:07 PM
Is there a way to add the date to the thread title?
I've already got the username in there but what I'm hoping for is like a thread title of:
Cyricx 11-18-05
Ramsesx
11-19-2005, 04:02 AM
Only want to say, thank you very much for this hack abe1, it's exactly what I need and I'm sitting now plenty hours for customizing it but it's worth this time. I love you abe1 :) Erwin too :)
I would like as somebody asked before to add a dropdown list where the user can choose the forum to place the form into. This would be absolutely great.
Thanks
SirJonathan
11-21-2005, 04:20 AM
Hey Abe!
Is there a way that a PHP post-back session could be added in so that when they get the error saying that not all forms were filled in and hit back the user's data isn't all lost? When they hit back or refresh, all the text they've entered would be saved. This would be a great addition and would solve a lot of my frustations with the data not going through to the forum! Thanks!
-Jonathan
...not all forms were filled in and hit back the user's data isn't all lost? When they hit back or refresh...
I've noticed this too. Am thinking about something using extract($_POST); that stores POST-data in hidden inputs (on a preview page? :)).
SirJonathan
11-21-2005, 01:35 PM
That would be another great way to do it :). I'm working with a friend of mine to add post-back integration to the application, anyway that does it will work. Will let you guys know how it goes and I'll check back to see if you guys have come up with anything!
-Jonathan
I know how to do this and will implement into the next version.
ZGeek
11-21-2005, 08:26 PM
This might be a huge thing to ask, but is it possible to make a form that on submission PM's a moderator or other user to approve the form? Once it's approved it then emails or PM's another person?
SirJonathan
11-22-2005, 05:51 PM
Awesome Abe! Thanks a ton :). And as if that wasn't enough to ask.. *grins*.. any ideas when the next version will be going out? Let me know if there's anything I can do to help. Keep up the awesome work bro :).
-Jonathan
New version released. For now, the text editor only allows standard editor do to a problem. I will try to figure out how I can get the wysiwyg editor working.
Clanshosting
11-30-2005, 03:22 AM
This is a pretty dumb questoin, but when you say:
2 - Edit the main hook - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
Where is this "main hook" ?
This is a pretty dumb questoin, but when you say:
2 - Edit the main hook - the instructions are all inside the hook itself, in the top half. Follow the instructions carefully!
Where is this "main hook" ?
There are 2 hooks for this hack. You can find them in admin cp -> Plugin System -> Plugin Manager
Clanshosting
11-30-2005, 03:47 AM
Hi, thanks for your reply. Also, I go into edit templates -> form -> and I see:
////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$longquestion1 = "X.";
$longexplain1 = "X.";
$longquestion2 = "X?";
$longexplain2 = "X?";
(I added #2)
Now, at the top,
// 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'];
$answer3 = $vbulletin->GPC['answer3'];
$answer4 = $vbulletin->GPC['answer4'];
$answer5 = $vbulletin->GPC['answer5'];
$answer6 = $vbulletin->GPC['answer6'];
$answer7 = $vbulletin->GPC['answer7'];
$answer8 = $vbulletin->GPC['answer8'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
There is no, like $$longquestion2 = $vbulletin .... etc.. you get the idea.
Is this correct?
Also, I see,
////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$normalquestion1 = "test";
I dont really understand that, thanks.
RMS-Chef
11-30-2005, 03:56 AM
New version released. For now, the text editor only allows standard editor do to a problem. I will try to figure out how I can get the wysiwyg editor working.
Thanks Abe.
I have several very customized forms is use. What would be the best way to upgrade to gain the editor functionality without having to redo my forums and templates?
Clanshosting
11-30-2005, 04:33 AM
Hm...
View:
http://forums.roxr.com/t4151-free-web-hosting-request.html
And:
http://forums.roxr.com/newthread.php?do=form
In my first link, you will see I went down 1 THROUGH 12.
YET, 10 and 11 just are gone. For no reason at all. I have checked my files over and over and I cannot find why.
Is it because it's 10, when there is already a 1? idk.
Clanshosting
11-30-2005, 04:57 AM
k, I have now go to:
http://forums.roxr.com/t4155-free-web-hosting-request.html
But it just copies 12. I have actually gone down to the "dont edit this if you dont know what your doing" and failed, rofl.
k, I have now go to:
http://forums.roxr.com/t4155-free-web-hosting-request.html
But it just copies 12. I have actually gone down to the "dont edit this if you dont know what your doing" and failed, rofl.
It's hard to add more then one long answer now. It would requre a few differant edits in a few differant places.
Thanks Abe.
I have several very customized forms is use. What would be the best way to upgrade to gain the editor functionality without having to redo my forums and templates?
There are about 5 differnt edits for this. I can't realy find them all. You can do a compare with the last version and try to find them.
ShadowOne
11-30-2005, 12:39 PM
It Keeps Telling Me:
Invalid Forum specified. If you followed a valid link, please notify the administrator
RMS-Chef
11-30-2005, 01:19 PM
There are about 5 differnt edits for this. I can't realy find them all. You can do a compare with the last version and try to find them.
Thanks Abe, I will use BeyondCompare and do it that way.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.