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

Cool, New and Top Rated

Quote Reply
Cool, New and Top Rated
I have installed program Links 2 and it is very cool. But I have two problems (I hope there are not difficult to you, Bobsie Wink

1. Where can I create directories New, Cool and Top Rated? I Created them in root directory, like www.host.com/links/Cool ecc.
Should I copy a file cool.html into it or what? Please, help me, I really do not know what to do...
2. When i try to search on my database, it works well, untill I try to open a speciffic link. The unswer is:

Error: Can't find link id: 3
(or id: 4 or 5 ...)
What is wrong?

Please, try it at http://www.sirena.dhs.org and let me know, what to do...Please...
I am very inbterested in this beautifull program and after installation of several cgi scripts I consider myself a lame...(joke Wink
Quote Reply
Re: Cool, New and Top Rated In reply to
Uff, All right, New, Cool and ratings are O.K.
But what about

Error: Can't find link id: 5 ?

Please, Bobsie, help me!
Quote Reply
Re: Cool, New and Top Rated In reply to
Please post the following settings that you have in your links.cfg:

Code:
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path
$db_dir_url

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path
$build_root_url

Something is wrong in your paths.
Quote Reply
Re: Cool, New and Top Rated In reply to
Hm...my settings in links.cfg are these:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/httpd/cgi-bin/links/admin";
$db_dir_url = "http://www.sirena.dhs.org/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.sirena.dhs.org/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/httpd/html/links/pages";
$build_root_url = "http://www.sirena.dhs.org/links/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/home/httpd/html/links/New";
$build_new_url = "http://www.sirena.dhs.org/links/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/home/httpd/html/links/Cool";
$build_cool_url = "http://www.sirena.dhs.org/links/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/home/httpd/html/links/Ratings";
$build_ratings_url = "http://www.sirena.dhs.org/links/Ratings";

I think there are no mistakes...
Quote Reply
Re: Cool, New and Top Rated In reply to
When I click on links, there is an error message:

Error: Can't find link id: 1 (or 2, ecc...)

I tried solve this mistake, but withought success... the file links.db is this:

1|Kaj pa vem|http://www.ijs.si/slo/|28-Apr-1999|Racunalnistvo|He he|Bala|Baaa@hehe.com|4|Yes|Yes|0|0|Yes
2|Varnost pomorskega transporta v severnem jadranu|http://www.ksop-cscp.si/andrej/|29-Apr-1999|Posel_in_gospodarstvo|Viri ogrozanja

The url of the page is still Smile http://www.sirena.dhs.org

What can I do?
Quote Reply
Re: Cool, New and Top Rated In reply to
Yeahhh!!!!!! It works!!!!!! Oh-yeah Wink Smile Smile

Thx, Bobsie!

1. I had to made a directory called Backup
2. The directory "hits" and index.count -> chmod 777

All-right!!

Ciao, ragazzi Wink

Quote Reply
Re: Cool, New and Top Rated In reply to
 
Code:
# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

Only the first 5 paths/URLs in links.cfg need to be changed. All the others use those 5 as the basis for the paths/URLs.
Quote Reply
Re: Cool, New and Top Rated In reply to
Thank you, Bobsie! It works Wink I am not sure but I think you are a genious!

See ya!