Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Is it possible to do a url check?
Ukshep Offline
Junior Member
**
Posts: 9
Joined: Oct 2014
Post: #1
Is it possible to do a url check?
I have a single threadlist forum, with 2 hidden forums and when i am in a thread in the hidden forums i can click the header image and can redirect to the forum threadlist of the thread i was viewing, using the code below.

BUT if i am already viewing the hidden forum threadslist and press the header image it takes me back to the main threadlist away from the hidden forum, So is it possible to use some code so that if im viewing the threadlist of fid-9 i can press the header image and the page will refresh to fid-9 etc etc

Code:
1
2
3
4
5
6
7
8
9
10
11
<if $fid == 8 then>
<div class="logo"><a href="{$mybb->settings['bburl']}/forumdisplay.php?fid=8"><img src="images/elegant/Header2.png"   title="{$mybb->settings['bbname']}" /></div></a></div>

<elseif $fid == 9 then>
<div class="logo"><a href="{$mybb->settings['bburl']}/forumdisplay.php?fid=9"><img src="images/elegant/Header2.png"   title="{$mybb->settings['bbname']}" /></div></a></div>

<else />

<div class="logo"><a href="{$mybb->settings['bburl']}"><img src="images/elegant/Header2.png"  title="{$mybb->settings['bbname']}" /></div></a></div>

</if>

11-15-2014 08:38 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Is it possible to do a url check? - Ukshep - 11-15-2014 08:38 AM

 Standard Tools
Forum Jump: