![]() |
Quote:
Can be done. Remove the line: $formforumid = "131"; Then, edit the template, and make a dropdown menu, with the select values being "formforumid" (using plain HTML). This way, the user can choose which forum that the form goes into, by choose the forumid as formforumid. It's not hard to do at all. |
Danke! I'll give it a go and let you know how it works. I was actually looking for something similar to this, but wasn't sure how to put it all together. Far as I can tell, for these 4 forums, I would go to the admin cp under User Groups > Forum Permissions and choose a forum (do this for all 4 forums eventually), and 'Use custom settings:' and then check off 'no' to 'Can post new threads' so that this form will be the only way users will be able to start threads. Sound about right? I might be missing something.
|
Yes, that's right. :)
|
Erwin... great hack... how hard would it be to have the answers go into the database instead of a forum thread?
Since I can't get text boxes to work with the registration form for VB I was wanting to have the users answer go into the database and then me pull them out and displaying them in a memberslist type situation. I have the memberslist php file created but I'm can't figure out how to get these answers to go into the database... |
Quote:
|
This hack is great and is exactly what I was looking for.
However, is it possible to have users fill in who they want to PM the form too rather then having it be sent to a specific userid every time? (like the field in a normal PM newmessage) |
I would install this but i need to know if these features are planned
+ Easy multiple form creation from the admin cp for mutliple forums I need different forms for four different forums, anyway i should go about this? |
This hack sucks
THe form isnt as customisable as it claims, youve got to have the radio areas and everything my form dosent NEED radio buttons, but they show up, and it seems i can only make one text box when i need like 10 |
|
ALSO, its now posting blanks on my forums, ill stick to making my users copy a form and paste it into a new thread i think,
Im really bugged, this couldve been a great hack, but it means not only Editing + The Form itself but also 2 Templates for every form i post, then when it displays properly, it dosent even post properly. Uch im still desperate for a similar form system |
Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214
Any ideas? |
proxyMX,
the hack is awesome, but takes you knowing how to edit html to make the forms the way you want. It has a lot of freedom. The form template is just an example of what you can do, you as a webmaster need to make the form specific for your site. Erwin gave you the fishing pole the tactle and the gear need to make forms, the exmaples are very clear and easy to install and setup. Rather than flaming the forum/hack try making your form, if you don't know html goto w3schools.com and read it for an afternoon. Peace |
^ditto, yea exactly what he said. :)
proxyMX, this hack works perfectly, and its as user friendly/customizable as it gets around here. but...to say that it "sucks" shows absolutely no class, mind you giving the least amount of credit to the creator of this hack (Erwin)...seriously, was that even necessary? that was not cool... :dead: |
Well i just think its been over-rated, its not perfoming as it said it would, i know html and some php, and ive had to edit ALL of the files not just one for it even to display properly, and now the thing dosent even post. ive given up and taken it off
|
No comments. :)
|
Erwin, im not dissing you man, you make some great hacks, its just this one dosent do "What is says on the box" Alot of people here have had problems with it posting, and ive had to edit ALL the files just to get one form to display properly.
The instructions say the only file you need to edit is the php file which is nonsense, if you do theres radio buttons etc everywhere, I suppose its because im DESPERATE for a hack like this, and have been waiting for one for quite some time. Instead ive got a half-baked version :( |
Erwin, this hack really rocks. I love it..... and I'm using it to create a bunch of forms for different purposes, and even setting up multiple templates to choose from so we can do similar forms for the same function and still vary the layout sometimes, too, (not just changing the variables) so they don't all look the same.
I did run into a problem I can't figure out though...... and I need your help (in a hurry, if you please?)... On a registration form, our first question asks the member's username. But we have the form fill that in automatically using $bbuserinfo[ username] -- since the system already knows who they are. But in the third question, we ask them to enter their Player Name (for the event they're registering for). In most cases, the Player Name and their Username are identical. And any time the $answer3 text field matches $bbuserinfo[ username], the silly thing shows up totally blank. How do I get around this? |
Btw.... for the guys having problems getting the forms they want set up the first time. Once you get through that part once or twice, it's really easy to design the custom forms you want, then just rename new files and change the content on your variables every time you use it after that.
As soon as I get this registration thing of mine online, I can show that as an example, along with an expanded version of a moderator application form we're using now. And I'm sure others can help you customize your files/templates how you want them if you tell us what you need. |
it's an awesome hack, so far I haven't had any problems, and it does everything my mods needed. It's a real time saver thank you.
|
Okay, here's a simple one. Frustrating though, because I thought I should be able to figure it out myself... :(
Anyway, when the form posts as a reply to an existing thread, how do I get this to increment the thread's count and mark the post as "new?" |
Quote:
$answer3="$bbuserinfo[username]"; ?? Quote:
|
Quote:
In my "post" template, I had it down like this: $question1: $bbuserinfo[ username] $question2: $answer2 $question3: $answer3 $question4: $answer4 --------------------------- Though I hard-coded the $bbuser-thing into the "post" template and didn't input an answer for question 1 in the main form template ... I didn't use an $answer1 variable at all, so I had not defined $answer1 in the php file. The form that posted looked like this: (1) Your Username: Talisman (2) Your first name: Susan (3) Your boat name: (4) Your country flag: USA Every time I tested it, the boat name ($answer3) came up blank when it exactly matched the content of my $bbuserinfo[ username] variable. I confirmed this by entering a different boat name (that didn't match my username). When the $answer3 boat name was different from the username..... it worked. Now, I'll go try it the way you showed, Erwin. Be back soon to let you know how that turns out. Cheers! |
Erwin, can you help me out with why I would get the following error message when trying to run form1.php?
Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214 The form is located at: http://forums.classicmortgageservices.net/form1.php I haven't even begun to customize it, Im just trying to get it working. I added the templates exactly as the instructions said... Thanks, Ryan |
I can see that problem, retsell.
Your error message points to "/forums/form1.php" but the link you show uses a different directory structure for your "forums" subdirectory. |
Quote:
Im confused. http://www.classicmortgageservices.net/forums/form1.php its the same as: http://forums.classicmortgageservices.net/form1.php forums.classicmortgageservices.net is just a subdomain that points to /forums Am I not understanding you? |
Ok, sorry for the confusion, retsell...... I thought the link would be literal. Was going for a solution that was too obvious, I guess. :(
|
this hack scares me, I really REALLY want to use it, but its not working correctly, shame because its JUST what i need
|
Put the form1.php file in the same directory as your forums.
It cannot find the nopermission function ie. cannot find your global.php |
woooooh hold the press! i finally got this godamn thing working
thirteen template edits and ten file edits down the line, duno what the problem was. anyways is their anyway of making one of the submitted fields the title of the thread? |
Quote:
|
yeah sorry, it was late, i was on my period, wait im a guy, i cant use that excuse...eeek!
Anyways, ive finally figured out the problem, a few bad named variables. How simple. Doh. And i was wondering if there was anyway to make it so when a user submits the form, that the thread is named after a selected submitted field? |
Yes, can be done.
In form1.php (or whatever you've called it), FIND: PHP Code:
PHP Code:
Remember, do the above THREE TIMES - you need to change the title three times in the code. |
the file is in the same dir.
|
I can't explain it, retsell - I suggest re-installing the hack to see if it works - it does work, but I don't know why you are getting that server error.
|
thanks erwin
keep making brilliant hacks, dont listen to crackpots on methadone like me. |
Quote:
They're together. [Why did you post the whole PHP file in this post? What's the point of that? - Erwin] |
Quote:
it's a mysql error? |
It's an undefined function error - the gettemplate function could not be found. Makes no sense.
Also, there is no point reposting the whole PHP file out like that for unlicensed users to copy and use. They can't see [php] tag code, but you reposted the whole file in normal text. What was the point of that? Anyway, like I said, reinstall the hack following the instructions exactly. |
Ret, its probobly something simple like mines, check all the names of all the templates and the files and then check all the variables and make sure they all match up!
|
Geez, you guys can sure cover a lot of ground while I'm away.
Erwin, that $bbuser-thing worked brilliantly. Thanks for telling me it needed to be defined as a variable in the php file. Don't know why the forum/thread post counts don't update when the submitted form posts as a reply. When I click the update counters links in the ACP, everything shows up like normal. Wonder what's wrong with that. I saw a few pages back that we can check to make sure the member has the minimum post count required before the form submits.... I'll use that for our moderator app. We'd also want the form to check the member's join date. We don't want new members joining one day and applying to become a moderator a day later. We'd rather make them wait two weeks or a month and also make sure they've made 10 or 25 posts before they can apply. |
All times are GMT. The time now is 05:16 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:
|