Icy Phoenix

     
 

links templates x 3

Category: Template
Version Icy Phoenix 1.3 (PHP 4.x - MySQL 4.x)
Description
Guest
Wed 29 Apr, 2009 08:49
We need to be able to upload files here.

Mate,

You will have to winMerge these for the differences, and they just about drove me nuts removing 1 form error and lots of warnings.

links_body.tpl


<script type="text/javascript">
<!--
function checkForm()
{
formErrors = false;

if (document.linkdata.link_title.value == '')
{
formErrors = '{L_LINK_TITLE}';
}
else if (document.linkdata.link_url.value == 'http://')
{
formErrors = '{L_LINK_URL}';
}
else if (document.linkdata.link_logo_src.value == 'http://' )
{
formErrors = '{L_LINK_LOGO_SRC}';
}
else if (document.linkdata.link_category.value == '' )
{
formErrors = '{L_LINK_CATEGORY}';
}
else if (document.linkdata.link_desc.value == '' )
{
formErrors = '{L_LINK_DESC}';
}

if (formErrors)
{
alert('{L_PLEASE_ENTER_YOUR}' + formErrors);
return false;
}

return true;
}
//-->
</script>

<!-- INCLUDE links_leftblock.tpl -->
<td width="100%" valign="top">
{IMG_THL}{IMG_THC}<span class="forumlink">{LINK_CATEGORY}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<th>{L_LOGO}</th>
<th>{L_SITE}</th>
<th>{L_LINK_HITS}</th>
<th>{L_LINK_JOINED}</th>
</tr>
<!-- BEGIN linkrow -->
<tr>
<td valign="top" align="right" class="row1">&nbsp;{linkrow.LINK_LOGO}&nbsp;</td>
<td class="row1h{catrow.forumrow.XS_NEW} row-forum" onclick="window.location.href='{linkrow.LINK_URL}'">
<span class="forumlink"><a href="{linkrow.LINK_URL}" class="forumlink">{linkrow.LINK_TITLE}</a></span>
<br /><span class="genmed">{linkrow.LINK_DESC}</span>
</td>
<td class="row1 row-center" nowrap="nowrap"><span class="genmed">{linkrow.LINK_HITS}</span></td>
<td class="row1 row-center" nowrap="nowrap"><span class="genmed">{linkrow.LINK_JOINED}</span></td>
</tr>
<!-- END linkrow -->
<tr>
<td class="cat" align="right" nowrap="nowrap" colspan="4">
<form method="post" action="{U_SITE_LINKS}">

<span class="genmed">
{L_SELECT_SORT_METHOD}:{S_MODE_SELECT}&nbsp;{L_ORDER}:{S_ORDER_SELECT}&nbsp;
<input type="submit" name="submit" value="{L_SORT}" class="liteoption" />&nbsp;
</span>
</form>
</td>

</tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
<br />
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{PAGE_NUMBER}</span></td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="pagination">{PAGINATION}</span></td>
</tr>
</table>
</td>
</tr>
</table>

###########################



links_index.tpl




<script type="text/javascript">
<!--
function checkForm()
{
formErrors = false;

if (document.linkdata.link_title.value == '')
{
formErrors = '{L_LINK_TITLE}';
}
else if (document.linkdata.link_url.value == 'http://')
{
formErrors = '{L_LINK_URL}';
}
else if (document.linkdata.link_logo_src.value == 'http://' )
{
formErrors = '{L_LINK_LOGO_SRC}';
}
else if (document.linkdata.link_category.value == '' )
{
formErrors = '{L_LINK_CATEGORY}';
}
else if (document.linkdata.link_desc.value == '' )
{
formErrors = '{L_LINK_DESC}';
}

if (formErrors)
{
alert('{L_PLEASE_ENTER_YOUR}' + formErrors);
return false;
}

return true;
}
//-->
</script>
<!-- INCLUDE links_leftblock.tpl -->
<td width="100%" nowrap="nowrap" valign="top">
{IMG_THL}{IMG_THC}<span class="forumlink">{L_SITE_LINKS}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2" width="75%">{L_LINK_CATEGORY}</th>
<th>{L_SITE_LINKS}</th>
</tr>
<!-- BEGIN linkrow1 -->
<tr>
<td class="row1 row-center" width="30" style="padding-right:5px;" nowrap="nowrap"><img src="{FOLDER_IMG}" alt="{linkrow1.LINK_TITLE}" title="{linkrow1.LINK_TITLE}" /></td>
<td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="100%" onclick="window.location.href='{linkrow1.LINK_URL}'">
<span class="forumlink"><a href="{linkrow1.LINK_URL}" class="forumlink">{linkrow1.LINK_TITLE}</a></span>
</td>
<td class="row2 row-center-small"><span class="genmed">{linkrow1.LINK_NUMBER}</span></td>
</tr>
<!-- END linkrow1 -->
<!-- BEGIN linkrow0 -->
<tr>
<td class="row1 row-center" width="30" style="padding-right:5px;" nowrap="nowrap"><img src="{FOLDER_IMG}" alt="{linkrow0.LINK_TITLE}" title="{linkrow0.LINK_TITLE}" /></td>
<td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="100%" onclick="window.location.href='{linkrow0.LINK_URL}'">
<span class="forumlink"><a href="{linkrow0.LINK_URL}" class="forumlink">{linkrow0.LINK_TITLE}</a></span>
</td>
<td class="row2 row-center"><span class="genmed">{linkrow0.LINK_NUMBER}</span></td>
</tr>
<!-- END linkrow0 -->
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
<div align="center" style="font-family: Verdana; font-size: 10px; letter-spacing: -1px">
<br />Links MOD v1.2.2 by <a href="http://www.phpbb2.de">phpBB2.de</a> and OOHOO and <a href="http://mail.dhjh.tcc.edu.tw/~gzqbyr/">CRLin</a>.
</div>
</td>
</tr>
</table>



