WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Parse error, but why
error every time I add a toplist

Version: Current
printPrint


Parse error, but why
Fairago


Usergroup: Customer
Joined: Dec 07, 2005
Total Topics: 5
Total Posts: 10
Posted 06/30/06 - 08:09 AM:
quote post
#1
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
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 06/30/06 - 12:48 PM:
quote post
#2
Well, I can't guess when you don't post the template. Most likely you haven't given it a unique number though.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Fairago


Usergroup: Customer
Joined: Dec 07, 2005
Total Topics: 5
Total Posts: 10
Posted 06/30/06 - 02:41 PM:
quote post
#3
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="http://www.webmastersite.net/forums/search.php?filled=1&condition=and" method="post">
<span class="style12"><br />
Search the Directory:</span>
<input type="text" name="search" size="30" />
<img src="http://www.webmastersite.net/forums//images/SPACER.GIF" width="10" />
<select name="whichtype">
<option value="links">search links</option>
<option value="all">search all</option>
</select>
<img src="http://www.webmastersite.net/forums//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="http://www.webmastersite.net/forums//images/SPACER.GIF" width="15" /></strong></span><span class="style20">(<a href="http://www.webmastersite.net/forums/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 no is yes></IF></IF><a href="http://www.teachertipsheaven.com/sponsor.php"><img src="http://www.webmastersite.net/forums/images/star.gif" width="13" height="14" border="0"></a><IF {LINKURL}><span class="style16"><a href="http://www.webmastersite.net/forums/{TRACKLINKURL}" class="reciplink" {externallinks}><strong>
<span class="style16">{LINKTITLE}</span></strong></a></span></IF>
<IF {LINKURL}> <OTHERWISE> {LINKTITLE}</IF> {LINKNEW} {LINKADMIN}<img src="http://www.webmastersite.net/forums//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="http://www.webmastersite.net/forums/vote.php?id={LINKID}">Be
the first to rate this resource! </a></font></IF> <img src="http://www.webmastersite.net/forums//images/SPACER.GIF" width="10" height="8"><span class="style17">[</span><a href="http://www.webmastersite.net/forums/report.php?id={LINKID}"><span class="style10">Report</span></a><span class="style17">]</span>
<br /> <span class="style17">{LINKDESCRIPTION}</span><br />
<a href="http://www.webmastersite.net/forums/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="http://www.webmastersite.net/forums/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 1><br />
<a href="http://www.webmastersite.net/forums/index.php?action=getvotingcode&id=%7BLINKID%7D">Get voting
code to place on your site</a> </IF> <IF no is yes><br />
<a href="http://www.webmastersite.net/forums/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="http://www.webmastersite.net/forums/{TRACKLINKURL}" target="_blank"><strong><span class="style16">{LINKTITLE}</span></strong></a>
<OTHERWISE> {LINKTITLE}</IF> {LINKNEW} {LINKISUPDATED} {LINKADMIN}<img src="http://www.webmastersite.net/forums//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="http://www.webmastersite.net/forums/vote.php?id={LINKID}">Be
the first to rate this resource! </a></font></IF><img src="http://www.webmastersite.net/forums//images/SPACER.GIF" width="10" height="8"><span class="style17">[</span><span class="style17">[</span><a href="http://www.webmastersite.net/forums/vote.php?id={LINKID}"><span class="style10">Rate!</span></a><span class="style17">]</span>
<img src="http://www.webmastersite.net/forums//images/SPACER.GIF" width="10" height="8"><span class="style17">[</span><a href="http://www.webmastersite.net/forums/comments.php?id={LINKID}"><span class="style10">Print!!</span></a><span class="style17">]</span> <br>
<span class="style17"> {LINKDESCRIPTION}</span><br><a href="http://www.webmastersite.net/forums/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="http://www.webmastersite.net/forums/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 1><br>
<a href="http://www.webmastersite.net/forums/index.php?action=getvotingcode&id={LINKID}">Get voting code to place on your site</a> </IF>
<IF no is yes><br><a href="http://www.webmastersite.net/forums/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>1</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 1> <IF {CATSUBSCRIBERS} contains |||{MEMBERID}|||>
<img src="http://www.webmastersite.net/forums/templates/images_default/bullet.gif" alt="bullet" class="bullet">
<a href="http://www.webmastersite.net/forums/index.php?action=displaycat&catid={CATID}&todo=subscribe">
<span class="style16">Unsubscribe From Category</span></a> <OTHERWISE>
<img src="http://www.webmastersite.net/forums/templates/images_default/bullet.gif" alt="bullet" class="bullet">
<a href="http://www.webmastersite.net/forums/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>


Fairago


Usergroup: Customer
Joined: Dec 07, 2005
Total Topics: 5
Total Posts: 10
Posted 07/01/06 - 05:11 AM:
quote post
#4
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.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 07/01/06 - 08:43 AM:
quote post
#5
More likely your local editor messed up. Dreamweaver is notoriously evil.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.