![]() |
PHP Code:
Quote:
|
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.
Quote:
If my new form has modapp in the first line what would I put here? |
Quote:
|
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. |
Quote:
You will see: Code:
?f={FORUMID#} |
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.
|
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?
|
How can I make the Questions Bold or colored when its submitted into the thread?
|
Quote:
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: HTML Code:
[center][u][b][size=5] $subjecttitleans [/size][/b][/u][/center] |
Quote:
|
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.
|
Quote:
//USERGROUPS ALLOWED And double check you have the proper forumID. |
Quote:
|
Sorry to keep bumping this. Still wondering if there is anything else I should look at here.
|
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 |
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. |
Quote:
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). |
Is there a way to put check boxes in this?
-Chris |
Hey guys,I was wondering is there a way to intergrate this with vBadvanced CMPS?
|
Quote:
|
Quote:
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): Quote:
|
Has anyone found out how to use this with unregistered guest?
I really like this but, don't seem to have much support! |
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!!! //////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// |
Quote:
|
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: Code:
// ####################################################################### |
Quote:
eg. You have: $formtitle = STAFF APPLICATION FORM; "; should be $formtitle = "STAFF APPLICATION FORM"; you have: $posttitle = STAFF APPLICATION; should be: $posttitle = "STAFF APPLICATION"; |
In the istaructions for the hack it said to remove the quotations.
|
Quote:
|
Quote:
Quote:
|
Quote:
|
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?...PLICATION 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 ='? |
Quote:
|
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. |
Quote:
|
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. |
Quote:
|
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 : Code:
$formemail = "1"; 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 |
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 ? |
I am getting a completely blank page, no errors nothing at all on the page. Any idea why?
|
Quote:
|
All times are GMT. The time now is 02:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|