MarkFoster
10-27-2009, 04:07 PM
Okay, so I basically want to create an if for one of my custom pages. My custom page takes infromation from threads. Basically the link looks like this: http://www.mysite.com/forums/news.php?id=2058
The last four numbers is the thread id. The infromation from the thread is displayed through this template:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead"><font size="4" face="Verdana">$dateposted - Posted by $thread[postusername]</font></td>
</tr>
<tr>
<td class="alt1"><div class="navbar_notice"> <!-- icon and title -->
<div class="smallfont">
<if condition="$show['threadicon']"><img class="inlineimg" src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></if>
<strong>$thread[title]</strong>
</div>
<hr size="1" style="color:#000000; background-color:#000000" />
<!-- / icon and title -->
<!-- message -->
<div id="post_message_$thread[threadid]">$message</div>
<!-- / message --></div></td>
</tr>
</table>
<br />
$footer
</body>
</html>
I would like to crete some kind off IF which would allow me to add something for every thread ID. For example: If the thread ID in the url is 2058 then use this code "some code here".
So it would basically have something extra like an extra line of text if the thread Id in the url would be something specific, how can I do this?
The last four numbers is the thread id. The infromation from the thread is displayed through this template:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead"><font size="4" face="Verdana">$dateposted - Posted by $thread[postusername]</font></td>
</tr>
<tr>
<td class="alt1"><div class="navbar_notice"> <!-- icon and title -->
<div class="smallfont">
<if condition="$show['threadicon']"><img class="inlineimg" src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></if>
<strong>$thread[title]</strong>
</div>
<hr size="1" style="color:#000000; background-color:#000000" />
<!-- / icon and title -->
<!-- message -->
<div id="post_message_$thread[threadid]">$message</div>
<!-- / message --></div></td>
</tr>
</table>
<br />
$footer
</body>
</html>
I would like to crete some kind off IF which would allow me to add something for every thread ID. For example: If the thread ID in the url is 2058 then use this code "some code here".
So it would basically have something extra like an extra line of text if the thread Id in the url would be something specific, how can I do this?