vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Does SHOWTHREAD know which forum the thread is in? (https://vborg.vbsupport.ru/showthread.php?t=297219)

darnoldy 04-15-2013 06:30 AM

Does SHOWTHREAD know which forum the thread is in?
 
Folks-

I want to display the name of the forum that contains the thread at the top of the showthread display.

I found $threadinfo[threadid]. Is there something like $threadinfo[forumname]?

--don

squidsk 04-15-2013 11:53 AM

Quote:

Originally Posted by darnoldy (Post 2416436)
Folks-

I want to display the name of the forum that contains the thread at the top of the showthread display.

I found $threadinfo[threadid]. Is there something like $threadinfo[forumname]?

--don

It already displays the thread title, both as the thread title and as part of the breadcrumb. See the top of this page and the top of your browser or browser tab.

darnoldy 04-15-2013 02:18 PM

Yes, it shows the thread title...I'm interested in the FORUM title (in the case of this thread, vB3 Programming Discussions").

While that does show up on this page, it shows up in the breadcrumb and the forum jump, both of which are parsed by different scripts.

kh99 04-15-2013 02:34 PM

Try using $forumTitle, it's a variable that's used for setting the forum title for the breadcrumb.

squidsk 04-15-2013 03:08 PM

Quote:

Originally Posted by darnoldy (Post 2416493)
Yes, it shows the thread title...I'm interested in the FORUM title (in the case of this thread, vB3 Programming Discussions").

While that does show up on this page, it shows up in the breadcrumb and the forum jump, both of which are parsed by different scripts.

Sorry, your right I was giving thread title, but the point still stands for forum title. While the parts of the page are parsed from different templates, each of those templates is still called from the same script (showthread.php).

darnoldy 04-16-2013 03:44 AM

Thanks, folks!


All times are GMT. The time now is 09:28 PM.

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.04420 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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