oldgoat
06-21-2006, 05:17 PM
Hello to all
I have the following modification that i am currently testing on my forum site, i am asking for help in cleaning up the code syntax.
The modification uses a conditional array to display forum id links on specific pages. Also having a slight problem with the alignment of the links.
thanks to all in advance.
<!-- FORUM SPECIFIC LINK MODIFICATION -->
<if condition="in_array($GLOBALS['forumid'], array(19,25,20))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="30%" align="left">
<tr>
<td class="alt1" width="50%">
<a href="forumdisplay.php?f=55"><B><I><font color="#999966">label #1</font><I><B><WBR>
</tr>
</table>
</if>
<if condition="in_array($GLOBALS['forumid'], array(18,20))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="30%" align="center">
<tr>
<td class="alt1" width="50%">
<a href="forumdisplay.php?f=54"><B><I><font color="#999966">label #2</font><I><B><WBR>
</tr>
</table>
</if>
<if condition="in_array($GLOBALS['forumid'], array(20))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="30%" align="center">
<tr>
<td class="alt1" width="50%">
<a href="forumdisplay.php?f=28"><B><I><font color="#999966">label #3</font><I><B><WBR>
</tr>
</table>
</if>
<!-- FORUM SPECIFIC LINK MODIFICATION -->
I have the following modification that i am currently testing on my forum site, i am asking for help in cleaning up the code syntax.
The modification uses a conditional array to display forum id links on specific pages. Also having a slight problem with the alignment of the links.
thanks to all in advance.
<!-- FORUM SPECIFIC LINK MODIFICATION -->
<if condition="in_array($GLOBALS['forumid'], array(19,25,20))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="30%" align="left">
<tr>
<td class="alt1" width="50%">
<a href="forumdisplay.php?f=55"><B><I><font color="#999966">label #1</font><I><B><WBR>
</tr>
</table>
</if>
<if condition="in_array($GLOBALS['forumid'], array(18,20))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="30%" align="center">
<tr>
<td class="alt1" width="50%">
<a href="forumdisplay.php?f=54"><B><I><font color="#999966">label #2</font><I><B><WBR>
</tr>
</table>
</if>
<if condition="in_array($GLOBALS['forumid'], array(20))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="30%" align="center">
<tr>
<td class="alt1" width="50%">
<a href="forumdisplay.php?f=28"><B><I><font color="#999966">label #3</font><I><B><WBR>
</tr>
</table>
</if>
<!-- FORUM SPECIFIC LINK MODIFICATION -->