vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News (https://vborg.vbsupport.ru/showthread.php?t=53269)

Erwin 05-22-2003 10:00 PM

FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News
 
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! ;)

[high]* MetroSports82 licks install![/high]

Hobbes 05-23-2003 04:10 AM

AWESOME!!!!!!!!!!

THANKS ERWIN!!!!! YAY!!

/me installs!!!!!

Intex 05-23-2003 04:30 AM

Very cool hack Erwin.

[high]* Intex will install later :cool:.[/high]

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

Quote:

Today at 03:33 PM DarkSSJ3 said this in Post #11
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:

PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//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!

xs1 05-23-2003 05:31 AM

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

Quote:

Today at 04:31 PM xs1 said this in Post #18
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

Quote:

Today at 06:07 PM corsacrazy said this in Post #23
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

Quote:

Care to share what you are using this for? [/B]
https://vborg.vbsupport.ru/showthrea...856#post398856

;)

Erwin 05-23-2003 07:42 AM

Quote:

Today at 06:32 PM Smoothie said this in Post #27
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

Quote:

Yesterday at 08:44 PM Boofo said this in Post #34
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

Quote:

Yesterday at 11:44 PM Marulatree said this in Post #35
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

[QUOTE]Today at 03:18 PM Erwin said this in Post #37
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 ;)


All times are GMT. The time now is 04:46 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
  • Page Generation 0.01425 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete