Gossamer Forum
Home : Products : Links 2.0 : Discussions :

No "Next" and "Previous" Links?

Quote Reply
No "Next" and "Previous" Links?
Hi,

I have a category with about 40 links, but only one page with ten links shows up with no "next" link or "previous" link. I know the pages are there, just for some reason the first page is not linking to them. Any ideas? Here's the one page in question.
http://www.associate-trackers.com/BusinessandServices/Pay_Per_Click_and_More

Thanks. I hope you can help,

Bob Messinger
www.associate-trackers.com
Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Code:

<%if prev%>
<%prev%>
<%endif%>
<%if next%>
<%next%>
<%endif%>


These codes should be in your category.html file on SEPARATE lines as the above example or with the Enhanced Template.pm codes located in the Resource Center, you can have the tags on the same line.

Regards,

Eliot Lee

Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Here's the code from my category.html template. I entered the [br] tag to put them on a seperate line and it doesn't work. Is this the method you were refering to?

<%endif%>
[br]
<CENTER>
<%if prev%>[br]<SMALL><A href="<%prev%>">Prev<%build_links_per_page%></A></SMALL>[br]
<%endif%>[br]
<%if next%>[br]<SMALL><A href="<%next%>">Next<%build_links_per_page%></A></SMALL>[br]
<%endif%>

Bob Messinger
www.associate-trackers.com
Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Welp...those are the incorrect codes...try using the codes I gave because guess what...they work. Wink

Regards,

Eliot Lee

Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Well I replaced the code I provided above with this..

<%if prev%>
<%prev%>
<%endif%>
<%if next%>
<%next%>
<%endif%>

and it did a great job of putting the address to the next page on the bottom, but no "next" or "previous" links.

here's the entire page

<HTML>
<HEAD>
<title><%site_title%> : <%category_name%></title>
<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>
</HEAD>

<BODY bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<table CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH="755" >
<tr>
<td WIDTH="35%" BGCOLOR="#FFCE31"><img SRC="http://www.associate-trackers.com/images/ltround.gif" height=20 width=20></td>

<td WIDTH="65%" BGCOLOR="#FFCE31">
<div align=right><img SRC="http://www.associate-trackers.com/images/rtround.gif" height=20 width=20></div>
</td>
</tr>

<tr>
<td WIDTH="100%">
<center><a href="http://www.associate-trackers.com"><img SRC="http://www.associate-trackers.com/images/logo.gif" BORDER=0 ></a></center>
</td>

<td></td>
</tr>

<tr VALIGN=BOTTOM>
<td BGCOLOR="#4A429C"><img SRC="http://www.associate-trackers.com/images/lbround.gif" ></td>

<td BGCOLOR="#4A429C">
<div align=right><img SRC="http://www.associate-trackers.com/images/rbround.gif" ></div>
</td>
</tr>
</table>


<TABLE border=0 cellpadding=0 cellspacing=0 width="755">
<TBODY>
<TR valign=bottom>
<TD height="2" width="71">
<TABLE border=0 cellpadding=0 cellspacing=0>
<TBODY>
<TR>
<TD bgcolor=#FFCC30 colspan=3><IMG height=1
src="" width=1></TD>
</TR>
<TR>
<TD bgcolor=#FFCC30><IMG height=19
src="" width=1></TD>
<TH bgcolor="#FFFF98" nowrap> <FONT size="2" face="Arial, Helvetica, sans-serif"><A href="<%build_root_url%>"><FONT color="#000000">Home</FONT></A></FONT>
</TH>
<TD bgcolor=#FFCC30><IMG height=1
src=""
width=1></TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD height="2" width="10"> </TD>
<TD height="2" width="679">
<TABLE border=0 cellpadding=0 cellspacing=0 width="117">
<TBODY>
<TR>
<TD bgcolor=#FFCC30 colspan=3><IMG height=1
src="" width=1></TD>
</TR>
<TR>
<TD bgcolor=#FFCC30><IMG height=19
src="" width=1></TD>
<TH bgcolor=#FFFF99 nowrap> <FONT size="2" face="Arial, Helvetica, sans-serif"><A href="<%db_cgi_url%>/search.cgi"><FONT color="#000000">Advanced
Search</FONT></A></FONT> </TH>
<TD bgcolor=#FFCC30><IMG height=1
src=""
width=1></TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD height="2" width="679">
<DIV align="center"><FONT size="1" face="Verdana, Arial, Helvetica, sans-serif"><A class="menulink"
href="<%db_cgi_url%>/search.cgi"></A></FONT></DIV>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE border="0" cellpadding="2" cellspacing="0" width="755" bgcolor="#EEEEEE">
<TR bgcolor="#FFCC33">
<TD align="center" nowrap width="60%" height="2">
<FORM action="<%db_cgi_url%>/search.cgi"method="GET">
<DIV align="center"><FONT face="Verdana" size="2"><B>Find this:</B>
</FONT>
<INPUT type="text" size="25" name="query">
<INPUT type="submit" value="Search" name="submit" align=absmiddle>
</DIV>
</FORM>
<FONT face="Arial"><FONT size="1" face="Verdana, Arial, Helvetica, sans-serif">
<A class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</A> | <A
class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</A> | <A class="menulink"
href="<%build_root_url%>/New">What's New</A> | <A class="menulink"
href="<%build_root_url%>/Cool">What's Cool</A> | <SMALL class="menu"><A class="menulink" href="<%build_root_url%>/Ratings"><FONT color="#0000FF">Top
Rated</FONT></A></SMALL></FONT></FONT></TD>
</TR>
</TABLE>

