Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 PHp conditions in an XThreads Template
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #1
PHp conditions in an XThreads Template
Hi,

I have a board with several downloads forums. They are all using the same set of Xthreads templates, just with different skins. The creators of the items for download all specialise in different fields, so it makes sense to keep them apart, and they see their forum as a mini site for them within my board.

In each of the forums in the forumdisplay threadlist I have a filter set up to filter downloads based on the Xthreads fields. It would be neat to have an option in the template to "jump" to the other creators downloads forum (this is the easy bit) but it would be VERY cool if the list could be dynamic.

For example:

in creator A's forum there are links to creators B,C and D.
in creator B's forum there are links to creators A,C and D.
in creator C's forum there are links to creators A,B and D.
in creator D's forum there are links to creators A,B and C.

I tried using the below method to "hide" the extra link but no luck. It was hidden everywhere. The list is in the forumdisplay_threadlist

HTML Code
1
2
3
4
5
6
7
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">
			   	<tr><td class="thead"><strong>Game</strong></td></tr>
                                <tr><td class="fancy"></td></tr>
				<tr><td class="trow1"><a href="forumdisplay.php?fid={$fid}"><span><strong>Both</strong></span></a></td></tr>
				<if $forum['fid'] == 53 then><tr><td class="trow2"><a href="{$forumurl_q}filtertf_prefix=Sims2"><span style="color: blue;"><strong>Sims2</strong></span></a></td></tr><else>
				<tr><td class="trow2"><a href="forumdisplay.php?fid={$fid}&amp;filtertf_prefix=Sims3"><span style="color: green;"><strong>Sims3</strong></span></a></td></tr>
                         </table></if>


Is there a way to do this?



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 10-05-2010 10:05 AM by leefish.)
10-05-2010 09:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
PHp conditions in an XThreads Template - leefish - 10-05-2010 09:05 AM

 Standard Tools
Forum Jump: