Gossamer Forum
Home : Products : Links 2.0 : Discussions :

related categories problem

Quote Reply
related categories problem
I've posted this twice and deleted it twice because it would start to work. Well, it's not working again and I'm keeping this one up.

For some reason, my related categories run into each other...three categories, one link. I've done it with <LI> and with break (which I prefer), same thing each way. For an example, see:

http://www.fanficweb.net/rpfdir/Slash/By_Name/Musicians/Joey_Fatone/

Any ideas?

Quote Reply
Re: related categories problem In reply to
Yea...edit the HTML codes in the $related variable statements in the sub build_category_pages in the nph-build.cgi.

OR you could simply use the following codes in the category.html file:

Code:

<%if related%>
<ul>
<%related%>
</ul>
<%endif%>


Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: related categories problem In reply to
nph-build looks like this:

# Calculate the related entries and put in a <LI> list.
@related = split(/\Q$db_delim\E/, $related); $related = "";
foreach $relation (@related) {
$related .= qq|<li><a href="$build_root_url/|;
$related .= &urlencode($relation);
$related .= qq|/$build_index">|;
$related .= &build_clean($relation);
$related .= "</a></li>";
}

category.html looks like this:


<%if related%>
<span class="categories">Related Categories:</span>
<ul>
<span class="smallertext"><%related%></span>
</ul>
<%endif%>

And it's still putting them up as a single link. Is there something wrong with the coding I can't see?

Quote Reply
Re: related categories problem In reply to
I'm still getting the single link, despite making corrections. Help anyone?