Back to vBulletin 5.x Template Modifications

Basic Form that submits to a new Thread
Mod Version: 0, by rustyshack

vB Version: 5.5.5 Rating: (1 vote - 5.00 average) Installs: 2
Released: 22 Apr 2020 Last Update: 27 Apr 2020 Downloads: 76
Not Supported Template Edits External Content Is in Beta Stage  

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

File Type: %1$s VB5_form_example.txt (7.4 KB, 79 downloads)

Screenshots

Click image for larger version
Name:	busform.jpg
Views:	191
Size:	29.3 KB
ID:	157617  

Similar Mods

Statistics Modifications Track replies & new thread clicks/submits in Google Analytics vBulletin 4.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024