</DIV>
<DIV align="left"></DIV>

<DIV align="center"></DIV>
<DIV align="center">
<TABLE width="755" border="0" cellspacing="0" cellpadding="1" bgcolor="#FFCC30">
<TR bgcolor="#FFCC30">
<TD height="200">
<TABLE width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#FFCC38">
<TR>
<TD valign=top width="81%">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR bgcolor="#FFFF98">
<TD>
<DIV align="left"><FONT face="Verdana, Helevetica, Arial" size=2><B><FONT face="Verdana"><%title_linked%></FONT></B></FONT>
<B><FONT color="#FFFF98" face="Verdana" size="2">v</FONT>
</B></DIV>
</TD>
</TR>
</TABLE>
<DIV align="left"><FONT face="Verdana,Arial,Helvetica" size="-1"><B>
<%if category%>
Categories</B>:
<%category%>
</FONT>
<%endif%>
<BR>
<B><FONT face="Verdana,Arial,Helvetica" size="-1">
<%if links%>
</FONT><FONT face="Verdana" size="-1">Links:</FONT></B>

<%links%>
<%if prev%>
<%prev%>
<%endif%>
<%if next%>
<%next%>
<%endif%>

</CENTER>
<BR>
<B>
<%if related%>
Related Categories:</B>
<%related%>
<%endif%>
<FONT face="Verdana, Arial, Helvetica" size=2> </FONT> </DIV>
</TD>
<TD valign=top width="17%">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">

<TD>
<DIV align="center"><B><FONT size="2" face="Verdana"></FONT></B></DIV>
</TD>
</TR>
</TABLE>
<DIV align="center"> <BR>
<FONT size="2"> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT></DIV>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<FONT size="1" face="Verdana, Arial, Helvetica, sans-serif"> </FONT><FONT face="Arial"><FONT size="1" face="Verdana, Arial, Helvetica, sans-serif"><A class="menulink" href="<%db_cgi_url%>/add.cgi">Add
a Site</A> | <A
class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</A> | <A class="menulink"
href="<%build_root_url%>/New">What's New</A> | <A class="menulink"
href="<%build_root_url%>/Cool">What's Cool</A> | <SMALL class="menu"><A class="menulink" href="<%build_root_url%>/Ratings"><FONT color="#0000FF">Top
Rated</FONT></A></SMALL></FONT></FONT><FONT size="1" face="Verdana, Arial, Helvetica, sans-serif">
</FONT><FONT size="1" face="Verdana, Arial, Helvetica, sans-serif"><SMALL class="update"><FONT color="#000000"><BR>
</FONT><FONT color="#000000" size="1"><BR>Copyright
© 2000 AssociateTrackers.com. All rights reserved.</font>
<FONT color="#000000" size="1">
Links Engine 2.0 By:</FONT> <A href="http://www.gossamer-threads.com/"><FONT color="#0000FF">Gossamer
Threads Inc.</FONT></A></SMALL></FONT> </DIV>
</BODY>
</HTML>




Bob Messinger
www.associate-trackers.com
Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Copied from the original template:
Code:
<!-- Next/Previous links if spanning pages. -->
<p align=center>
<%if prev%>
<small><a href="<%prev%>">Prev <%build_links_per_page%></a></small>
<%endif%>
<%if next%>
<small><a href="<%next%>">Next <%build_links_per_page%></a></small>
<%endif%>
</p>
You can't have if/endif tags on the same line as other Links tags without installing the enhanced template support mod. (I think Eliot said that.)

--Drew
Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Hi Drew,

Thanks for spelling it out for me. That did the trick. The only problem now is there are no links on the page. Nothing below the "next" or "previous" links. Even the "related catagories" has disappeared. Any Ideas?

Bob Messinger
www.associate-trackers.com
Quote Reply
Re: No "Next" and "Previous" Links? In reply to
In Reply To:
(I think Eliot said that.)
Yes...I did.

Wink

Regards,

Eliot Lee

Quote Reply
Re: No "Next" and "Previous" Links? In reply to
Ok that's great. {{{Applauds}}}} Anyone know why the links dissappeared now?

Bob Messinger
www.associate-trackers.com