Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Basic Form that submits to a new Thread Details »»
Basic Form that submits to a new Thread
Version: 0, by rustyshack rustyshack is offline
Developer Last Online: Jan 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 5.5.5 Rating:
Released: 04-20-2020 Last Update: 04-26-2020 Installs: 2
Template Edits
Is in Beta Stage  
No support by the author.

After upgrading my forums to VB5 i was in need of a Review form for my board which I had on VB4. Unfortunately the Easy Forms plugin was disabled for VB5 so I worked to create my own form. As I have seen many saying they would like some type of form like this also, which is why I am posting this here. Also I want to help with the viability of the VB5 platorm.

Installation Instructions:
  1. Open the text file and change the ChannelID in two places in the file to the Channel you want the thread to go in. One spot is a <DIV> at the top of the form. The other is a hidden field at the end of the forum. You can search for '23' which is the current Channel value.
  2. Create a custom template in Style Manager.
  3. Paste the entire attached txt file into that template.
  4. Save the template and record the name of the template for later use.
  5. Go to Site Builder at the top of the forum and choose "New Page.
  6. This will create a new page and you can choose the "Display Template Module".
  7. Drag the Display Template Module into the first slot on your new page.
  8. Click the pencil icon to configure the module.
  9. Enter the Page name and the name of the template, then save the module.
  10. Save and exit out of the page builder.
  11. Go to your new page and see the form. It should work with no other changes.

The form can be tailored to your needs you can add fields or change fields, all you need is some html and Javascript knowledge but it is very easy to change.
There is also a validation function you can extend to put more or different validation on fields. Currently it only checks for required fields.

This uses the CreateContent API which has required fields of "title" and "text".
The 'string_yy() function takes all the field values, format them with BBcode and strings it all into text form field. The form once submitted creates a post in the Channel you specify in the script.

This is an independent template that does not interfere with any other functions outside that page. It should work on all versions of VB5 although I have only tested in on 5.5.4 and 5.5.5

There is probably other and better ways to do this or improve this script.
There is no flood control or captcha, so best only make this available to registered members unless you can implement some protections against multiple submissions.

Update suggestion or modifications welcome.
The intention is that this is a template that you change to fit your needs.
So i can only support what i have created, you would be reponsible for changing the form and working out any bugs that arise from your changes.

It does not work without including the Jquery js from a CDN.
It doesn't seem to work with the native forum jquery but this also does not appear to conflict with anything.

The standard function is that it creates a new thread then redirects you to the new thread.
This could be change to take some other action.

I now works great on 2 of my VB5 forums with no changes in a basic new page.

Download Now

File Type: txt VB5_form_example.txt (7.4 KB, 73 views)

Screenshots

File Type: jpg busform.jpg (29.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
redragon29, varum

Comments
  #12  
Old 04-25-2020, 04:38 PM
D0RKFI$H D0RKFI$H is offline
 
Join Date: Sep 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a use for it, can you PM me the details?
Reply With Quote
  #13  
Old 04-27-2020, 02:07 PM
redragon29 redragon29 is offline
 
Join Date: Dec 2019
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice to see someone working here!
good job.
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 09:03 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.06982 seconds
  • Memory Usage 2,238KB
  • Queries Executed 20 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (2)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete