The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Basic Form that submits to a new Thread Details »» | |||||||||||||||||||||||||||||
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 Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
redragon29, varum |
Comments |
#2
|
|||
|
|||
Sorry.
|
#3
|
||||
|
||||
Nice idea. In my tests I ends up on mydomain/undefined ... You should use the inbuild jQuery instead of load a new one... just put the script-part to the hook footer_before_body_end ... you could use the api to create a new post instead of loading the new thread page.
|
#4
|
|||
|
|||
Quote:
Did you change the channel Ids in the file? Perhaps 23 doesn't exist on your board. The functionality I wanted was to go to the thread after submission. In my case it is always a new thread. I will try the jquery change you mentioned. It isn't the greatest script but there was no other examples or help I could find to build one. It could be tweaked or changed in many ways. The main point of it is that is strings the many fields into the one text field and formats it for submission. I tried to do this with a second PHP page in the sitebuilder but I didn't get that to work, but there is many options. There is nothing that specifically connects this script to Vbulletin functionality. Which makes it not subject to most changes in VB. My current issue is that the forms i use now will not move from VB4 to VB5. I shouldn't have that issue next time. |
#5
|
||||
|
||||
I tried on my testpage with a lot of custom-stuff implemented and I changed the channelid 23 to a 3. So it could work on a fresh installed vB. Its Ok if it is working for you... but I thought I mention because I saw you marked it as supported.
|
#6
|
|||
|
|||
Quote:
Did you change the channel Id in 2 places? Did you actually create a post? Is it the redirect to the new thread that is failing only? What part is not working for you? All of it, some of it? I don't think you are giving me a fair shake to even support it. Is there any sort of error you can point me too? Not much for me to go by. But it sounds like you know way more than me anyways. I can mark it as unsupported and will because on my 6 year old forum it works fine on a new page. Is there any console errors in the script or anything like that? I specifically say i am supporting the basic function and structure of the basic form. In all my testing it works fine on a stand alone standard html page placed in the VB5 main folder. Or when creating it in a new page in the site builder. My whole intention is to provide an example others could build on. I will just delete the stupid thing, sorry for trying to help. |
#7
|
||||
|
||||
Like I wrote. The idea is good and you should leave it here for others.
|
#8
|
|||
|
|||
But why won't you give me information that i can help you make it work.
You didn't answer any of my questions and just made my mod seem like crap. thanks for that! Way to encourage developers for the platform. On most other support requests users actually provide error and feedback. You should just delete the comments about it not working unless you are prepared to work through it. Plus you don't seem like anyone who is actually interested in implementing it anyways. |
#9
|
|||
|
|||
What browser are you using, what platform are you using?
Are there any errors in the JS console or otherwise. Did it create a new thread or not? Did you change the channel id in two places. Is there anything in your page that is custom that would affect it? If there is no jquery errors or conflicts, what error is there? |
#10
|
||||
|
||||
Quote:
My vB-Version is 5.6.1 Alpha 4 It is not give me any error (not in the console or php-errors). Most users here are to lazy to install a mod to try if it works in new versions, so I want to tell you to go a secure way and do not support a mod which works for you but perhaps not for others. I looked a little deeper because I will not named a jerk which is not helping! The form-action attribute you set is "create-content/text" and the ajaxForm url is "this.href" which override the form-action attribute "create-content/text". This is not correct in both cases, because you need to set the ajax-baseurl!!! Change your js-script url to url: vBulletin.getAjaxBaseurl() + '/create-content/text', console-answer: Object { retUrl: "https://mydomain.de/forum/main-forum/782-this-is-a-test-review", nodeId: 782 } Thats it... content is created and you will be redirected to it. You have to much places code have to be changed and it is a little unstructured but I did not say crap! Wonder that it is working for you, but could be the js-changes in version 5.6.0 and 5.6.1 ... Glad I could help! |
Благодарность от: | ||
megabink |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|