Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News Details »»
FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-22-2003 Last Update: Never Installs: 68
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 06-14-2003, 02:46 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:36 PM Pollo said this in Post #119
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.
Reply With Quote
  #123  
Old 06-14-2003, 02:57 AM
Pollo Pollo is offline
 
Join Date: Jul 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #124  
Old 06-14-2003, 03:07 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that's right.
Reply With Quote
  #125  
Old 06-14-2003, 04:01 AM
tomjinx1 tomjinx1 is offline
 
Join Date: Sep 2002
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #126  
Old 06-14-2003, 04:34 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:01 PM tomjinx1 said this in Post #124
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.
Reply With Quote
  #127  
Old 06-23-2003, 01:10 PM
Conundrum9 Conundrum9 is offline
 
Join Date: Feb 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #128  
Old 07-09-2003, 06:36 PM
proxyMX's Avatar
proxyMX proxyMX is offline
 
Join Date: Jun 2002
Location: Seven of Nine is hot! :do
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #129  
Old 07-09-2003, 07:12 PM
proxyMX's Avatar
proxyMX proxyMX is offline
 
Join Date: Jun 2002
Location: Seven of Nine is hot! :do
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #130  
Old 07-09-2003, 07:16 PM
proxyMX's Avatar
proxyMX proxyMX is offline
 
Join Date: Jun 2002
Location: Seven of Nine is hot! :do
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what do i have to do to get my form to display properly

http://boo.hosting-talk.net/submitmovie.php
Reply With Quote
  #131  
Old 07-09-2003, 07:34 PM
proxyMX's Avatar
proxyMX proxyMX is offline
 
Join Date: Jun 2002
Location: Seven of Nine is hot! :do
Posts: 294
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04972 seconds
  • Memory Usage 2,318KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete