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: #3
RE: PHp conditions in an XThreads Template
Yes, I am using php in templates. Its not that it gives an error, it just hides the link

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'] == 7 then><tr><td class="trow2"><a href="{$forumurl_q}filtertf_prefix=Sims2"><span style="color: green;"><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: blue;"><strong>Sims3</strong></span></a></td></tr></if>
</table>



So in the code above, if I was in Forum 7 I would expect to see the link to sims2 and sims3. I just see the sims3 link. If I go to another forum using the same templates I still only see the sims 3 link. Is it because I am in forumdisplay?



[Image: leelink.gif]
MYBB1.6 & XThreads
10-05-2010 12:02 PM
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
RE: PHp conditions in an XThreads Template - leefish - 10-05-2010 12:02 PM

 Standard Tools
Forum Jump: