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

Unkown Tag: URL ---- Help Please

Quote Reply
Unkown Tag: URL ---- Help Please
This is when I try and Use Modify.cgi
Please help me... Urgent..
Thanks
Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
Hi Robertbar!

Post your URL so one can look..



------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
The URL Of the problem is:
http://www.freeworldalliance.com/search

Help me... Frown
Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
Hi RobertBar!!

Check this out - it was found doing a search of the forum.

http://www.gossamer-threads.com/...m11/HTML/001115.html

See if that helps.

Also - pays to do a search of the forums first to see if anyone else has come across the problem - I percieve the more experienced people are not answering as many lately are coming onto the forum asking questions that have arisen in the past and are in the forum already.

Hope that helps.


------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory


Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
Uh....actually no one did answer that question. If you read the whole forum the question was never answered. Partly due to my fault because I have not posted my variables yet.....the solutions that were given referenced the links.def file and the site_template.html.pl file. The rating system did work, and I didn't change either of those files, the only thing that was changed was the rate.html template and I already posted that....so I really don't think posting those files would have made a difference. But, maybe I did miss something, here are the files:

This is the relevant part of links.def
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date,''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'Yes', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
Graphic => [14, 'alpha', 40, 75, 0, '', ''],
Gwidth => [15, 'alpha', 5, 5, 0, '', ''],
Gheight => [16, 'alpha', 5, 5, 0, '', ''],
Priority => [17, 'alpha', 0, 5, 1, 'No', 'No|Yes'],
Key => [18, 'alpha', 40, 500, 1, '', ''],
isBest => [19, 'alpha', 0, 5, 0, 'No', '']
);

# Database file to use -- defined in links.cfg.
$db_file_name = $db_links_name;
# Counter file to use -- defined in links.cfg.
$db_id_file_name = $db_links_id_file_name;
# The column name for the database key.
$db_key = 'ID';
# Database delimeter.
$db_delim = '|';
# Title used in admin output.
$html_title = 'Links Database';
$html_object = 'Link';

# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_alt = 5; $db_priority = 17; $db_url = 2;
$db_category = 4; $db_modified = 3; $db_isbest = 19;
$db_hits = 8; $db_isnew = 9; $db_ispop = 10;
$db_contact_name = 6; $db_contact_email = 7; $db_title = 1;
$db_votes = 12; $db_rating = 11; $db_mail = 13;

# Field number to sort links by:
$db_sort_links = 1;

This is the relevant part of site_html_temp:

# 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 => ''
);

-------------------------------------

sub site_html_ratings {
# --------------------------------------------------------
# This routine determines how the top rated page will look like.

return &load_template ( 'rate_top.html', {
top_rated => $top_rated,
top_votes => $top_votes,
%globals
});
-------------------------------------

sub site_html_rate_form {
# --------------------------------------------------------
# This routine determines how the rate form page will look like.
#
my %rec = @_;

&html_print_headers;
print &load_template ('rate.html', {
%rec,
%globals
});
}

sub site_html_rate_success {
# --------------------------------------------------------
# This routine determines how the rate success page will look like.

&html_print_headers;
print &load_template ('rate_success.html', {
%in,
%globals
});
}

sub site_html_rate_failure {
# --------------------------------------------------------
# This routine determines how the rate failure page will look like.

my ($errormsg) = shift;

&html_print_headers;
print &load_template ('rate_error.html', {
error => $errormsg,
%in,
%globals
});

I obviosly only posted the relevant sections that I could find, maybe I'm missing something??

Thanks to all!
Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
Hi SteveV!

Smile I did notice that it had not been answered. I can only suggest that if no one answers direct you personally approach one of the moderators of the forums via email.

------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory

[This message has been edited by Ian Conza (edited October 08, 1999).]
Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
Thanks Ian, that's probably what I'll do! I searched the forum several times and couldn't find anything related to the Unknown Tag: URL! I know it has to be something very simple, but for the life of me, I can't find the problem, heck I can't even find Unknown Tag: URL as an error call in any of the scripts! Oh well, I'll probably give it a few more days and see if someone responds. :-)
Quote Reply
Re: Unkown Tag: URL ---- Help Please In reply to
Hi SteveV!

Robert has another post in one of the other forums where one goes to rate a link and it comes up with a fault.

I found another reply by someone that said to check that the rate.cgi or whatever was not loaded in binary mode instead of ascii. I also have found only once my web server somehow had changed the permissions or whatever and once I reloaded the file and set the permission on the file the fault went away.

Took a while to find it though Smile


------------------
http://www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory