Basic Form that submits to a new Thread
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:
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
VB5_form_example.txt (7.4 KB, 79 downloads) Screenshots |
Similar Mods
Statistics Modifications Track replies & new thread clicks/submits in Google Analytics | vBulletin 4.x Template Modifications |