############################



links_leftblock.tpl


<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="190" valign="top">
{IMG_THL}{IMG_THC}<span class="forumlink">{L_LINKS}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1g row-center">
<form name="select_all" action="">
<br /><div class="gensmall"><span class="center-block"><img src="{U_SITE_LOGO}" alt="{SITENAME}" /></span><br />
{L_LINK_US_EXPLAIN}</div><br />
<textarea cols="15" rows="2" class="post" style="width:160px" readonly="readonly" name="text_area" onclick="javascript:this.form.text_area.focus();this.form.text_area.select();">{LINK_US_SYNTAX}</textarea>
</form>
</td>
</tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
<!-- BEGIN lock -->
<!-- BEGIN logout -->
{IMG_THL}{IMG_THC}<span class="forumlink">{L_LOGIN}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1g-left" width="190">
<form method="post" action="{S_LOGIN_ACTION}">
{L_LINK_REGISTER_GUEST_RULE}<br /><br />
<div class="center-block-text">
{L_USERNAME}:<br /><input class="post" type="text" name="username" size="24" maxlength="40" value="" /><br />
{L_PASSWORD}:<br /><input class="post" type="password" name="password" size="24" maxlength="32" /><br /><br />
<span class="gensmall">&nbsp;<input type="checkbox" name="autologin" />&nbsp;{L_REMEMBER_ME}&nbsp;</span><br /><br />
<input type="hidden" name="redirect" value="{U_SITE_LINKS}" /><input type="submit" name="login" class="mainoption" value="{L_LOGIN}" /><br /><br />
</div>
</form>
</td>
</tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
<!-- END logout -->

<!-- BEGIN submit -->
<form name="linkdata" method="post" action="{U_LINK_REG}">
{IMG_THL}{IMG_THC}<span class="forumlink">{L_LINK_REGISTER}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="row1g-left" style="padding:2px;">
{L_LINK_REGISTER_RULE}<br /><br />
<b>{L_LINK_TITLE}</b><br /><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width:160px" /><br /><br />
<b>{L_LINK_URL}</b><br /><input type="text" name="link_url" value="http://" size="15" maxlength="100" style="width:160px" class="post" /><br /><br />
<b>{L_LINK_LOGO_SRC}</b><br /><input type="text" size="15" maxlength="120" style="width:160px" name="link_logo_src" value="http://" class="post" /><br />[<a href="javascript: void(0)" onclick="var img_src=document.linkdata.link_logo_src.value;if(img_src=='http://' || img_src=='') img_src='images/links/no_logo88a.gif';_preview=window.open(img_src, '_preview', 'toolbar=no,width=200,height=100,top=300,left=300');">{L_PREVIEW}</a>]</span><br /><br />
<b>{L_LINK_CATEGORY}</b><br />
<select name="link_category" style="width:160px"><option value="" selected="selected">----------------</option>{LINK_CAT_OPTION}</select><br /><br />
<span><b>{L_LINK_DESC}</b></span><br /><textarea name="link_desc" cols="15" rows="4" class="post" style="width:160px"></textarea><br /><br />
</td>
</tr>
<tr><td class="cat" align="center"><input type="submit" name="addlink" value="{L_SUBMIT}" class="liteoption" /></td></tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
</form>
<!-- END submit -->
<!-- END lock -->
</td>
<td width="7" nowrap="nowrap">&nbsp;</td>




Reply
Mighty Gorgon
Thu 30 Apr, 2009 12:25
Fixed all.

Thanks.
Details Assigned To: Mighty Gorgon
Priority: Not Set
Status: Fixed
Fixed: Yes