![]() |
Quote:
|
I'm trying to pre-populate a drop down box with usernames from a specific usergroup - I know how to do it if it was all in the PHP file (cant quote it off the top of my head, got it all at home though), but I am not sure how to then translate this into the form using the actual template.
Its the templates that really bamboozle me - I'm thinking that I need to create separate variables for each returned row to then pass into the template. Anything easier? |
Quote:
|
Excellent I will be installing this. :)
|
Quote:
If anyone figures out an easy way to do this please share. |
how can i setup different layouts for different forms? do i have to add a template for each layout? if so how do i call the new template so the .php file knows what template to use?
|
Anyone got a premade form.php i can edit for mod application
|
Nvm, all done :) great hack
[high]* GamerzWorld installs[/high] |
*clicks install*
got a quick question though, ok i installed it on my site (www.jo-joint.com/forums/form.php) and it only lets the user submit a form one time, is there a way to change that? |
Wonderful hack!
After some modifying I'm getting a query for an uncached template. All I pretty much did was delete some radio buttons and the check for them and changed the two template names to two new custom templates. I'm having a real hard time finding what other template the script may be using other than STANDARD_ERROR. Either way.. freakin' great hack Erwin. Thanks. |
Quote:
|
that's what I thought. hmmm.. Thanks Erwin.
|
Okay help please... I've changed the three template names. The form works wonderfully.. but there's a query for an uncashed template.
PHP Code:
|
Quote:
Look for PHP Code:
PHP Code:
|
Thanks mtha - forgot to add that.
Update Version 1.2 Thread count and lastposter information now updated if form is sent to existing thread. Zip file is updated. To upgrade, just apply the changes in the post above. |
Great hack Erwin.. will install soon I get my issues out of the way and upgrade
|
Quote:
this one is not important, but if you want, you can fix. when sending a PM to user, and that user has option to display a pop-up for new PM, the pop-up isnt displayed. |
Cool - this is going to be fun
Objective - each thread is a restaurant, users submit review, and review gets posted into that thread, with the data stored. Each thread shows survey to date, new survey form, and submitted reviews. I'll report back when its all working. |
Quote:
|
Quote:
Thanks again for this hack erwin, it has been invaluable for me as I've been building the site I am working on. |
Best mod ever ! I needed this so bad.
One question how would i be able to add a drop down menu like for example: What's your favourite color ? and then they can chose from red/blue/black/etc I am a complete newbie so the more details you can give me the better ! Thanks ! |
Figured everything out.
However, is there a way to allow other usergroups to see it without them being able to submit it? And if so, how would it be possible to make it so that when they do enter info and submit they see a message saying something like "you're not allowed to apply" ? Thanks and sorry i am asking for so much. |
I have one question, is it possible to add dropdown box with all my fourm & subforum listed so when my user apply for mod they don't need to type the fourm name in a box? if it's possilbe please show me how its done~Thank you and again, this is a great hack.
|
a really great hack !!!! :D
but will there be a version in the future which allow attachment uploading, if the output is going to be submitted as a thread? that would be great :) |
Erwin, this is awesome. However, I am having a problem.
I modified the form.php and added a bunch of questions. I also removed the radio buttons as they were not needed. However, my form now looks like this. http://www.dungeonkeepersdomain.com/...st_a_forum.php It has radion buttons at the top and does not have all my questions. What did I do wrong? |
Quote:
|
Well, if the template needs modifying for this, does this mean I need to modify the template for each and every different form I make? Do I make new templates? What do I call them? How do I tell hte form to look to these templates instead of the old ones?
|
Quote:
If you want to start changing the type and number of questions, you need to copy and rename the template, and change the template name in form.php - keep doing that for new forms, only if you modify those things. It's not hard too work out - I've made this hack to be customizable - go forth and change it however you like. |
Just an idea for future versions (something i would fiind really useful!)
Add the ability to post to a text file for either all or part of the form. For example, ithis would be used for collecting demographic information that is dumped into a text file then imported to Excel for analysis. |
Quote:
I DID ANSWER EVERY QUESTION. My "form_request_a_forum" template looks like this. Code:
$stylevar[htmldoctype] Code:
$formtitle What am I doing wrong? |
you need to change the conditional in the PHP file where it checks to see if all questions have been answered to match your new format.
I don't have the files where i can look at them right now, but the line you are looking for is marked with a comment, it is a long string of if ($variable1 == "" OR $variable2 == "" OR etc... You need to change all of the previously used variable names into the variable names you are using now: $normalanswer1 $normalanswer2 $normalanswer3 $normalanswer4 $normalanswer5 $longanswer6 $longanswer7 If that isn't clear enough, I will post the specific line you need to change later when I get back home |
Quote:
Code:
globalize($_POST, array( |
No, not that part, that's the wrong section.
You need to modify the bit of code that checks that all questions are answered which is further down the file. The one that checks that if a variable is empty, then the person needs to answer it. |
Quote:
|
Remove the variables you don't need in this line:
PHP Code:
|
thanks
|
no spam control :(
:dead: |
Quote:
|
Quote:
Open up the form.php (or whatever you named it) file Look for: Code:
//////////////////////////////////////////////////////////////////////////////////////////////////// Code:
$formtitle = "Generic Form"; Code:
$formtitle = "thread title goes here"; |
Dont mind if its a silly question, but the 2 templates being mentioned that has to be added, where are they ?
|
All times are GMT. The time now is 04:15 PM. |
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:
|