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

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

Version: 3.0.3 Rating:
Released: 06-11-2004 Last Update: Never Installs: 214
 
No support by the author.

FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - Totally CUSTOMIZABLE FORMS
Version 1.6 for vBulletin 3.x.x by Dr Erwin Loh

Features:

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. Create a new poll in the new thread with options of your choice
3. Posted as a reply in an existing thread of your choice
4. PMed to you or someone else
5. Emailed to an email address you specify
6. Choose to redirect to the post, thread or forum, or a custom thank you message
7. Choose to redirect to editpost to upload attachments

Or any combination or all of the above?

Well, this is the hack for you!

You can use this for:

1) Moderator Applications
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 form.php (you add questions, options etc. in the PHP file itself), uploading it, and then adding 2 templates.

The beauty of this hack is that once you have added the 2 templates, to make a new form, all you need to do is copy the form.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.

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.

Also:
- You can set the usergroups you want access to this form.
- Depending on your forum permissions, if the new thread is in a public forum, members can reply to it. This hack allows a form to submit the new thread or post wherever you want it to go.
- Force the user to answer all questions.


INSTALLATION


Easy - takes only a few minutes:

1. Add the 2 templates.

2. Edit form.php - the instructions are all inside the PHP file itself, in the top half. Follow the instructions carefully!

3. Upload form.php

Just link to form1.php eg. http://www.yourforum.com/forums/form.php

Done!

Use this hack to make as many forms as you like!

Enjoy!


Updates:

Version 1.1 - Option to force user to answer all questions.
Version 1.2 - Thread count and lastposter information now updated if form is sent to existing thread.
Version 1.3 - ADDED CREATE POLL OPTION!
Version 1.4 - Fixed bug with Form-to-thread code
Version 1.5 - Major update:
- fixed bug where thread count not updated when form to forum
- fixed default posting to allow smilies and sigs when reply to thread
- added templates to cache (saves 2 queries)
- added option to change thank you message
- added options to redirect to post, thread or forum when submit
Version 1.6 - Choose to redirect to editpost to upload attachments

Screenshot is an example of a form - the form title and questions are customizable:

Show Your Support

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

Comments
  #407  
Old 05-02-2005, 03:38 PM
SirJonathan SirJonathan is offline
 
Join Date: Oct 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've had a couple more problems with this and its quite discouraging for the membership.. any ideas on why it would not actually be posting when people submit?

-Jonathan
Reply With Quote
  #408  
Old 05-03-2005, 03:21 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SirJonathan
I've had a couple more problems with this and its quite discouraging for the membership.. any ideas on why it would not actually be posting when people submit?

-Jonathan
It could be a million things. When you added questions, did you add the corresponding variables? You need to have a basic grasp of PHP to add more questions.
Reply With Quote
  #409  
Old 05-04-2005, 06:59 PM
SirJonathan SirJonathan is offline
 
Join Date: Oct 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes . I added all the variables and for most people it works great. There are just some who have filled it all out, post, and it never shows up in the forum.

I've worked on the permissions and I'm pretty sure its not that.. You are required to register before you access the form. Can you think of any reasons why it would work for most people and then not for some?

-Jonathan
Reply With Quote
  #410  
Old 05-06-2005, 02:39 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Erwin

Great hack!

I hope you can help me :-)

