PDA

View Full Version : Does SHOWTHREAD know which forum the thread is in?


darnoldy
04-15-2013, 06:30 AM
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
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
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!