Ive just installed the script and was playing with it and am using the snap templates...As far as I can tell the pages all load fine except when I go to load the home page after I rebuild the pages...I get this unknown tag: Date failure, Anyone got a clue??
May 19, 1999, 7:54 PM
Enthusiast (504 posts)
May 19, 1999, 7:54 PM
Post #6 of 12
Views: 3343
# You can put variables here that you would like to use in any # of your templates.
%globals = (
date => &get_date,
Date => &get_date,
NEXT go to:
# This rountine will build a page based for the current category.
return &load_template ( 'category.html', {
date => $date,
Date => $date,
This is the fix the author of the templates gave me. Fixed those issues but you will come up against some more.Until we register the templates we will not be bothering the author as he has done an excellent job with these templates.
------------------
New Zealand Christian Internet Directory
%globals = (
date => &get_date,
Date => &get_date,
NEXT go to:
# This rountine will build a page based for the current category.
return &load_template ( 'category.html', {
date => $date,
Date => $date,
This is the fix the author of the templates gave me. Fixed those issues but you will come up against some more.Until we register the templates we will not be bothering the author as he has done an excellent job with these templates.
------------------
New Zealand Christian Internet Directory
May 20, 1999, 5:29 AM
Veteran (3111 posts)
May 20, 1999, 5:29 AM
Post #7 of 12
Views: 3320
Code:
# You can put variables here that you would like to use in any # of your templates. $Today = &get_date;
%globals = (
Today => $Today,
Now you can change <%date%> or <%Date%> to <%Today%> in templates when referring to today's date and <%Date%> when referring to the link's modified date. You also have $Today available to use in site_html_templates (and elsewhere) where templates are not used.
I hope this helps.
[This message has been edited by Bobsie (edited May 20, 1999).]
May 25, 1999, 12:35 AM
Enthusiast (504 posts)
May 25, 1999, 12:35 AM
Post #9 of 12
Views: 3339
Hi Bobsie!
I altered the site_html.pl file according to what you said.
As far as I am aware there is one place in the home.html and one place in links.txt or links.html file (whatever one is using ) that needs altering. When I did the changes, rebuilt the pages - ALL the links have disappeared from the categories.
You can check the site at :
http://www.nzcid.godzone.net.nz
------------------
New Zealand Christian Internet Directory
[This message has been edited by Ian Conza (edited May 25, 1999).]
I altered the site_html.pl file according to what you said.
As far as I am aware there is one place in the home.html and one place in links.txt or links.html file (whatever one is using ) that needs altering. When I did the changes, rebuilt the pages - ALL the links have disappeared from the categories.
You can check the site at :
http://www.nzcid.godzone.net.nz
------------------
New Zealand Christian Internet Directory
[This message has been edited by Ian Conza (edited May 25, 1999).]
Sep 7, 1999, 5:46 PM
Novice (25 posts)
Sep 7, 1999, 5:46 PM
Post #12 of 12
Views: 3351
I'd just like to thank all of you, especially Bobsie for helping me secondhand.
I searched for 'unkown date' and found this thread.
I implemented the %Today% global variable and it worked like a charm. Grassyass. >
- gonz
------------------
"guess it's time to change my underwear again...darn."
College Jive! - http://www.shopaddict.net/ubbcgi/Ultimate.cgi
I searched for 'unkown date' and found this thread.
I implemented the %Today% global variable and it worked like a charm. Grassyass. >
- gonz
------------------
"guess it's time to change my underwear again...darn."
College Jive! - http://www.shopaddict.net/ubbcgi/Ultimate.cgi