Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 custom header link only visible on threadlist
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: custom header link only visible on threadlist
(03-05-2011 05:23 AM)Marc Wrote:  Yes it is the same link on those pages. What script are you referring to?

Something like this:

Code:
<if THIS_SCRIPT == 'forumdisplay.php' || THIS_SCRIPT == 'showthread.php' then>
Your link here
</if>

I think you can use $current_page variable too.

(03-05-2011 05:23 AM)Marc Wrote:  Actually I want to use it in the header, so the variable you mention is not defined at that stage, I guess.
If you want to put it in header template, unfortunately, yes, the $thread variable is not defined yet. But maybe you can use $style variable to get the forum id, and use forum cache to get the forum name.

(This post was last modified: 03-05-2011 05:56 AM by RateU.)
03-05-2011 05:50 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: custom header link only visible on threadlist - RateU - 03-05-2011 05:50 AM

 Standard Tools
Forum Jump: