I'm going nuts and hoping somone can help. I have a simple template with regular and recip links that displays jujst fine. But anytime I go to add a TOPLIST to the template I get the error
"Warning: You have a link type in your template which is not listed in your settings. It is being ignored. The link type TOPLIST 5 -->"
It doesnt matter what type of toplist it is (newest, most hits)
Funny thing is if I remove the code for displaying the regular and recip links and leave only the TOPLIST code, the TOPLIST will display correctly.
I seem to have fixed the problem. In the past I have always edited the tpl files on my local machine and then ftp'd them to the templates/default folder. Just out of curiousity used the templates edior in WSN Admin and the page displayed correctly.
I am using a different machine this week with a FTP client I have never used before (and hate). The client may have some settings messed up somewhere.
Comments on Parse error, but why
Usergroup: Customer
Joined: Dec 07, 2005
Total Topics: 5
Total Comments: 10
Hi all,
I'm going nuts and hoping somone can help. I have a simple template with regular and recip links that displays jujst fine. But anytime I go to add a TOPLIST to the template I get the error
"Warning: You have a link type in your template which is not listed in your settings. It is being ignored. The link type TOPLIST 5 -->"
It doesnt matter what type of toplist it is (newest, most hits)
Funny thing is if I remove the code for displaying the regular and recip links and leave only the TOPLIST code, the TOPLIST will display correctly.
Any help is greatly appreciated.
Fairago
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well, I can't guess when you don't post the template. Most likely you haven't given it a unique number though.
Usergroup: Customer
Joined: Dec 07, 2005
Total Topics: 5
Total Comments: 10
Here is my template.
Again, If I remove the TOPLIST code it displays fine. Otherwise it returns an error.
The site can be seen at http://www.teachertipsheaven.com
Thanks!
-----------------------------------------------------------
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="185" height="136" valign="top" scope="row"><div align="center"><? include("left_insert.php") ?>
<p class="style17"><br>
<br>
</p>
</div></th><td width="4" bgcolor="#CCCCCC"> </td>
<td width="20"> </td>
<td align="LEFT" valign="top">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th height="24" align="center" valign="middle" bgcolor="ebebeb" scope="row"><form action="search.php?filled=1&condition={DEFAULTSEARCHTYPE}" method="post">
<span class="style12"><br />
Search the Directory:</span>
<input type="text" name="search" size="{STANDARDSIZE}" />
<img src="/images/SPACER.GIF" width="10" />
<select name="whichtype">
<option value="links">search links</option>
<option value="all">search all</option>
</select>
<img src="/images/SPACER.GIF" width="10" />
<input name="submit" type="submit" class="button" value="Search" />
</form></th>
</tr>
</table>
<br><!-- BEGIN TOPLIST 5 -->
<CONFIG>links,rand(),2,ascending,type='sponsored',,,0,0,0,0</CONFIG>
{LINKTITLE}
<!-- END TOPLIST 5 -->
<br> <br>
<hr>
<span class="style19"><strong>REGULAR LISTINGS:</strong></span><span class="style9"><strong><img src="/images/SPACER.GIF" width="15" /></strong></span><span class="style20">(<a href="suggest.php?action=addlink&catid=%7BCATID%7D">Add
my Site!</a>)</span> <br>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="10">
<!-- BEGIN RECIP LINKS -->
<tr>
<td valign="TOP"><IF {THISMEMBERISREGISTERED} and {THISMEMBERID} is {LINKOWNERID}><IF {SPONSORUSELINK} is yes></IF></IF><a href="http://www.teachertipsheaven.com/sponsor.php"><img src="images/star.gif" width="13" height="14" border="0"></a><IF {LINKURL}><span class="style16"><a href="{TRACKLINKURL}" class="reciplink" {externallinks}><strong>
<span class="style16">{LINKTITLE}</span></strong></a></span></IF>
<IF {LINKURL}> <OTHERWISE> {LINKTITLE}</IF> {LINKNEW} {LINKADMIN}<img src="/images/SPACER.GIF" width="15" height="8" /><strong><font size="2">Rating:</font></strong>
<IF {LINKRATINGVOTES} is greater than 0>{LINKSTARS} <strong><font size="2">based
on {LINKVOTES} votes</font></strong> <OTHERWISE> <font size="2"><a href="vote.php?id={LINKID}">Be
the first to rate this resource! </a></font></IF> <img src="/images/SPACER.GIF" width="10" height="8"><span class="style17">[</span><a href="report.php?id={LINKID}"><span class="style10">Report</span></a><span class="style17">]</span>
<br /> <span class="style17">{LINKDESCRIPTION}</span><br />
<a href="vote.php?id={LINKID}"> <span class="style9">Rate this Link!</span></a>
| <a href="javascript:window.external.AddFavorite('{LINKURL}', '{LINKBOOKMARKTITLE}')"
class="style9">Bookmark</span></a> | <a href="comments.php?id={LINKID}"><span class="style9">Read/Write
Reviews </span><span class="style9">( <IF {LINKCOMMENTSREAD}>{LINKNUMCOMMENTS}</IF> <IF {LINKCOMMENTSREAD}>
<OTHERWISE> <b>{LINKNUMCOMMENTS}</b></IF> )</span></a><br /> <IF {THISMEMBERISREGISTERED} and {THISMEMBERID} is {LINKOWNERID}>
<IF {SWITCH_RATINGS}><br />
<a href="index.php?action=getvotingcode&id=%7BLINKID%7D">Get voting
code to place on your site</a> </IF> <IF {SPONSORUSELINK} is yes><br />
<a href="link.php?action=sponsor&id=%7BLINKID%7D">Move your link to
the top: sponsor this category</a></IF> </IF>
<!-- END RECIP LINKS -->
</td>
</tr>
</table>
<IF {REGULARTOTAL}>
<table width="100%" border="0" cellspacing="10" cellpadding="0"><!-- BEGIN REGULAR LINKS -->
<tr>
<td valign="TOP"><IF {LINKURL}> <a href="{TRACKLINKURL}" {EXTERNALLINKS}><strong><span class="style16">{LINKTITLE}</span></strong></a>
<OTHERWISE> {LINKTITLE}</IF> {LINKNEW} {LINKISUPDATED} {LINKADMIN}<img src="/images/SPACER.GIF" width="15" height="8"><strong><font size="2">Rating:</font></strong>
<IF {LINKRATINGVOTES} is greater than 0>{LINKSTARS} <strong><font size="2">based
on {LINKVOTES} votes</font></strong> <OTHERWISE><font size="2"><a href="vote.php?id={LINKID}">Be
the first to rate this resource! </a></font></IF><img src="/images/SPACER.GIF" width="10" height="8"><span class="style17">[</span><span class="style17">[</span><a href="vote.php?id={LINKID}"><span class="style10">Rate!</span></a><span class="style17">]</span>
<img src="/images/SPACER.GIF" width="10" height="8"><span class="style17">[</span><a href="comments.php?id={LINKID}"><span class="style10">Print!!</span></a><span class="style17">]</span> <br>
<span class="style17"> {LINKDESCRIPTION}</span><br><a href="vote.php?id={LINKID}"> <span class="style9">Rate this Link!</span></a> | <a href="javascript:window.external.AddFavorite('{LINKURL}', '{LINKBOOKMARKTITLE}')"
class="style9">Bookmark</span></a> | <a href="comments.php?id={LINKID}"><span class="style9">Read/Write
Reviews ( <IF {LINKCOMMENTSREAD}>{LINKNUMCOMMENTS}</IF> <IF {LINKCOMMENTSREAD}>
<OTHERWISE> <b>{LINKNUMCOMMENTS}</b></IF> )</span></a><br>
<IF {THISMEMBERISREGISTERED} and {THISMEMBERID} is {LINKOWNERID}><IF {SWITCH_RATINGS}><br>
<a href="index.php?action=getvotingcode&id={LINKID}">Get voting code to place on your site</a> </IF>
<IF {SPONSORUSELINK} is yes><br><a href="link.php?action=sponsor&id={LINKID}">Move your link to the top: sponsor this category</a></IF>
</IF></td>
</tr>
<!-- END REGULAR LINKS --></table>
<IF {MULTIPAGE}>
<p>Page: {PREVIOUS} <b>{CURRENTPAGE}</b> {NEXT}</p>
</IF></IF>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="20"> </td>
<td width="3" bgcolor="#CCCCCC"> </td>
<td width="185" valign="top"><div align="center"><br>
<IF {MEMBERISREGISTERED} and {SWITCH_SUBSCRIPTIONS}> <IF {CATSUBSCRIBERS} contains , {MEMBERID}, >
<img src="templates/default/images/bullet.gif" alt="bullet" class="bullet">
<a href="index.php?action=displaycat&catid={CATID}&todo=subscribe">
<span class="style16">Unsubscribe From Category</span></a> <OTHERWISE>
<img src="templates/default/images/bullet.gif" alt="bullet" class="bullet">
<a href="index.php?action=displaycat&catid={CATID}&todo=subscribe"><span class="style16">Subscribe
to Category</span></a> </IF> <br>
<br>
<? include("rt_insert.php") ?>
</IF> </div> </td>
</tr>
</table>
Usergroup: Customer
Joined: Dec 07, 2005
Total Topics: 5
Total Comments: 10
I seem to have fixed the problem. In the past I have always edited the tpl files on my local machine and then ftp'd them to the templates/default folder. Just out of curiousity used the templates edior in WSN Admin and the page displayed correctly.
I am using a different machine this week with a FTP client I have never used before (and hate). The client may have some settings messed up somewhere.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
More likely your local editor messed up. Dreamweaver is notoriously evil.