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

Home/Top Rated/Cool/New... Not Creating

Quote Reply
Home/Top Rated/Cool/New... Not Creating
How come my navigation links aren't working..
Here's my Paths and Url to important stuff.
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/philsite/public_html/links/cgi-bin/admin";
$db_dir_url = "http://philsite.virtualave.net/links/cgi-bin/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://philsite.virtualave.net/links/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/philsite/public_html/pages";
$build_root_url = "http://philsite.virtualave.net/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";

# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 0;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
 
Quote:
How come my navigation links aren't working..

What do you mean by "aren't working"? What happens when you click on them? See my messages in the thread at http://www.gossamer-threads.com/...um2/HTML/000886.html for a fix for virtualave.net.
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
Bobssie, do I have to change all my templates?

------------------
joey
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
Okay I went to the site that you told me. Do I have to change all my templates ?

------------------
joey
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
If you want them to work, yes you do. However, you can move the menus into a global variable above the %globals variable in site_html_templates.pl and then change the %globals variable to pass it to all templates. You would do something like this:

Change this:

Code:
# You can put variables here that you would like to use in any
# of your templates.

%globals = (
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => ''
);

to read:

Code:
# You can put variables here that you would like to use in any
# of your templates.

$site_menu = qq~<p><small class="menu">|
<a class="menulink" href="$build_root_url/$build_index">Home</a> |
<a class="menulink" href="$build_add_url">Add a Resource</a> |
<a class="menulink" href="$build_modify_url">Modify a Resource</a> |
<a class="menulink" href="$build_new_url/$build_index">What's New</a> |
<a class="menulink" href="$build_cool_url/$build_index">What's Cool</a> |
<a class="menulink" href="$build_ratings_url/$build_index">Top Rated</a> |
<a class="menulink" href="$build_email_url">Email Updates</a> |
<a class="menulink" href="$build_jump_url?ID=random">Random Link</a> |
<a class="menulink" href="$build_search_url">Search</a> |
</small></p>
~;

%globals = (
site_menu => $site_menu,
date => &get_date,
time => &get_time,
db_cgi_url => $db_cgi_url,
build_root_url => $build_root_url,
site_title => $build_site_title,
css => $build_css_url,
banner => ''
);

Now you can delete the menus from the template file and just use <%site_menu%> inside the templates instead where you want the menu to display.

I hope this helps.

[This message has been edited by Bobsie (edited June 19, 1999).]
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
Bobssie,
I did what you told me but still doesn't work.. This is the last thing I need to work on. Please help me. Tell me what to do! Thanks

------------------
joey
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
If I give you instructions on what to do and you follow them but it doesn't work, what do you suppose I can tell you to fix it? You haven't said anything about any errors you may be getting or what happens when you display one of the pages. So how can I tell you what to do?

Did you rebuild the pages after making the changes?

Did you refresh your browser when loading the pages to be sure the newer copy of the page loads?

Are there any error messages generated?
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
There wasn't any errors. When I click on Home a website will appear. It's always http://saladine.com/pages/ I don't know why I always go there when I click Home.
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
Is this on virtualave.net? If so, I have already told you how to overcome virtualave's server misconfiguration. You can not use http://philsite.virtualave.net/pages -- you have to use http://philsite.virtualave.net/pages/ (note the ending slash) or http://philsite.virtualave.net/pages/index.html . Once you do that, it will load correctly.

The problem is one with virtualave.net. Instead of posting in here on how to fix it, talk to virtualave.net since it is THEIR problem!

I hope this helps.
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
Bobsie..
Should I edit my link.cfg and put / at the end of my URL where my pages are located?
Quote Reply
Re: Home/Top Rated/Cool/New... Not Creating In reply to
No, you should not do that because there are many places in the script where "/something" is appended to the end. If you add the "/" in links.cfg, you will end up with "//something" which may cause you more problems.

The only thing that needs to be changed is the menu links to those pages as I outlined above. That should fix the problem.

I hope this helps.