Ok !!!!
It's woeking However, I had to make a couple of changes.
What I did: 1. Installed everything per Bmxer mod instructions
2. Made custom changes to
"search_results.html" match my site.
3. Changed the "mod" so it will work with a "dmoz_link" template the way the original altavista search.cgi mod did.
Check it out here:
My links/dmoz search: http://www.nuzgeeks.com/...;IMAGE.y=6&wnh=1 This are the changes I made to the mod.
IMPORTANT: i"m no coder, I just compared the original altavista mod and the Bmxer's Dmoz mod and through trila and error made changes Code:
### dmozMOD WITH MODIFICATION SO IT WOULD
USE A TEMPLATE CALL DMOZ_LINKS.HTML###
FIRST: Follow all of the original DMOZ SEARCH.CGI
mod instructions then make the changes bellow.
### IMPORTANT: I did not write this code, I'm no
Perl expert. I just took parts of the altavista
search.cgi mod, compare notes and made changes
to the dmoz search.cgi mod with "smart" guesses
and trial and error :-) All I know is that it works.
######## So here it is:
#####-->In "search.cgi" take this part:
# Loop through the results pulling out each link.
if ($total) {
while ($results =~ m#<li><a href="([^"]+)">(.+?)</a> - (.+?)<br>#sog) {
$numlist= $numlist+1;
($url, $title, $description) = ($1, $2, $3);
$link_results2 .= qq~$numlist. <a href="$url">$title</a> -
$description<br><small>-- $url</small><p>~;
#####-->and replace with:
# Loop through the results pulling out each link. INCLUDES ALTAVISTA dmoz_link
if ($total) {
while ($results =~ m#<li><a href="([^"]+)">(.+?)</a> - (.+?)<br>#sog) {
$numlist= $numlist+1;
($url, $title, $description) = ($1, $2, $3);
%tmp = ("Count", $count, "URL", $url, "Title", $title, "Description", $description, "URL2", $url2, "Numlist", $numlist);
$link_results2 .= &site_html_dmoz_link (%tmp) . "\n";
#####--> Then in "site_html_templates.pl" add this routine:
sub site_html_dmoz_link {
# --------------------------------------------------------
# This routine is used to display what a link should look
# like.