Gossamer Forum
Quote Reply
Add site link
Hi all
I am very new to this but I have managed to get it working (after about a week) my problem is the links to add/modify site, random link and search give me a "page cannot be displayed message" I have browsed through the previous messages (to page 16) and cannot find a solution I,ve checked my 2 site html.pl files and they seem ok. I have a feeling it is something on the links.cfg could somebody please help me out on this. I have not altered anything on this section (maybe this is where I am going wrong)


# Extra Paths -- unless you feel the need to rename files, you
# can leave this as is.
# -------------------------------------------------------------
$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.

$db_lib_path = $db_script_path; # PATH of library files.
$db_links_name = "$db_script_path/data/links.db"; # PATH to links database.
$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_template_path = "$db_script_path/templates"; # PATH to templates.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
1;

-----------------------------
this is how I have got the rest of it to work

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path ="/host/w/w/w/b/a/c/www.backpackingmall.com/cgi-bin/links/admin";
$db_dir_url = "http://www.backpackingmall.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/host/w/w/w/b/a/c/www.backpackingmall.com/pages";
$build_root_url = "http://www.backpackingmall.com/pages";

# 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";

thanks in advance for any help (please bear in mind I know nothing about CGI)


Quote Reply
Re: Add site link In reply to
Did you use the complete ABSOLUTE path to the links.cfg file in the require line in ALL the cgi scripts?

Also, edit all your template files to include the correct tag or hard-code the links.

Also, WHAT error do you receive???

Regards,

Eliot Lee
Quote Reply
Re: Add site link In reply to
Here is your problem.

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/host/w/w/w/b/a/c/www.backpackingmall.com/pages";
$build_root_url = "http://www.backpackingmall.com/pages";

# 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";

You have defined the $build_root_path as host/w/w/w/b/a/c/www.backpackingmall.com/pages
then your new folder will be added on the end of this.

Like so. http://www.backpackingmall.com/pages/New/

Seems to work fine for me.





Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Add site link In reply to
Thanks for the help you guys I have got more working now but when I click on "modify site" I get a download box and when I download I get this message
"Error including libraries: Can't locate admin/links.cfg in @INC (@INC contains: /host/w/w/w/b/a/c/www.backpackingmall.com/cgi-bin/links/admin /usr/local/lib/perl5/5.00503/aix /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/aix /usr/local/lib/perl5/site_perl/5.005 .) at /host/w/w/w/b/a/c/www.backpackingmall.com/cgi-bin/links/admin/modify.cgi line 30.

Make sure they exist, permissions are set properly, and paths are set correctly.
I have checked the permissions and I think they are correct, do you have any ideas

Quote Reply
Re: Add site link In reply to
Refer to Eliot's post:
In Reply To:
Did you use the complete ABSOLUTE path to the links.cfg file in the require line in ALL the cgi scripts?
Happy Coding,

--Drew
http://www.FindingHim.com
Quote Reply
Re: Add site link In reply to
In Reply To:
admin/links.cfg
Sure doesn't look like it. Wink

Regards,

Eliot Lee
Quote Reply
Re: Add site link In reply to
Thanks very much for your help, I was very nearly there, I got all the pages to show my only problem was I lost track of everything and tried to rush it, your mind does this at 55 :-) I uploaded the wrong files and lost track so I am going to start again from scratch. Hope you will still help me later :-)
thanks again