View Full Version : FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News
Erwin
05-22-2003, 10:00 PM
FORM TO FORUM/ THREAD/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS
Version 1.3 - Dr. Erwin Loh
-------------------------------------------------------
vB3 version is here:
https://vborg.vbsupport.ru/showthread.php?t=66082
Ever wanted an online form that a user can fill out, which when submitted gets:
1. Posted into a new thread in a forum of your choice
2. Posted as a REPLY to a current thread
3. PMed to you or someone else
4. Emailed to an email address you specify
Or any combination or all of the above?
Well, this is the hack for you! :)
You can use this for:
1) Moderator Application
2) Quiz Submit Form which gets PMed to a moderator
3) Contact Form that goes to PM, email or thread
4) Guests to apply to be members
5) Report a Moderator form that goes as a PM to you
6) Guests can PM you for whatever reason
7) Order form to buy things
8) Donation form
9) News or Articles submissions that can go straight to a thread
Or anything you like - this hack is totally customizable via the PHP file.
Basically, this hack involves modifying 1 PHP file form1.php (you add questions, options etc. in the PHP file itself), uploading it, and then adding 3 templates.
The beauty of this hack is that once you have added the 3 templates, to make a new form, all you need to do is copy the form1.php and rename it to form2.php, edit the variables in the PHP file, and you have a totally new form!!! You do not need to touch the templates again. However, if you do wish to modify the templates, you can copy and rename the templates. All the names of files and templates can be set in the PHP files.
Format of the form:
1. One main input question
2. 2 Radio buttons Choice questions
3. 3 Normal text input questions
4. 1 Long answer question
This is customizable via the PHP file.
INSTALLATION
------------
Easy - takes a few minutes:
1. Add the 3 templates - they are included as 3 TEXT files - form1.txt, formpost1.txt and formthanks1.txt = just use the names of the TEXT files as the name of the template, and cut and paste the contents.
2. Edit form1.php - the instructions are all inside the PHP file itself, in the top half. Follow the instructions carefully!
3. Upload form1.php
Done!
Just link to form1.php eg. http://www.yourforum.com/forums/form1.php
LAST POST TITLE ON FORUMHOME HACK SUPPORT
-----------------------------------------
If you have the "Last Post Title on Forum Home" hack by PPN, this hack supports it. Just find the line that says:
$lastposttitlehack = "0";
And change it to:
$lastposttitlehack = "1";
Done!
Updates:
------------
Version 1.1 - fixed a username with quotation bug.
Version 1.2 - fixed the email bug - oops... bad spelling... :)
Version 1.3 - added ability for form to REPLY to a current thread
To upgrade, just download the new form1.php - ensure it says "Version 1.3" at the top.
Enjoy! :)
Dr. Erwin Loh
Erwin
05-23-2003, 03:47 AM
Screenshots - Online Form
------------------------------------------
Remember, all the questions and choices are customizable in the PHP file! What you see here is the default - CHANGE THE QUESTIONS and CHOICES in the PHP file! :)
Erwin
05-23-2003, 03:47 AM
Screenshots - What the User sees after Submitting Form
-----------------------------------------------------------------------------
Erwin
05-23-2003, 03:48 AM
Screenshots - The New Thread after Form Submission
----------------------------------------------------------------------------
Erwin
05-23-2003, 03:49 AM
Screenshots - The PM you get after Form Submission
----------------------------------------------------------------------------
Erwin
05-23-2003, 03:49 AM
Screenshots - The Email you get after Form Submission
----------------------------------------------------------------------------
Floris
05-23-2003, 03:59 AM
GOD DAMN
You the man!
Thank you very much for your time and effort :)
MetroSports82
05-23-2003, 04:04 AM
Wow, this is so incredibly customizable! :D Terrific work/idea, on a really nice hack Erwin! ;)
* MetroSports82 licks install!
Hobbes
05-23-2003, 04:10 AM
AWESOME!!!!!!!!!!
THANKS ERWIN!!!!! YAY!!
/me installs!!!!!
Intex
05-23-2003, 04:30 AM
Very cool hack Erwin.
* Intex will install later :cool:.
Mephisteus
05-23-2003, 04:33 AM
Will this work without being registerd? Like an pre-registration form? :)
Lethal
05-23-2003, 04:33 AM
NICE
Erwin
05-23-2003, 04:34 AM
Today at 03:33 PM DarkSSJ3 said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=398815#post398815)
Will this work without being registerd? Like an pre-registration form? :)
Yes. You can edit the variables in the PHP file to allow any usergroup access.
Mephisteus
05-23-2003, 04:35 AM
ah, ok :) Nice :)
Erwin
05-23-2003, 04:41 AM
No, no no, the code is already in the hack itself. Don't add more unnecessary code to it!!! :)
Find this:
////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array
////////////////////////////////////////////////////////////////////////////////////////////////////
if (!in_array($bbuserinfo['usergroupid'], array(2,5,6,7))) show_nopermission();
////////////////////////////////////////////////////////////////////////////////////////////////////
And modify it as per instructions.
PLEASE READ THE INSTRUCTIONS! :)
MetroSports82
05-23-2003, 05:00 AM
opps, it must be late, hehe. :D my bad! ;)
PixelFx
05-23-2003, 05:07 AM
Thank you very much,
clicks install!
is it possible to have multiple forms like this ?
Gaffer
05-23-2003, 05:38 AM
Damn thanks Erwin i've been after somethign like this for ages and ages
EvilLS1
05-23-2003, 05:39 AM
This looks great! Nice job Erwin!
Erwin
05-23-2003, 05:43 AM
Today at 04:31 PM xs1 said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=398832#post398832)
is it possible to have multiple forms like this ?
Please read my first post. The answer is yes. It's very easy to do as well.
corsacrazy
05-23-2003, 07:04 AM
ive been thinking what to use this for and it hit me ......... there are MANY posssibillities for this guys JUST think how u can relate it to ur forums nice one ERWIN ;)
corsacrazy
05-23-2003, 07:07 AM
ahhhhhhhh i hav a question here erwin I HOPE THIS IS POSSIBLE :
when the new thread is created it has a poll on it with the options YES / NO :D posssible ?
Erwin
05-23-2003, 07:18 AM
Today at 06:07 PM corsacrazy said this in Post #23 (https://vborg.vbsupport.ru/showthread.php?postid=398853#post398853)
ahhhhhhhh i hav a question here erwin I HOPE THIS IS POSSIBLE :
when the new thread is created it has a poll on it with the options YES / NO :D posssible ?
That's a different hack altogether. :) If the person wants to make a poll... why not just make poll? You can't PM or email a poll, that's all. :)
corsacrazy
05-23-2003, 07:22 AM
:( this is what i intend to use the form for
: the information will contain information about a members car then will automatically go into a thread i would like the thread to hav a poll sayin YES/ No so other members can vote yes or no to the car being put in the gallery ;)
alkatraz
05-23-2003, 07:25 AM
This is absolutely brilliant!
I've always wanted something like this! There are so many different possibilities!! =)
THANK YOU!
Smoothie
05-23-2003, 07:32 AM
Hey guys, sounds like a cool feature, but for the life of me I can't think of any uses for it. Care to share what you are using this for?
corsacrazy
05-23-2003, 07:33 AM
Care to share what you are using this for? [/B]
https://vborg.vbsupport.ru/showthread.php?postid=398856#post398856
;)
Erwin
05-23-2003, 07:42 AM
Today at 06:32 PM Smoothie said this in Post #27 (https://vborg.vbsupport.ru/showthread.php?postid=398861#post398861)
Hey guys, sounds like a cool feature, but for the life of me I can't think of any uses for it. Care to share what you are using this for?
Potential uses:
1) Moderator Application
2) Contact Form that goes to PM, email or thread
3) Guests to apply to be members
4) Report a Moderator form that goes as a PM to you
5) Guests can PM you for whatever reason
6) Order form to buy things
7) Donation form
8) News or Articles submissions that can go straight to a thread
You are only limited by your own imagination - you can do anything with this - it's anything into a form, that can go into a forum, PM or email.
corsacrazy
05-23-2003, 07:43 AM
^ erwin is this not at all poss ible as i describes in post #25 :(
Erwin
05-23-2003, 07:44 AM
This hack is a FORM to THREAD/ PM or EMAIL, not FORM to POLL. :) Like I said, to make a poll is more complicated than you think from a form, and you can't email or PM a poll.
VampireMan
05-23-2003, 09:26 AM
Amazing Hack , thanks :)
corsacrazy
05-23-2003, 09:29 AM
ok man no prob thanks 4 explaining
Boofo
05-23-2003, 09:44 AM
On the Moderator Application, is there a way to have the forums in a drop down box added to this (with the proper permissions)?
Marulatree
05-23-2003, 12:44 PM
Erwin - You are a king! This is exactly what Iwas looking for and I thought I'd never see it.
One thing though:
How can I add a button (new website/shop) to the this one forum's new thread. If I add a button to the new thread template it will appear on all of the forums. I want the button to only appear for the one forum. Also I want the form to post it automatically in a [ quote ]form submission[ /quote ] boxes
Sorry to bother you but you've solved 4/5ths of my problems.
Three cheers for Erwin!!!
Erwin
05-23-2003, 01:17 PM
Yesterday at 08:44 PM Boofo said this in Post #34 (https://vborg.vbsupport.ru/showthread.php?postid=398880#post398880)
On the Moderator Application, is there a way to have the forums in a drop down box added to this (with the proper permissions)?
I'm sure it is, but I won't be adding that feature. :) It's a lot more coding. Just change one of the questions to a "which forum do you wish to moderate".
Erwin
05-23-2003, 01:18 PM
Yesterday at 11:44 PM Marulatree said this in Post #35 (https://vborg.vbsupport.ru/showthread.php?postid=398935#post398935)
Erwin - You are a king! This is exactly what Iwas looking for and I thought I'd never see it.
One thing though:
How can I add a button (new website/shop) to the this one forum's new thread. If I add a button to the new thread template it will appear on all of the forums. I want the button to only appear for the one forum. Also I want the form to post it automatically in a [ quote ]form submission[ /quote ] boxes
Sorry to bother you but you've solved 4/5ths of my problems.
Three cheers for Erwin!!!
Just edit the template "formpost1" and add [quote] tags to the bits you want it quotes.
To change the button, edit the "form1" template. :) Like I said in the first post, this hack is meant to be customized and modified to fit your forum and your purpose.
Marulatree
05-23-2003, 01:50 PM
Thanks for that. I'll add the [ quote ] tags.
As for the second questions what I mean is:
usually you click on the forum then it takes you to the threads. Then you can click NEW THREAD button to post a new thread. What I need is a button NEW SHOP (which I can do no problem with a link to the hack you've done. But the problem is if I add this new button it will run throughout every forum not just the one I want. Like you have a unstalled button on your forum here, it is specific to the hacks forum.
Any advice would be very helpful.
M
Today at 03:18 PM Erwin said this in Post #37 (https://vborg.vbsupport.ru/showthread.php?postid=398942#post398942)
Just edit the template "formpost1" and add [quote] tags to the bits you want it quotes.
To change the button, edit the "form1" template. :) Like I said in the first post, this hack is meant to be customized and modified to fit your forum and your purpose.
kaotic
05-23-2003, 02:00 PM
Incredible!
Austin Dea
05-23-2003, 02:19 PM
Very nice ;)
Cyricx
05-23-2003, 05:16 PM
Love this hack :)
Question, is it possible to "require" an answer? Seems you can submit without answering any of the questions. :)
Great hack, I've got so many uses for this it's limitless.
Marulatree
05-23-2003, 06:41 PM
wow - imagine the possiblities - lol
Today at 07:16 PM Cyricx said this in Post #41 (https://vborg.vbsupport.ru/showthread.php?postid=399024#post399024)
Love this hack :)
Question, is it possible to "require" an answer? Seems you can submit without answering any of the questions. :)
Great hack, I've got so many uses for this it's limitless.
Intex
05-23-2003, 07:03 PM
Erwin - I've now installed the hack - very nice work m8. I have a quick question.
As not every form would have all the types of questions and radio boxes etc. as you have for default - are these easy enough to remove? Also what if you wanted to add more?
Koutaru
05-23-2003, 07:57 PM
Nice Erwin -- I had your contact us installed but I just might install this one instead ;)
Gaffer
05-24-2003, 01:13 AM
damn it i'm getting errors.....
lets see being my luck it's a single semi colan out of place again
edit---
ok i found the error
for some reason it dont' like the fact that i have a ' in my username....
which is a little strange...
Hi Erwin
Great hack, thank you very much
Can I have it posted as a reply to thread No. "XX" instead of making a new thread.
I have a better use for it this way
Thanks
Erwin
05-24-2003, 04:33 AM
Today at 04:16 AM Cyricx said this in Post #41 (https://vborg.vbsupport.ru/showthread.php?postid=399024#post399024)
Love this hack :)
Question, is it possible to "require" an answer? Seems you can submit without answering any of the questions. :)
Great hack, I've got so many uses for this it's limitless.
I purposely made it like that to open up the possibilites. To make answering a question compulsory, do this:
In form1.php, find:
if ($action=="submit") {
BELOW, add:
if ($answer1 == "") {
eval("standarderror(\"".gettemplate("formanswer")."\");");
}
Replace $answer1 with the answer variable you want to make compulsory. Repeat that piece of code again and again for any other answers.
Then, add a new template called "formanswer" with the contents:
You did not answer a compulsory question. Please press backspace to redo the form.
Done!
Erwin
05-24-2003, 04:38 AM
Today at 12:13 PM Gaffer said this in Post #45 (https://vborg.vbsupport.ru/showthread.php?postid=399156#post399156)
damn it i'm getting errors.....
lets see being my luck it's a single semi colan out of place again
edit---
ok i found the error
for some reason it dont' like the fact that i have a ' in my username....
which is a little strange...
Yikes...
I have fixed this bug - Version 1.1 is released.
It's a small bug to fix.
To upgrade, in form1.php, find:
,'$bbuserinfo[username]'
Replace with:
,'".addslashes($bbuserinfo[username])."'
Done!
I have updated the ZIP file to version 1.1.
When downloading, make sure the PHP file says 1.1 at the top of it.
Erwin
05-24-2003, 04:51 AM
Today at 06:03 AM Intex said this in Post #43 (https://vborg.vbsupport.ru/showthread.php?postid=399060#post399060)
Erwin - I've now installed the hack - very nice work m8. I have a quick question.
As not every form would have all the types of questions and radio boxes etc. as you have for default - are these easy enough to remove? Also what if you wanted to add more?
Yes, if you want to remove or add questions, just edit the form1.php file, and the "form1" template. Rename them both, and edit the variables in the PHP file. It's not hard to figure out. :) This hack is meant to be modified by the user.
Smoothie
05-24-2003, 05:26 AM
For some reason, I have this form set to email me, but the email is not arriving. //ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail = "1";
Smoothie
05-24-2003, 05:49 AM
Not posting to a forum either.... //ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "1";
//FORUM TO POST NEW THREAD IN
$formforumid = "65";
Erwin
05-24-2003, 06:17 AM
Smoothie, your forum always has problems with my hacks for some reason. :)
Anyone else with the same problems? The hack works fine for me here at my own private forums.
Smoothie, try and see if the hack works without any modifications - it should. Make sure you edit the email address variable. And you have installed the templates.
Smoothie
05-24-2003, 06:28 AM
Some good news, I'm getting the PM. :) Yes Erwin, all templates are correctly added.
Cyricx
05-24-2003, 06:51 AM
Thanks for the modification Erwin :)
I have it posting to a forum with no problems at all. Tested it pretty heavy before we took it "live" :)
Great hack!
Smoothie
05-24-2003, 06:57 AM
Uploaded all new files and templates, ver 1.1. Posting to forums, getting PM's, no email.
Erwin
05-24-2003, 07:42 AM
Today at 05:57 PM Smoothie said this in Post #55 (https://vborg.vbsupport.ru/showthread.php?postid=399222#post399222)
Uploaded all new files and templates, ver 1.1. Posting to forums, getting PM's, no email.
I am an idiot. To fix this, find in form1.php:
if ($formmemail == "1") {
Notice the wrong spelling - the 2 "m"'s? Change it to:
if ($formemail == "1") {
It should work now...
For people using an older version of vB, change "vbmail" to "mail".
Anyway, I have updated the version to version 1.2 to fix this mistake. Apologies to all...
Smoothie
05-24-2003, 07:47 AM
LOL, ok. Now I know its not just my forum that has this problem. Thanks Erwin.
Gaffer
05-24-2003, 07:47 AM
goodies i got it working the way i want and working right....
great hack Erwin
SouledOut
05-24-2003, 02:36 PM
Thanks man. I can't help to think that maybe I helped a tad to inspire this mod since I requested one like this :p. Already I can think of 5 uses of this for a hosting company:
1) Hosting Apps (have it in a forum to have archived, or if you need a group decision, and to tell who took care of it and when)
2) To Report a Jerkoff Member
3) Report an inactive site
4) Request something else (domain, etc.)
5) Submit a support problem
My co-owned hosting network is being revamped this summer, and this will definitly help us, and it'll be alot easier for me when I get my site up and working and have requests for layouts or forum layouts.
corsacrazy
05-24-2003, 05:36 PM
thanks 4 the fixes lol
corsacrazy
05-24-2003, 05:46 PM
ermmmmm
Fatal error: Call to undefined function: vbmail() in /home/virtual/site52/fst/var/www/html/forums/feature.php on line 191
:s
Today at 04:35 AM Remi said this in Post #46 (https://vborg.vbsupport.ru/showthread.php?postid=399177#post399177)
Hi Erwin
Great hack, thank you very much
Can I have it posted as a reply to thread No. "XX" instead of making a new thread.
I have a better use for it this way
Thanks
Can some one please tell me how can I send the form as a reply to a thread instead of making a new thread.
This could be so abvious to some of you but it is so complicated for me :D
Crazy Pete
05-24-2003, 07:51 PM
Would it be easy to submit this form to more than 1 person via PM? Let's say for example I had a custom usergroup, and I wanted the form submission to go to all members of that particular group via PM. What would I need to change?
PixelFx
05-24-2003, 09:32 PM
... going for forum/form for now, will try and finish version for vbhome :)
Smoothie
05-24-2003, 10:34 PM
Today at 02:46 PM corsacrazy said this in Post #61 (https://vborg.vbsupport.ru/showthread.php?postid=399484#post399484)
ermmmmm
Fatal error: Call to undefined function: vbmail() in /home/virtual/site52/fst/var/www/html/forums/feature.php on line 191
:s
For people using an older version of vB, change "vbmail" to "mail".
Crazy Pete
05-25-2003, 04:15 AM
Still wondering how to get this to PM a certain usergroup, rather than just one person. I'm sure it's probably just editing or adding one or two lines, but...I can't figure it out.
Koutaru
05-25-2003, 04:42 AM
Is there a way to create an error if they do not fill in all the fields?
Cyricx
05-25-2003, 04:10 PM
Koutaru - Check out post 47
Koutaru
05-25-2003, 05:52 PM
Thanks Cyricx -- (I had a problem with it earlier but I think I've fixed it)
Intex
05-26-2003, 06:43 PM
Erwin - just thought I'd say thx. for a really nice piece of work. I've created a whole load of different forms for my site each with completely different layouts / question types.
An extremely useful and customisable hack :cool:. Congrats.
Crazy Pete
05-28-2003, 03:22 AM
Can someone please tell me how I can get this to PM a certain usergroup rather than just one person? I'd really appreciate it as I have a great idea for a use for this hack. Thanks!
Crazy Pete
05-28-2003, 04:38 AM
Nevermind, think I got it. We'll see if it works the way I think it will though.
brendanlim
05-28-2003, 08:24 PM
How can I change the title of the thread that I post? Or make it so that it is $threadtitle or something? :(
Mr. Brian
05-28-2003, 09:10 PM
Nice piece of work..
Might install this if I have the time to do so.
Erwin
05-28-2003, 09:31 PM
Another good use - a form for members to submit Quizzes for the Quiz hack - I'm using mine like that - quizzes get PMed to my quiz moderator. :)
Koutaru
05-29-2003, 02:51 AM
Today at 05:31 PM Erwin said this in Post #75 (https://vborg.vbsupport.ru/showthread.php?postid=401287#post401287)
Another good use - a form for members to submit Quizzes for the Quiz hack - I'm using mine like that - quizzes get PMed to my quiz moderator. :)
* Koutaru raises eyebrows
Not a bad idea
nymyth
06-03-2003, 01:00 AM
sup, when i tried this, it wont send to my mail, it sends to my pm and my forum but its all blank......im runnin 2.2.9.....do know what the problem is.....yeah i have all the templates up
Peace
Koutaru
06-03-2003, 01:02 AM
did you change vbmail to mail? Double check your settings. If all else fails, post your settings here
nymyth
06-03-2003, 01:16 AM
vbmail to mail, i dont follow??
Peace
Koutaru
06-03-2003, 01:19 AM
For people using an older version of vB, change "vbmail" to "mail".
nymyth
06-03-2003, 01:26 AM
ooohhh....why wont any text show up in the posts and pms..???
Peace
Koutaru
06-03-2003, 01:28 AM
Post your form php file and I'll have a look
nymyth
06-03-2003, 01:31 AM
here u go
Peace
Koutaru
06-03-2003, 01:37 AM
well first of all
//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "0";
check your $formpost template
nymyth
06-03-2003, 01:42 AM
i know i turned that off cuz the posts were coming back blank
$formtitle
$bbuserinfo[username]
$normalquestion1
$normalanswer1
$radioquestion1
$radioanswer1
$radioquestion2
$radioanswer2
$radioquestion3
$radioanswer3
$radioanswer3other
$question1
$answer1
$question2
$answer2
$question3
$answer3
-----------------------------------------------------
$longquestion1
$longanswer1
thats what i ahve in there
Peace
nymyth
06-03-2003, 01:44 AM
my email got sent, but that was also blank......hmmm
Peace
Koutaru
06-03-2003, 01:52 AM
I'll work on it with you via pm. Everything looks okay, if it's blank then the function is working except it's not inserting the $formpost template correctly
Try changing
eval("\$formsend = \"".gettemplate("$formpost")."\";");
to
eval("\$formsend = \"".gettemplate("formpost1")."\";");
PM me if you have problems and it still isn't working. Make sure (just double and triple check ;) ) formpost1 template is in the current style set you're using
Erwin
06-03-2003, 02:12 AM
You are missing the formpost1 template. Do as Koutaru says. And thanks Koutaru - good work. :)
Koutaru
06-03-2003, 02:31 AM
:p yup it was a template error -- it happens. Problem fixed, it would have totally stumped me if it wasn't something with the templates.
:)
Cyricx
06-03-2003, 07:18 PM
Hmmm since we can't use " marks in like the purpose or questions boxes which restricts html coding. Is there a way to enable bbcode for those areas? :)
So we can put in smilies or glow or something like that to kinda spice things up and make it look more fun? :)
nymyth
06-03-2003, 08:14 PM
not a template problem erwin...this is very weird...i have Koutaru who was nice enough to help me though...so hopefully itll be working soon..
Peace
Koutaru
06-03-2003, 08:26 PM
It was still not sending after we supposedly figured it out (the template wasn't named right). It's very weird. The templates are named right, the form works, it just not outputting $formsend right.
nymyth
06-03-2003, 10:29 PM
anybody knows how to handle this problem???
Peace
Cyricx
06-05-2003, 03:27 PM
Another idea for ya in addition to the bbcode is perhaps enable this to post to a thread?
Would have to enter the url for the thread I'm sure.
On our forums we use it for applications for several different things, then keep a thread in private forums where we condense the responses. :)
Awesome hack though, workin on our 6th form now LOL. :)
Doc203
06-06-2003, 03:21 AM
I don't post very often here, but I had to on this one. What a great hack! I noticed earlier in this thread someone had posted "What would this be used for" Well my forum is for locating car parts and it will be a great addition.
New users often don't know what to enter where and with this form I can make them enter what I want, and eliminate the guess work. Awesome work Erwin!
Erwin
06-07-2003, 01:10 AM
Update Version 1.3 - Ability for form to REPLY to a CURRENT THREAD
As requested by a few users. Your customizable form can now be posted as a REPLY to an EXISTING THREAD instead of a new thread.
Easily configurable in the PHP file itself:
//ENABLE FORM TO REPLY TO EXISTING THREAD
$formreply = "0";
//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = "62930";
Just change the 0 to 1 and put in the threadid, and it will work. :)
To upgrade, just download the new form1.php - ensure it says "Version 1.3" at the top.
Enjoy! :)
Thank you very much for the update Erwin
This is Exactly what I have been waiting for :banana:
Installed :smoke:
Doc203
06-07-2003, 05:20 AM
I have been customizing this thing and have even added drop down menu's etc. It is awesome.
I have one question though.... how can I get it to re-direct them to their post after they submit it?
Thanks for any help.
Thanks, Erwin! I've been waiting for this forever. :D
[eta]
I notice I don't get a pm popup when a form is submitted to pm. Is this an issue?
Doc203
06-08-2003, 06:10 PM
Anyone know where to change what posts in the subject (Title) of the thread? It now posts as username/form title. I want to use $answer1 $answer2 as my subject when it posts in the forum.
Erwin
06-09-2003, 01:49 AM
Today at 05:10 AM Doc203 said this in Post #100 (https://vborg.vbsupport.ru/showthread.php?postid=406193#post406193)
Anyone know where to change what posts in the subject (Title) of the thread? It now posts as username/form title. I want to use $answer1 $answer2 as my subject when it posts in the forum.
In form1.php (or whatever you have called your php file) =
FIND:
'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'
Replace with:
'".addslashes(htmlspecialchars($answer1 $answer2))."'
Do this TWICE (the above occurs TWICE).
Should work...
Doc203
06-09-2003, 02:36 AM
Today at 10:49 PM Erwin said this in Post #101 (https://vborg.vbsupport.ru/showthread.php?postid=406346#post406346)
In form1.php (or whatever you have called your php file) =
FIND:
'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'
Replace with:
'".addslashes(htmlspecialchars($answer1 $answer2)."'
Do this TWICE (the above occurs TWICE).
Should work...
Thanks much for the reply... I get a parse error. I also tried adding another ")" at the end and no luck. Any ideas? BTW this hack is fantastic!
S.Shady
06-09-2003, 02:41 AM
im no php expert but wouldnt it be this ?
'".addslashes(htmlspecialchars($answer1 $answer2))."'
Erwin
06-09-2003, 02:44 AM
S.Shady is right, I forgot to close the bracket. :) Try that.
Doc203
06-09-2003, 02:51 AM
I tried that and I still get the error...
I am replacing:
'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'
With:
'".addslashes(htmlspecialchars($answer1 $answer2))."'
Any idea? Thanks.
Doc203
06-09-2003, 02:59 AM
Maybe I am doing it in the worng place. I have that code in 4 places. I am changing the ones under "Insert int thread" and "instet into post"...
Erwin
06-09-2003, 03:03 AM
Try this:
'".addslashes($answer1$answer2)."'
Doc203
06-09-2003, 03:06 AM
Still get the error...
Doc203
06-10-2003, 01:25 AM
Yesterday at 11:51 PM Doc203 said this in Post #105 (https://vborg.vbsupport.ru/showthread.php?postid=406361#post406361)
I tried that and I still get the error...
I am replacing:
'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle'
With:
'".addslashes(htmlspecialchars($answer1 $answer2))."'
Any idea? Thanks.
Ok this code will work if $answer1 is change to $normalanswer1 and only one is used...
'".addslashes(htmlspecialchars($normalanswer3))."'
But, I can't get more than one to work...
'".addslashes(htmlspecialchars($normalanswer1 $normalanswer2))."'
I also tried removing the space between the two. Any ideas?
Erwin
06-10-2003, 02:28 AM
The try this:
'".addslashes(htmlspecialchars($answer1))." ".addslashes(htmlspecialchars($answer2))."'
It also may be related to what your answer is, whether it has some odd symbols in it etc.
Doc203
06-10-2003, 01:31 PM
That worked Erwin! Thanks for the help.
lhang
06-10-2003, 03:25 PM
Hi I'm a new VB user. This is very new to me.
I download and install the forms. My link www.myforum.com/forums/form1.php is blank page. What am i missing? Please help. Thanx
Erwin
06-11-2003, 01:56 AM
Make sure you have installed the templates, and you have the name of the template the same in the form1.php config.
lhang
06-11-2003, 12:05 PM
Yes, the name of the template is the same in the form1.php. Should i also place the template in the same folder where the form1.php is. Thank you.
Erwin
06-11-2003, 12:17 PM
Today at 11:05 PM lhang said this in Post #114 (https://vborg.vbsupport.ru/showthread.php?postid=407485#post407485)
Yes, the name of the template is the same in the form1.php. Should i also place the template in the same folder where the form1.php is. Thank you.
No, you ADD THE TEMPLATE in your ADMIN CP. It does not go into any folder. :) You are indeed new to vBulletin. Templates are added in the Admin CP - you add it to all styles - start with default. You do NOT upload them to any folder. They get added directly into the MySQL database.
nymyth
06-11-2003, 10:40 PM
does anyone have a solution to my problem?>???
Peace
Erwin
06-12-2003, 03:41 AM
No idea why, nymyth - the only explanation would be missing templates, or template names don't match.
Hobbes
06-13-2003, 04:37 AM
question!!!
I was wondering if I could have a minimum amount of posts needed before you can use the forum. and if you dont have the number of posts, they get a message saying so....
possible? and how?
Pollo
06-14-2003, 02:36 AM
Since this is hardcoded in the php file, I'm a bit confused as to how to achieve this (probably simple) modification:
//FORUM TO POST NEW THREAD IN
$formforumid = "131";
Above is original, but what I'd like is for users to be able to choose between 4 forums (submit the thread to the most appropriate forum). For example:
The forum is about motorized vehicles. Part of the entire board (4 forums) would be a place where users can submit this form (this hack) and choose if they are telling us about their motorcycle, car, boat, other and it would be submitted to the proper forum (motorcycle, car, boat, other).
If I can't get a drop down, I suppose I could just have multiple forms, and users would make the choice before they even see the form. In some ways that might work better, but I just wanted to know if it is possible to do this.
Great hack!
Erwin
06-14-2003, 02:42 AM
Yesterday at 03:37 PM Hobbes said this in Post #118 (https://vborg.vbsupport.ru/showthread.php?postid=408354#post408354)
question!!!
I was wondering if I could have a minimum amount of posts needed before you can use the forum. and if you dont have the number of posts, they get a message saying so....
possible? and how?
Easy.
In form1.php (whatever you have called it) find:
if ($action=="submit") {
Underneath, add:
$allowform = 100;
if ($bbuserinfo[posts] < $allowform) {
eval("standarderror(\"".gettemplate("error_notenoughpostsform")."\");");
exit;
}
Change 100 to whatever you like.
Then, ADD a new template called "error_notenoughpostsform".
with the contents:
You need a postcount of at least $allowform in order to send a form.
Done! :)
Erwin
06-14-2003, 02:46 AM
Today at 01:36 PM Pollo said this in Post #119 (https://vborg.vbsupport.ru/showthread.php?postid=408751#post408751)
Since this is hardcoded in the php file, I'm a bit confused as to how to achieve this (probably simple) modification:
//FORUM TO POST NEW THREAD IN
$formforumid = "131";
Above is original, but what I'd like is for users to be able to choose between 4 forums (submit the thread to the most appropriate forum). For example:
The forum is about motorized vehicles. Part of the entire board (4 forums) would be a place where users can submit this form (this hack) and choose if they are telling us about their motorcycle, car, boat, other and it would be submitted to the proper forum (motorcycle, car, boat, other).
If I can't get a drop down, I suppose I could just have multiple forms, and users would make the choice before they even see the form. In some ways that might work better, but I just wanted to know if it is possible to do this.
Great hack!
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.
Pollo
06-14-2003, 02:57 AM
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.
Erwin
06-14-2003, 03:07 AM
Yes, that's right. :)
tomjinx1
06-14-2003, 04:01 AM
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...
Erwin
06-14-2003, 04:34 AM
Today at 03:01 PM tomjinx1 said this in Post #124 (https://vborg.vbsupport.ru/showthread.php?postid=408767#post408767)
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...
You don't need my hack. :) All you need is to create a custom user profile field, note down the custom profile field id, and make a form that inserts data into that custom profile field. If you make it editable by the user, the user can even do it in their profile. It would be easy to list that out in a memberlist fashion.
Conundrum9
06-23-2003, 01:10 PM
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)
proxyMX
07-09-2003, 06:36 PM
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?
proxyMX
07-09-2003, 07:12 PM
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
proxyMX
07-09-2003, 07:16 PM
what do i have to do to get my form to display properly
http://boo.hosting-talk.net/submitmovie.php
proxyMX
07-09-2003, 07:34 PM
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
retsell
07-09-2003, 08:15 PM
Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214
Any ideas?
PixelFx
07-09-2003, 09:56 PM
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
MetroSports82
07-10-2003, 01:22 AM
^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:
proxyMX
07-10-2003, 01:57 AM
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
Erwin
07-10-2003, 06:44 AM
No comments. :)
proxyMX
07-10-2003, 09:42 AM
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 :(
Talisman
07-10-2003, 05:49 PM
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?
Talisman
07-10-2003, 06:13 PM
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.
PixelFx
07-10-2003, 06:56 PM
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.
Talisman
07-10-2003, 07:57 PM
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?"
Erwin
07-12-2003, 01:44 AM
Yesterday at 04:49 AM Talisman said this in Post #137 (https://vborg.vbsupport.ru/showthread.php?postid=416754#post416754)
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?
That's weird... if you'ven put the variables in the right place there should be no blanks. Did you do this:
$answer3="$bbuserinfo[username]";
??
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?"
This should be done automatically. The thread count should go up, and the post marked new automatically.
Talisman
07-12-2003, 03:11 AM
Today at 07:44 PM Erwin said this in Post #141 (https://vborg.vbsupport.ru/showthread.php?postid=417085#post417085)
That's weird... if you'ven put the variables in the right place there should be no blanks. Did you do this:
$answer3="$bbuserinfo[username]";
Well....... no, I didn't do it that way. Guess that's why it didn't work. ;)
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!
retsell
07-12-2003, 03:34 AM
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
Talisman
07-12-2003, 04:18 AM
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.
retsell
07-12-2003, 04:22 AM
Today at 06:18 AM Talisman said this in Post #144 (https://vborg.vbsupport.ru/showthread.php?postid=417114#post417114)
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.
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?
Talisman
07-12-2003, 04:30 AM
Ok, sorry for the confusion, retsell...... I thought the link would be literal. Was going for a solution that was too obvious, I guess. :(
proxyMX
07-12-2003, 04:35 AM
this hack scares me, I really REALLY want to use it, but its not working correctly, shame because its JUST what i need
Erwin
07-12-2003, 04:40 AM
Put the form1.php file in the same directory as your forums.
It cannot find the nopermission function ie. cannot find your global.php
proxyMX
07-12-2003, 04:41 AM
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?
Erwin
07-12-2003, 04:41 AM
07-10-03 at 08:42 PM proxyMX said this in Post #136 (https://vborg.vbsupport.ru/showthread.php?postid=416665#post416665)
Instead ive got a half-baked version :(
This hack is not half-baked. If you cannot install it, please don't blame the hack or the hacker. I've tried making it as simple as possible. It's for you to customize and change - you are never meant to use it without modifying it to suit you forums.
proxyMX
07-12-2003, 04:44 AM
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?
Erwin
07-12-2003, 04:48 AM
Yes, can be done.
In form1.php (or whatever you've called it),
FIND:
".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle
Replace with:
$answer1
Or whatever the variable is. :)
Remember, do the above THREE TIMES - you need to change the title three times in the code.
retsell
07-12-2003, 04:50 AM
the file is in the same dir.
Erwin
07-12-2003, 04:52 AM
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.
proxyMX
07-12-2003, 04:53 AM
thanks erwin
keep making brilliant hacks, dont listen to crackpots on methadone like me.
retsell
07-12-2003, 04:54 AM
Today at 06:40 AM Erwin said this in Post #148 (https://vborg.vbsupport.ru/showthread.php?postid=417120#post417120)
Put the form1.php file in the same directory as your forums.
It cannot find the nopermission function ie. cannot find your global.php
They're together.
[Why did you post the whole PHP file in this post? What's the point of that? - Erwin]
retsell
07-12-2003, 04:56 AM
Today at 06:52 AM Erwin said this in Post #154 (https://vborg.vbsupport.ru/showthread.php?postid=417127#post417127)
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 mysql error.
it's a mysql error?
Erwin
07-12-2003, 05:01 AM
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.
proxyMX
07-12-2003, 05:06 AM
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!
Talisman
07-12-2003, 05:25 AM
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.
proxyMX
07-12-2003, 05:50 AM
what id like to see is how to implement a listbox instead of radios
Talisman
07-12-2003, 06:04 AM
Yes, me too!
Erwin, one of these day you're going to feel really ambitious. When that happens, please tell us what coded bits we need to collect from different places so we can set up drop down boxes to display a selection of items that already exist elsewhere.
I'd like to have a drop down box for these things already...
1 - A forum list for people to select the existing forum they want on the moderator application form.
2 - Which country they represent when they register for a tournament (that drop down selection already exists in the country flag hack - but I can't figure out what to use/or how).
3 - Which registered member a person wants to nominate for an award (or something).
4 - Which time zone a player lives in to schedule competition times or a live chat session.
There's more...... but you get the idea. ;)
Oh, one more thing -- how do I make this so the submitted form is emailed or PM'd to multiple addresses/members?
Talisman
07-12-2003, 04:51 PM
Hi again,
I don't know if this will help or further confuse anyone trying to customize your own form, but I've got an example of a custom moderator app I made using this hack. You can look at a screenshot of the displays and look at how I customized Erwin's php file and templates.
This is really a combination of two hacks. I expanded on the content found in Lesane's Moderator Application + Rating Hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=35323&highlight=moderator+application), but I didn't want the ACP rating system he used and didn't need special database tables. So, basically, I used Erwin's "form" hack to create the same thing. Then we post the form (as a new thread) to a private staff-only forum for review. This lets us post comments in the same thread and then set up a poll to rate the moderator candidate (1 through 5) the way Lesane did in the ACP.
The main thing here is you can see how it looks on the screen, then check the php file and the templates to see how I got it to look that way.
The attached zip contains the php file and templates I'm using, and I'll post a couple of screenshots, to follow.
Please Note - I left the graphics we use in the screenshots to show how you can do this, too, but please don't use them -- I don't own those and they are not public domain graphics. You can make your own if you have that talent, or just get a "person/cartoon with a mirror" and a "person/cartoon with a magnifying glass" image from some clipart library to make something like this for your forum.
Talisman
07-12-2003, 04:53 PM
VCup Moderator Application Form (top portion)
Talisman
07-12-2003, 04:54 PM
VCup Moderator Application Form (bottom portion)
Talisman
07-12-2003, 04:55 PM
VCup Moderator Application Form (Thanks/Confirmation)
Talisman
07-12-2003, 04:56 PM
VCup Moderator Application Form (Forum Post)
retsell
07-12-2003, 08:59 PM
Today at 07:01 AM Erwin said this in Post #158 (https://vborg.vbsupport.ru/showthread.php?postid=417132#post417132)
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.
I appoligize for posting it, I assumed that it would hide all the code. The reason I posted it was because in other forums (like gentoo) people always ask for it to verify that there were no mistakes.
Anyhow, I've tried removing the templates and the form file and redoing all of them, but still no luck.
What I did find is that if you are not logged in you get this message:
Fatal error: Call to undefined function: show_nopermission() in /home2/cms/public_html/forums/form1.php on line 23
but if I am logged in as administrator:
Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214
This help any?
I can post screen shots of anything that might help someone find the problem.
Erwin
07-13-2003, 12:12 AM
Great job Talisman! :)
I will not be developing any of my vB2 hacks since vB3 is out, and I'm running vB3 on my private forums already.
@ restsell - I still don't get why you are getting the function errors. It makes no sense to me - the only explanation is that the form file is not able to call your forum global.php or functions.php and not getting the functions.
retsell
07-13-2003, 03:29 PM
Today at 02:12 AM Erwin said this in Post #169 (https://vborg.vbsupport.ru/showthread.php?postid=417346#post417346)
Great job Talisman! :)
I will not be developing any of my vB2 hacks since vB3 is out, and I'm running vB3 on my private forums already.
@ restsell - I still don't get why you are getting the function errors. It makes no sense to me - the only explanation is that the form file is not able to call your forum global.php or functions.php and not getting the functions.
Any reson why? permissions?
Is anyone using this with beta 4? could that be the problem?
retsell
07-13-2003, 03:32 PM
Today at 02:12 AM Erwin said this in Post #169 (https://vborg.vbsupport.ru/showthread.php?postid=417346#post417346)
Great job Talisman! :)
I will not be developing any of my vB2 hacks since vB3 is out, and I'm running vB3 on my private forums already.
@ restsell - I still don't get why you are getting the function errors. It makes no sense to me - the only explanation is that the form file is not able to call your forum global.php or functions.php and not getting the functions.
I just realized it said for 2.3 on the top, has anyone gotten this to work on 3.0?
Erwin: If this is not for 3.0 do you plan on releasing a ver that will?
Erwin
07-13-2003, 11:34 PM
99% of vB2 hacks will not work for vB3 - different code, different functions, different variables.
retsell
07-16-2003, 03:55 AM
Is there any way to add the attachments option to a form so it attaches the files with the post?
corsacrazy
07-21-2003, 07:48 AM
on my forums there are 2 admins ! so to allow the form to be emailed and pmed to both of us do i just add a comma then the other user id and the other email ad?
Erwin
07-21-2003, 08:13 AM
No, you cannot just add a comma. Just duplicate the queries for both PM and email for the second admin.
corsacrazy
07-21-2003, 08:39 AM
thanks erwin
romanticyao
08-27-2003, 08:57 AM
I hope in the future version i could have multiple pages form :p instead of a long page.
PixelFx
08-28-2003, 08:27 AM
:) great script :)
Aaron1
09-17-2003, 06:14 AM
Hi Erwin, this hack could be great for my needs, but is there a workaround for the question that Marulatree asked?
If I add a button to the new thread template it will appear on all of the forums. I want the button to only appear for the one forum.
Because it would be great if i could simply replace the 'new thread' button with a special 'Submit news' button for a forum i specify...
Best regards!
/Aaron
Hobbes
09-19-2003, 02:20 AM
i dont know if ur still lookin at this, BUuuttt
thanks for the help with the whole required posts thing...
and now , i bring another question :p!
is it possible to have the form posted in 2 different forums???
Erwin
09-19-2003, 02:52 AM
Just replicate the code that inserts the form to the forum twice and change the forumid. :)
Hobbes
09-20-2003, 12:48 AM
//FORUM TO POST NEW THREAD IN
$formforumid = "64";
so jus copy paste that and change 64 to the other forumid ?
EDIT- tried that...didnt work..
what to do, what to do :(!
Erwin
09-20-2003, 05:58 AM
In form1.php -
Underneath:
$formforumid = "131";
Add:
$formforumid2 = "222";
Change "222" to the second forumid you want.
Then, find:
if ($formreply == "1") {
ABOVE IT, add:
if ($formforum == "1") {
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastposter,dateline,iconid, visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle','".time()."','$formforumid2','1','0','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".addslashes($bbuserinfo[username])."','".time()."','$iconid','1','0')");
$formthreadid=$DB_site->insert_id();
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,pa getext,allowsmilie,showsignature,ipaddress,iconid, visible) VALUES (NULL,'$formthreadid','".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle','".addslashes($bbuserinfo[username])."','$bbuserinfo[userid]','".time()."','".addslashes(parseurl($formsend))."','$allowsmilie','$signature','$ipaddress','$iconi d','1')");
if ($lastposttitlehack == "1") {
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($bbuserinfo[username])."',lasttitle='".addslashes(htmlspecialchars($bbuserinfo[username]))." $formtitle' WHERE forumid='$formforumid2'");
} else {
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($bbuserinfo[username])."' WHERE forumid='$formforumid2'");
}
}
Done. :)
Hobbes
09-20-2003, 02:47 PM
bwhahaahaha SCORE!!!!!!!!
thanks Erwin ;) this is going to be teh useful :D
kreatiV
09-28-2003, 06:38 AM
Hi Erwin,
first of all thanks for this great hack! I did as instruction and now when I look at the List of Threads in that forum it shows the new thread. How would I edit this so that only ANSWER ONE is displayed as the Post Titel?
[QUOTE=Erwin]The try this:
'".addslashes(htmlspecialchars($answer1))." ".addslashes(htmlspecialchars($answer2))."'
[QUOTE]
kreatiV
09-28-2003, 06:46 AM
One more questions, is there a chance to use bbcodes directly in the form? I mean like hardcode bbcodes in there?
So the output is formated like I want it?
I also have a custom bbcode installed which uses a special tag <spoiler> </spoiler> any chance I can hardcode that into the form as well?
Best regards.
Cyricx
10-03-2003, 12:32 AM
The answer I found for using bbcode is I added a "parse" line at the very end.
So let's say I used some smilies and bbcode in the $formpurpose
then I'd find
eval("dooutput(\"".gettemplate("$formtemplate")."\");");
?>
And I'd add ABOVE that
$formpurpose=bbcodeparse($formpurpose);
Cyricx
10-03-2003, 12:47 AM
I've found one bug so far. I use this form for a TON of things right now and really love this hack man, kick ass job :)
Anyway, I recently made one to post to a thread. It posts correctly, bumps the thread like it has a new reply and everything. But for some reason the reply count for that thread stays at 0 heheh.
Nothing major just a slight quirk :)
Erwin
10-03-2003, 02:16 AM
I've found one bug so far. I use this form for a TON of things right now and really love this hack man, kick ass job :)
Anyway, I recently made one to post to a thread. It posts correctly, bumps the thread like it has a new reply and everything. But for some reason the reply count for that thread stays at 0 heheh.
Nothing major just a slight quirk :)
Mmm... that's weird, because the reply count should go up. Is this a confirmed bug?
Cyricx
10-06-2003, 05:49 PM
I'm posting two more forms today that post to threads. I'll see if it the problem replicates. Grabbed a fresh form from the zip and will let ya know. :)
Cyricx
10-15-2003, 11:21 PM
Yeah it's not updating the threads post count =/
drives fast
11-10-2003, 12:29 AM
I have messed with this thing and figured it out real good for what I am using it for right now
however....could somebody please help with adding the appropriate code into it to allow an attachment?
I want to use this for my classifieds area that I have concocted and the edits I made to newthread.php (adding in some post formatting) keep getting deleted by the poster and this form would be the perfect thing to stop them from changing the format.......but I need for them to be able to use the attachment part to add their item picture
rambling you say? whew
can anyone help with this? It is over my head...I have tried...no success
drives fast
11-11-2003, 05:17 AM
I guess nobody checks these threads anymore
zsmom
11-26-2003, 06:40 PM
OMG Erwin, this hack is awesome! Thank you thank you! I'm a newbie and got it working with no problems.
And Talisman, you rock for posting your mod app...thanks to you too!
And thank god that Proxy person apologized, I was getting irritated reading that crap.
I guess I'm just a thankful person this week. :p
I was just wondering if there is a way to show this form when a guest press "Want to register"?
Thx for help
h?kkiz
01-20-2004, 08:15 PM
Erwin... you're a genius. Thanks a lot! :)
gearshifter47
01-25-2004, 06:29 PM
Is there a way to edit this to make certain parts of the forum mandatory to answer... I notice if you just hit submit without filling anything out.. people could just spam you to death by sending blank forums lol....
Fargo
01-27-2004, 04:47 PM
Erwin,
Ill have to second the thread post count bug. Ive got that problem as well :( Users post count does not increment as expected, nor does the reply count on the thread its posted to
Odd thing is - if I delete the post created by the form - it decreases the users' post count (as expected).
Im using vbulletin 2.3.4 case that matters.
Good job on the rest - she works like a charm!
bigwest
02-10-2004, 09:05 PM
PERFECT!!!! This is just what I need!
I will install tonight! Thank you!
bigwest
02-11-2004, 04:18 PM
Oh my gosh....
I installed this last night and I love it!!!!
Customization was easy (if you have ANY knowledge of HTML) :D
Thank you so much for this incredibly useful hack!
tamarian
02-11-2004, 06:16 PM
Great hack! There's lots things that can be done with this :)
Aaron1
02-22-2004, 01:22 PM
Erwin what about a preview before submitting the form? :-)
Would be a very nice addition!
Jagang
03-03-2004, 01:50 AM
Is there any way to modify this so that when it post the form to a forum it post as a poll instead of just a thread. The poll would be like for a mod application: Accept Application - yes, no Then the other admins can vote on it.
rebelsrock06
03-04-2004, 03:56 PM
Could someone port this to VB3 ? ? ??
rebelsrock06
03-06-2004, 02:52 PM
bump
pirotess
04-08-2004, 05:41 PM
Could someone port this to VB3 ? ? ??
Erwin you thinking about porting this to VB3? I used it extensively on my board and am having some severe withdrawal.
Aaron1
04-08-2004, 06:10 PM
Hi Erwin,
I know this is old news for you, but i truly hope you are still able to help me out on this. Just recently i installed PPN/Teck's 'Last Post on Forumhome and Forumdisplay' and I allready had your 'Form to Thread' hack installed.
So i needed to set this: $lastposttitlehack = "1"; to have it both work together.
But the trouble is, my forumhome (last post title) just won't update.
I have no idea where the problem might be. I am currently running 2.3.4 board.
And if you got a moment to spare, could you please help me out on this?
Pretty please? :)
Cheers, hope you respond.
/Aaron
Wooo Can you make a Upgrade to this for VB 3 !!!
it's just what i'm looking for,,
I'm going to use it so people can signup for my LAN
xHollywoodx
05-20-2004, 03:13 PM
yeah, im looking for this to be in VB3, can you upgrade it please!!! :P
Thanks
Lee Wilde
06-06-2004, 08:45 PM
Hi Erwin. I too would be most appreciative if this hack could be updated to work with VB 3.0.1.
Also it would be great if authorised usergroups were able to attach an image. That way we could use it as a photo-classifieds system.
Erwin
06-08-2004, 10:48 AM
Wow, so many requests! :) I will update this to vB3 - I promise! I've been very busy, that's all.
PixelFx
06-08-2004, 05:59 PM
that would rock, also if you could add send file with email form, in forum that would be awesome as well.
RonH.
06-08-2004, 08:20 PM
Wow, so many requests! :) I will update this to vB3 - I promise! I've been very busy, that's all. That would definitely be great. I'd certainly like to intergrate it with my B/S/T forum.
Erwin
06-11-2004, 11:32 PM
Upgraded to vB3:
https://vborg.vbsupport.ru/showthread.php?t=66082
pdatoon
07-30-2004, 08:49 AM
can we use that to post information to a private (limited to one usergroup) section? Can we attached a file?
Mythotical
02-27-2005, 05:31 AM
Is there a way I can make it so they choose what forum/category to post the info in? I need a classifieds system and am thinking of using this as a means to do that system.
Erwin,
I am having an issue with the form installed in our Trading Post (classifieds) forum. I have inputed all the usergroup IDs that are allowed to post in there, but the usergroup I established as a PROMOTION through vB isn't being allowed to post through the form. Is this because it is an additional usergroup?
Thanks!
Marco van Herwaarden
08-11-2005, 12:38 PM
Are you using the vB2 version?
x3evolution
03-15-2007, 07:01 AM
Can someone make this work with vb 3.6.x or is there something like this already out for it ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.