FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Using Forum Description in Thread Page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Aw: Using Forum Description in Thread Page [message #187219 is a reply to message #187218] Sun, 06 November 2016 21:08 Go to previous message
alopezie is currently offline  alopezie   Germany
Messages: 106
Registered: September 2003
Karma:
Senior Member
Okay, I solved it myself:

1) Add in src/thread_view_common.inc.t in the database call funktion "make_perms_query" (Line 42 in FUDFORUM 3.0.6)

", f.descr"

so roughly:

... SELECT f.id, f.name, f.descr, f.thread_count ...


2) Add a tag in the Thread-Page (I added in header.tmpl for all pages, so I had to add a check to just show it when there is a thread description:
{IF: !empty($frm->descr)}<div class="headtitle"><h1>{VAR: frm->name}</h1></div><div class="headdescr">{VAR: frm->descr}</div>{ENDIF} 

3) Add a tag in the TITLE section, my title is now

<title>{GVAR: FORUM_TITLE} {GVAR: TITLE_EXTRA} : {VAR: frm->descr}</title>


Alopezie.de - das Forum zum Thema Haarausfall
[Message index]
 
Read Message
Read Message
Previous Topic: User Auth and Caching proxies
Next Topic: HELP: Is there a way to reset the thread order?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 18:43:08 GMT 2024

Total time taken to generate the page: 0.03955 seconds