Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Empty links

(Page 1 of 2)
> >
Quote Reply
Empty links
Hi,

1. After choosing a category, my links page displays no links at all, although it recognizes the number of links that should be displayed.

2. I canīt find the category.db file. Where should it be and what does it contain? Where can I get it?

Thanks,

Roberto

P.D: You may check this error at http://www.ganamasdinero.com/pages/
Quote Reply
Re: Empty links In reply to
category.db should be here /cgi-bin/admin/data/category.db

It contains the ID/names/descriptions/related categories/header/footer etc of all categories in the database


eg. ID|NAME|DESCRIPTION...etc

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
Thanks for replying, Paul.

I donīt have the file categoy.db. There is one called categories.db, and it is empty.

Why donīt my links show up?

Is there a thread which has taken care of this issue?

Roberto

Quote Reply
Re: Empty links In reply to
Yes sorry....my mistake...it is categories.db

You need to add categories from the admin area.

Under the "Categories" menu on the left of the admin page...click "Add"

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
Ok... as I mentioned before, tehe categories.db file is empty.

On the Admin area I added a couple of trial categories, and also added a few links to each. Those links are the ones that donīt show up.

Roberto

Quote Reply
Re: Empty links In reply to
If you want to send me the URL of your admin script I will see if I can help.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
Paul...Iīm not sure what exactly do you mean by the URL of the admin scrpt. Would it be this address?
http://ganamasdinero.com/cgi-bin/links/admin/admin.cgi

If it is, itīs password protected. Is it ok to send you the paswword via this public forum?

Roberto


Quote Reply
Re: Empty links In reply to
No send it via a private message

Thanks.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
Ok the problem is solved now, but I noticed one more thing....

Your category.def file is in your templates directory, it should be in your /cgi-bin/admin/ directory

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
What did you do to fix the problem?

Should I delete the categories.def from Templates?

Did you try to add a link from www.ganamasdinero.com/pages/?

Thank you for your time and interest.

Roberto



Quote Reply
Re: Empty links In reply to
Just noticed that the links show up, but are nested within another template page - my "iNegocios template". How do I fix that?

Take a look at http://ganamasdinero.com/pages/Internet_Marketing/

Roberto


Quote Reply
Re: Empty links In reply to
Eugh...

You are in a mess..

All your files are in the wrong places.

add.cgi
rate.cgi
jump.cgi
subscribe.cgi
search.cgi
modify.cgi

....ALL need to be in your cgi-bin.

Dont DELETE category.def from the templates directory...MOVE it to the admin directory.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
My LINKS path is ../cgi/links/admin. I didn't create another cgi-bin under links. Should I?

A few minutes ago I edited my last message asking you to check http://ganamasdinero.com/pages/Internet_Marketing/ and notice that the links are nested within another set of templates.

Roberto




Quote Reply
Re: Empty links In reply to
In links.cfg you need to edit your "db_cgi_url"

from /cgi-bin

to /cgi-bin/links

What is the code inside your link.html file?


Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
The link.html code is:

<ul>
<li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a> <%if Description%>
<span class="descript">- <%Description%></span> <%endif%> <%if isNew%> <small><sup class="new">nuevo</sup></small>
<%endif%> <%if isPopular%> <small><sup class="pop">pop</sup></small> <%endif%>
<small class="date">(Aņadido: <%Date%> visitas: <%Hits%> puesto: <%Rating%>
Votos: <%Votes%>) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Vóte</a></small> </ul>


Quote Reply
Re: Empty links In reply to
The link.html code had one of my customized templates attached to it. I removed it and left it as it was originally ( Spanish version). Now it isnīt showing up the links anymore. What did I mess up?

Quote Reply
Re: Empty links In reply to
Replace that code with:

<ul>
<li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>">
<%Title%>
</a>
<%if Description%>
<span class="descript">- <%Description%></span>
<%endif%>
<%if isNew%>
<small><sup class="new">nuevo</sup></small>
<%endif%>
<%if isPopular%>
<small><sup class="pop">pop</sup></small>
<%endif%>
<small class="date">(Aņadido: <%Date%> visitas: <%Hits%> puesto: <%Rating%>
Votos: <%Votes%>)
<a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Vóte</a>
</small>
</ul>


...for starters.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
Phew!... you made it! Thanks, Paul.

It shows I'm a starter, doesn't it? You never told what you did to make it happen, so I can learn to avoid making the mistake again.

Roberto

Quote Reply
Re: Empty links In reply to
Well apart from getting the files in the right directories it is quite simple...

Just make sure you put your tags <%tag%> on seperate lines.

Dont do <%tag%> <%tag1%> <%tag2%>

do...

<%tag%>
<%tag1%>
<%tag2%>

This will prevent things from not showing up!


Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
I'm really thankfull and impressed about your excellent service...spending a couple of uninterrupted hours helping a guy from Colombia - you've never heard of before, is something to admire!

Roberto

Quote Reply
Re: Empty links In reply to
Its my pleasure....I am still learning a lot myself each day so it is nice to be able to pass on to others what I have learned myself.

I know how frustrating Links can be (and also how rewarding)!

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
Paul, I hope Iīm not abusing, but how do visitors have acces to the detailed pages that wer created by the following code in the links.cfg:

# Detailed View: The script can build a single html page per link. This is
# great if you have a review in your database. To enable, you must set
# the directory where all the pages will be stored, the url to that directory
# and set the enable option.
$build_detailed = 1;
$build_detail_path = "$build_root_path/Detailed";
$build_detail_url = "$build_root_url/Detailed";

Quote Reply
Re: Empty links In reply to
Alter this bit in link.html

<li><a class="link" href="<Û_cgi_url%>/jump.cgi?ID=<%ID%>">
<%Title%>
</a>


...to...

<li><a class="link" href="<%build_root_url%>/pages/Detailed/<%ID%>.html">
<%Title%>
</a>





Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Empty links In reply to
In Reply To:
Just make sure you put your tags <%tag%> on seperate lines.
Or you can simply install the Enhanced Template.pm code hack located in the Resources section of this site (Links -> Modifications -> Links 2.X). This will allow you to have tags on the same line.

Regards,

Eliot Lee
Quote Reply
Re: Empty links In reply to
Worked fine!

Just had to change your suggestion a little

FROM:

href="<%build_root_url%>/pages/Detailed/<%ID%>.html">

TO:

href="<%build_root_url%>/Detailed/<%ID%>.html">

Thanks.

Roberto



> >