Webmastersite.net
Register Log In

link type suddenly causing probs

Comments on link type suddenly causing probs

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jan 03, 2006 - 6:28 AM:

One of the link types I have has suddenly gone weird! Type is called club. All links previously using this type are fine. However, when I try to add a new link using club it disrupts the displaylinks.tpl. Message at top reads:

This is what the problematic area of the template looks like during parsing:
Line #119: <?php } else { ?>
Line #120: <b>The Kennel Club</b><?php } ?>
Line #121: <a href="edit.php?action=link&field=id&condition=equals&fieldvalue=78"><img src="templates/default/images/edit.gif"></a>
Line #122: <br>
Line #123: <if ><?php } ?>
Line #124: <?php if ("") { ?> | <a href="mailto:?subject=Club Enquiry via TheDogScene.co.uk">Email</a><?php } ?>


This does not happen if I edit (or submit new) type to one of the other link types, only in "club".

You can see this problem at www.thedogscene.co.uk/links...n=displaycat&catid=130

But this page is fine, it has an older link (type club) www.thedogscene.co.uk/links...ion=displaycat&catid=3
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 03, 2006 - 6:02 PM:

You're using this in your template:
<!-- BEGIN CLUB LINKS -->
<td {LINKWIDTH} valign="top" >
<IF {LINKURL}>
<a href="{TRACKLINKURL}" {EXTERNALLINKS}><b>{LINKTITLE}</b></a>

<OTHERWISE>
<b>{LINKTITLE}</b></IF>
 {LINKADMIN}
<br>
<if {LINKCONTACT}>{LINKCONTACT}</IF>
<IF {LINKEMAIL2}> | <a href="mailto:{LINKEMAIL2}?subject=Club Enquiry via TheDogScene.co.uk">Email</a></IF>
<IF {LINKTEL}> | Tel: {LINKTEL}</IF><br>
<font size="1">
<IF {SWITCH_REPORTS}><a href="report.php?id={LINKID}">Report this link</a> | Hits Out: {LINKHITS} | </IF>Submitted {LINKDATE}
<IF {LINKLASTEDIT} is greater than {LINKTIME}>, edited {LINKLASTEDITDATE}</IF>
</font></td>
<!-- END CLUB LINKS -->


The only unusual thing I see in there is "<if "... it should be <IF, not sure if it handles it in lowercase or not.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.