vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New Thread -> Form (https://vborg.vbsupport.ru/showthread.php?t=317035)

KGodel 01-30-2015 03:48 PM

New Thread -> Form
 
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...ost-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...41#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


All times are GMT. The time now is 01:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01344 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete