Hello.
Well, it has been awhile since I have posted a Thread in this Forum. Welp, I have come across an interesting and mysterious problem.
My Related Categories do not print correctly. There are no longer number of links, they do not appear in a bulleted list, and when you click on the link, they go no where because <BR> and <LI> codes have become embedded in the URL.
For Example, go to:
vlib.anthrotech.com/Archaeology/
Look at the Related Categories....
They are printed like the following:
Specialized_Fields/Forensics
Specialized_Fields/Paleoethnobotany
Specialized_Fields/Paleontology ()
I have not made any changes to the nph-build.cgi file recently.
I have added codes from Widgetz's search and category sort scripts, found in the following Thread:
CATEGORY and SEARCH SORT.. (mods)
www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/003409.html
I am not using the complete scripts posted in this Thread. I am using codes from the search.cgi for the sort and order stuff. I am also using the defined tags via the sub site_html_sort_link routine. I have revised this routine to look like the following:
#----------------------------------------------------------------
# Sorts links in the Search Engine
my ($sort_name) = @_;
my ($ascend, $descend, $sort_title, $sort_order, $sort_script, $sort_url, $output);
$sort_title = $sort_name;
if ($db_def{$sort_name}[0]) {
$sort_order = "a";
if ($db_def{$sort_name}[0] == $db_sort_links) {
$sort_title = "$sort_title";
}
$sort_script = $ENV{'SCRIPT_NAME'};
$sort_url = qq~$sort_script?$query&order=$sort_order&sort=$db_def{$sort_name}[0]~;
$output = qq~<a href="$sort_url">$sort_title</a>~;
}
else { $output = qq~$sort_title~; }
return $output;
}
I took out all the conditional nph-build.cgi codes, because I am not using the category.cgi script and I thought that those codes are not necessary.
The search engine works fine....To see it in action, go to:
vlib.anthrotech.com/bin/search.cgi
As you can see in the following codes...I have not changed the Related codes in the sub build_category_pages:
$related .= qq|<li><a href="$build_root_url/|;
$related .= &urlencode($relation);
$related .= qq|/$build_index">|;
$related .= &build_clean($relation);
$related .= "</a> <font face=\"Verdana\" size=\"1\">($stats{$relatio
n}[0])</font></li>"; ### mod $stats{$relation}[0]) added to display number of related links
}
This is all very strange. Before (as of a week ago, which I have not made any major modifications to my scripts) the Related Categories printed in the following manner in the LINKS MANAGER CONSOLE:
NOW, they print in the following manner:
Specialized_Fields/Forensics
Specialized_Fields/Paleoethnobotany
Specialized_Fields/Paleontology
Any thoughts or suggestions are greatly appreciated.
Widgetz,
Did I make any major booboos with the revisions I made to your codes?? Thanks for any insight you can provide.
Thanks in advance.
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
[This message has been edited by Eliot (edited January 14, 2000).]
[This message has been edited by Eliot (edited January 14, 2000).]
Well, it has been awhile since I have posted a Thread in this Forum. Welp, I have come across an interesting and mysterious problem.
My Related Categories do not print correctly. There are no longer number of links, they do not appear in a bulleted list, and when you click on the link, they go no where because <BR> and <LI> codes have become embedded in the URL.
For Example, go to:
vlib.anthrotech.com/Archaeology/
Look at the Related Categories....
They are printed like the following:
Code:
* Conferences/Archaeology Specialized_Fields/Forensics
Specialized_Fields/Paleoethnobotany
Specialized_Fields/Paleontology ()
I have not made any changes to the nph-build.cgi file recently.
I have added codes from Widgetz's search and category sort scripts, found in the following Thread:
CATEGORY and SEARCH SORT.. (mods)
www.gossamer-threads.com/scripts/forum/resources/Forum3/HTML/003409.html
I am not using the complete scripts posted in this Thread. I am using codes from the search.cgi for the sort and order stuff. I am also using the defined tags via the sub site_html_sort_link routine. I have revised this routine to look like the following:
Code:
sub site_html_sort_link { #----------------------------------------------------------------
# Sorts links in the Search Engine
my ($sort_name) = @_;
my ($ascend, $descend, $sort_title, $sort_order, $sort_script, $sort_url, $output);
$sort_title = $sort_name;
if ($db_def{$sort_name}[0]) {
$sort_order = "a";
if ($db_def{$sort_name}[0] == $db_sort_links) {
$sort_title = "$sort_title";
}
$sort_script = $ENV{'SCRIPT_NAME'};
$sort_url = qq~$sort_script?$query&order=$sort_order&sort=$db_def{$sort_name}[0]~;
$output = qq~<a href="$sort_url">$sort_title</a>~;
}
else { $output = qq~$sort_title~; }
return $output;
}
I took out all the conditional nph-build.cgi codes, because I am not using the category.cgi script and I thought that those codes are not necessary.
The search engine works fine....To see it in action, go to:
vlib.anthrotech.com/bin/search.cgi
As you can see in the following codes...I have not changed the Related codes in the sub build_category_pages:
Code:
foreach $relation (@related) { $related .= qq|<li><a href="$build_root_url/|;
$related .= &urlencode($relation);
$related .= qq|/$build_index">|;
$related .= &build_clean($relation);
$related .= "</a> <font face=\"Verdana\" size=\"1\">($stats{$relatio
n}[0])</font></li>"; ### mod $stats{$relation}[0]) added to display number of related links
}
This is all very strange. Before (as of a week ago, which I have not made any major modifications to my scripts) the Related Categories printed in the following manner in the LINKS MANAGER CONSOLE:
Code:
Conferences/Archaeology~~Specialized_Fields/Forensics~~Specialized_Fields/Paleoethnobotany/~~Specialized_Fields/PaleontologyNOW, they print in the following manner:
Code:
Conferences/Archaeology Specialized_Fields/Forensics
Specialized_Fields/Paleoethnobotany
Specialized_Fields/Paleontology
Any thoughts or suggestions are greatly appreciated.
Widgetz,
Did I make any major booboos with the revisions I made to your codes?? Thanks for any insight you can provide.
Thanks in advance.
Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------
[This message has been edited by Eliot (edited January 14, 2000).]
[This message has been edited by Eliot (edited January 14, 2000).]