Is there anyway to modify the hack so that I can have 3 form fields for the TITLE? I dont actually need to make use of the full hack as all I am trying to do it 'force' people to add certain things in the titles of one particular forum (which uses a seperate style so no probs in modifying it's templates).

so for eg I could have 3:

Field 1 [item for sale]: Grandfather clock

Field 2 [price]: ?400

Field 3 [city]: London

then the title for that thread would read: Grandfather clock ?400 London

In the threadbit template I did try to copy/duplicate:

PHP Code:
<!-- subject field -->
        <
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
        <
tr>
            <
td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </
tr>
        <
tr>
            <
td><input type="text" class="bginput" name="subject" value="$subjectsize="40" maxlength="85" tabindex="1" /></td>
            <
td>&nbsp;&nbsp;</td>
            <
td><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/></td>        </tr>
        </
table>
        <!-- / 
subject field --> 
but it only 'took' what was placed in the second field :-(

Would really appreciate some help on this..
Thanks in advance.
Reply With Quote
  #411  
Old 05-07-2005, 06:08 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Razasharp,
you need to input 3 fields - lets name them subject1, subject2 and subject3.
Then you'll need to edit the php script which processes your forum to set the subject
PHP Code:
$subject $subject1 " " $subject2 " " $subject3
I would put some validation in there, too, to make sure they entered all 3 fields.
Reply With Quote
  #412  
Old 05-07-2005, 08:50 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin, I'm trying to integrate the standard vB posting message box with smilies and BBcode stuff etc.
I've had a stab based on the goings on in newthread.php and the newthread template, and have nearly got it going.
In the template I added $messagearea.
And in my form.php I added
PHP Code:
$phrasegroups = array('threadmanage''posting');
$specialtemplates = array(
    
'bbcodecache'
);
require_once(
'./includes/functions_newpost.php');
require_once(
'./includes/functions_editor.php');
require_once(
'./includes/functions_bigthree.php'); 
near the top and at the bottom
PHP Code:
construct_edit_toolbar($newpost['message'], 0$foruminfo['forumid'], $foruminfo['allowsmilies']); 
just before
PHP Code:
eval('print_output("' fetch_template('form_new') . '");'); 
The only problem is that the buttons (e.g. the B (bold) button) don't highlight when mouse overed and when clicking them, nothing happens.
Submitting the forum works ok using $message.
Can you help at all?
Reply With Quote
  #413  
Old 05-10-2005, 02:31 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spinball
Erwin, I'm trying to integrate the standard vB posting message box with smilies and BBcode stuff etc.
I've had a stab based on the goings on in newthread.php and the newthread template, and have nearly got it going.
In the template I added $messagearea.
And in my form.php I added
PHP Code:
$phrasegroups = array('threadmanage''posting');
$specialtemplates = array(
    
'bbcodecache'
);
require_once(
'./includes/functions_newpost.php');
require_once(
'./includes/functions_editor.php');
require_once(
'./includes/functions_bigthree.php'); 
near the top and at the bottom
PHP Code:
construct_edit_toolbar($newpost['message'], 0$foruminfo['forumid'], $foruminfo['allowsmilies']); 
just before
PHP Code:
eval('print_output("' fetch_template('form_new') . '");'); 
The only problem is that the buttons (e.g. the B (bold) button) don't highlight when mouse overed and when clicking them, nothing happens.
Submitting the forum works ok using $message.
Can you help at all?
Ahhh... I wish I had time to look into that, but I don't. It's to do with the javascript files - make sure they are included. And they are being referred to correctly.
Reply With Quote
  #414  
Old 05-13-2005, 03:58 AM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We are using the standard form.txt but our submit and reset buttons won't center. No matter what we try to do they stay left aligned Is there anyway that we can fix this?
Reply With Quote
  #415  
Old 05-18-2005, 11:51 AM
specting specting is offline
 
Join Date: May 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Guys:

I'm a starting user that need to instal this hack and have several questions:

- I have add the templates but I don't not How can I applied this templates to one Sub-forum? We have several subjects and each sub-forum has a diferent forms.

- In other hand we have several kinds of users: Administrator, moderator and standar user. We wnat that this form will be only applied to the standar users. How might I configurated the privileges?

Thank you very much fro your help in advance.

Javi.
Reply With Quote
  #416  
Old 06-02-2005, 09:21 AM
DogGunn DogGunn is offline
 
Join Date: May 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just get a blank screen.. Help?
Reply With Quote
  #417  
Old 06-02-2005, 12:47 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DogGunn
I just get a blank screen.. Help?
Double check your edits and use a good editor.
Reply With Quote
  #418  
Old 06-02-2005, 01:33 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this may be the answer to my questions.

Can this hack incorporate a photo upload requirement as well?
Reply With Quote
  #419  
Old 06-02-2005, 11:29 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mustang_lex
I think this may be the answer to my questions.

Can this hack incorporate a photo upload requirement as well?
There is a way to do it where you can add attachments via an edit.
Reply With Quote
  #420  
Old 06-03-2005, 09:17 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. cool. how? :nervous:
Reply With Quote
  #421  
Old 06-04-2005, 01:13 AM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't get it i got a blank page. :ermm:
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 01:44 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.13722 seconds
  • Memory Usage 2,396KB
  • Queries Executed 30 (?)
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
  • (8)bbcode_php
  • (4)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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_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