![]() |
Quote:
|
thanks anyway attroll, you're cool
i really need this |
it's working now!!!
i'd like to know how to add a message when you forget to add a title. I mean the popup that goes like "please add a title" and wouldn't let you submit the form. |
Anyone figure out how to make it so that when in a specific forum and the new thread button is clicked, the forum is brought up?
|
Thank you attroll and Brundlefly for you help :)
I now have the form working exactly as I would like it to, except for one thing: How can I change the poll title? Thanks again :D |
how can i add post icons to the form???
|
Ok, wtf. Where are these freakin' "templates" you are talking about?
I imported the "hook" I have a PHP file, that i edited correctly i believe. (the two top parts) And then modified the individual questions. But no sign of any "templates". The readme.txt isn't very comprehensive. |
Quote:
|
Thank You, Finally got it working.
|
Hey, for some reason when I edit the formanswers template, html formatting is not working, I can actually see the tags.. is there somewhere I have to enable html in posts?
|
a want the popup that goes like: please write something
but i think this is java on the template, right? |
Quote:
|
Quote:
|
Quote:
At the moment the poll question/title is automatically set as the title of the thread, I however would like for it to be automatically set to something else. Thanks for getting back to me :) |
I am confused as to why you want a poll in a form in the first place? If a person wants users to reply to polls and to vote in them then why aren?t they posting them in the forums? Why do they want to post them in a form?
Don?t take this wrong I am just asking. |
No offence taken.
I am using the form for application purposes, I run a gaming clan. If someone wants to join my clan the must apply - using the form. When they post the form, the form gets posted into a private forum which only current clan members can view. They can then see the new application, comment on it, and vote in the poll whether or not they want to let the user join or not. At the moment however, it's not entirely clear what the poll is there for so they all comment on the applications saying they want them in the clan or not, but nobody uses the poll lol :D |
I am having a lot of trouble customizing this to what I need. Can the coder or anyone else for that matter make it to what I need please? I will give you exactly what I need if anyone is willing to do it for me. Thanks!
|
Quote:
Quote:
|
In the code below. how would I go about sending a post to 2 different forums?
Code:
$formforumid = "13"; |
[edit]==== Nevermind, i just un-installed and re-installed.
Works now. I must have deleted something by mistake on first try. |
Quote:
|
I searched but not good enough cause i am still lost on this. How can i make it when the form is used after user submits it... the title $posttitle is the title of the thread. I get this default message everytime i create a thread. :(
If you need more info, please PM me or post here. It's getting late out for me. |
Quote:
|
That's too complicated - I failed to customize fields. :(
|
Quote:
Thanks for that link. I just managed to get everything working the way i want it to. (Well untill i create another form.. lol) Have a great holiday and time for me to get on the road. |
This is a very good hack, but I need to pass on this warning. Do not create too many different forms, they will kill the server.
We have our own server, quite a good one, and this evening the server load hit 40. I have been using this hack to make separate forms for our car sales forum, a total of about 30, one for each model of Volvo car. I noticed that as I created each new plugin the server response got slower. It was not until I disabled all the forms plugins that the server load went back to normal. Bob |
Quote:
Good thinking, thanks :rolleyes: |
I was looking for a way to set the timelimit a poll, using this hack should run. Forgive me if I missed it in previous posts. I've come up with a way to do this for each form hack that is running. All of the below changes are accomplished in the hook.
after Code:
$pollpublic = "1"; Code:
//Time in days after posting poll shall close after Code:
$poll->set('public', $pollpublic); Code:
$poll->set('timeout', $polltimeout); I really hope I didn't recreate what already had been figured out. |
will this hack work on 3.7?
|
3.7 is not out yet so I don't know how anyone can answer your question yet.
|
Oi mate, you really gotta make thsi hack easier to work with, maybe a bit normal.. lol
|
I haven't been able to find what I'm looking for in the 51 pages of comments here, so I'll post: Is there a way to put this form in a thread? I'd like to have a sticky thread with a few links for online support resources, and then right there in the post, the form to request support. I'm not familiar enough with vBulletin (or certainly this mod) to determine if Form Hack can do such a thing.
Thanks. |
Quote:
Goto: Forums and Moderators Forum Manager Click to edit the forum Enter the form URL using Forum Link |
I cant get this thing to make a thread. i followed i think page 10 and put this under Forum display
<if condition="$foruminfo[forumid] == 16"> <!-- controls above thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?do=form" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above thread list --> </if> when i make the form it says the right message but doesnt post anywhere. Someone please help me |
|
Ive installed this hack and its great, but the vb editor box doesnt show the icon for the attachment manager (to easily place attachments inline with the text of the post)
Anyone else notice this or have this issue ? |
Quote:
// To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'. // After, change the form name. You can't have 2 forms with the same name. // Name of this form $formname = "form"; if ($_REQUEST['do'] == $formname) { // ################################################## ##################### // ######################## CUSTOMIZE VARIABLES ########################## // ################################################## ##################### //////////////////////////////////////////////////////////////////////////////////////////////////// ////// BEGIN CUSTOMIZATION BELOW//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //VARIABLES //Study how variables are add here to add or remove any. If you add a variable to your form, you must add it to part one and part two. //////////////////////////////////////////////////////////////////////////////////////////////////// // Part 1 $vbulletin->input->clean_array_gpc('p', array( 'normalanswer1' => TYPE_STR, 'normalanswer2' => TYPE_STR, 'normalanswer3' => TYPE_STR, 'normalanswer4' => TYPE_STR, 'normalanswer5' => TYPE_STR, 'longanswer1' => TYPE_STR )); // Part 2 $normalanswer1 = $vbulletin->GPC['normalanswer1']; $normalanswer2 = $vbulletin->GPC['normalanswer2']; $normalanswer3 = $vbulletin->GPC['normalanswer3']; $normalanswer4 = $vbulletin->GPC['normalanswer4']; $normalanswer5 = $vbulletin->GPC['normalanswer5']; $longanswer1 = $vbulletin->GPC['longanswer1']; //////////////////////////////////////////////////////////////////////////////////////////////////// //USERGROUPS ALLOWED //You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array. //To enable this feature, remove the '//' before the 'if'. //////////////////////////////////////////////////////////////////////////////////////////////////// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7,11,12))) print_no_permission(); //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE //////////////////////////////////////////////////////////////////////////////////////////////////// // 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 //You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list. $formforumid = "16"; //ENABLE POLL TO BE CREATED - 1 = yes, 0 = no $formpoll = "0"; $polloption[1] = "Yes"; $polloption[2] = "No"; $polloption[3] = "Maybe"; //Make poll public - 1 = yes, 0 = no $pollpublic = "1"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no $formreply = "0"; //EXISTING THREAD ID FOR FORM TO REPLY IN $formreplythreadid = "12345"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE FORM TO BE PMED (guests CANNOT use this option) - 1 = yes, 0 = no $formpm = "0"; //USERNAME TO PM TO (separate multiple usernames with a ';') $formpmname = ""; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no $formemail = "0"; //EMAIL ADDRESS TO EMAIL TO (separate multiple usernames with a ';') $formemailaddress = "youremail@yourforums.com"; //////////////////////////////////////////////////////////////////////////////////////////////////// //ENABLE ATTACHMENTS - 1 = yes, 0 = no //attachments can only be used if the form is going to make a new thread or post $allow_attachments = "1"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //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 (thread or reply) // // Feel free to change the thank you message if you choose option 0 //////////////////////////////////////////////////////////////////////////////////////////////////// $redirectoption = "0"; $errormessage = "Your BAP has been submitted, make sure you have sent your BAP fee."; //This is the thank you message //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no //If you added or deleted variables, you must edit what it checked for. Search for "$answerall ==" and edit 2 lines under it. //////////////////////////////////////////////////////////////////////////////////////////////////// $answerall = "2"; //////////////////////////////////////////////////////////////////////////////////////////////////// //TITLE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole title) //////////////////////////////////////////////////////////////////////////////////////////////////// $formtitle = "BAP Form"; //////////////////////////////////////////////////////////////////////////////////////////////////// //TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error) //You may use variables from the form for this. //////////////////////////////////////////////////////////////////////////////////////////////////// $posttitle = "$normalquestion1"; //////////////////////////////////////////////////////////////////////////////////////////////////// //PURPOSE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $formpurpose = "Complete the form in order to put up a BAP. You must send the BAP fee before this will be posted."; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $normalquestion1 = "Title for you BAP"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question1 = "What site is this being played on?"; $explain1 = "Please enter the poker site"; //QUESTION 2 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question2 = "What is your poker account"; $explain2 = "May only use 1 account"; //QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) $question3 = "Total Amount of Money"; $explain3 = "Please enter the amount here."; //Question 4 $question4 = "Number of shares"; $explain4 = "#"; $question5 = "Cost for each share"; $explain5 = "How much is each worth"; //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //VB TEXT AREA INPUT: You can only have ONE vb text question. (do not use quotation marks or you will get a parse error, besides the quotes around the whole text) //////////////////////////////////////////////////////////////////////////////////////////////////// $vbtextquestion = "All information you are wanting put down."; $vbtextexplain = "For example, Why people should by your shares, stats, etc"; //////////////////////////////////////////////////////////////////////////////////////////////// ////// END OF CUSTOMIZATION //////////////////////////////////////////////////////////////////// ///// DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! //////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// |
Quote:
|
Yea, but it has to be accepted by a mod before it will show up. I also have the new thread link directed to where it will go str8 to the form page and than Im wanting it to be posted in that forum.
|
This is awesome but it would be even awesomer :) if these things could be modified through the ACP rather than within the code.
|
All times are GMT. The time now is 02:09 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:
|