View Full Version : New Thread -> Form
KGodel
01-30-2015, 03:48 PM
Hey all. I have a forum on my message boards (several actually) where there is no-posting allowed, instead the user must submit a form which includes all the information for whatever format we use and then that posts the thread. I was wondering if there was an easy way to change the "NEW THREAD" button/link in these forums to direct to the form instead? Would I have to do a template edit to check for the forum we were in and display an alternate button? If so, how would I pass the forum we're in to the template? My guess is that there is already this variable available, I am just clueless. If there is an easier way let me know! Thanks guys.
John Lester
01-31-2015, 02:18 AM
Read through this thread and see if it works for you.
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/410987-change-link-to-post-new-thread
nerbert
01-31-2015, 02:25 AM
What about a redirect in newthread.php that redirects depending on the forum id?
John Lester
01-31-2015, 02:40 AM
This post of the thread I linked too is easier (i.m.o.) http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/410987-change-link-to-post-new-thread?p=3539241#post3539241
nerbert
01-31-2015, 02:54 AM
But I hate editing templates!
It would work though. It would be a bit messy for several forums, I don't remember if you can use in_array() in a template conditional.
KGodel
01-31-2015, 02:57 AM
I can pass whatever values I need via a plugin sending the value to the template can't I?
nerbert
01-31-2015, 03:12 AM
Yes I think you would have all the info from global.php. Either $vbulletin->foruminfo or $foruminfo should get all you would need. for the forum. And of course $vbulletin->userinfo
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.