Ok I'm wanting add two new mods to system and I basically don't know where to start but I need your help. I want to create a "report link" section, I want to also create a preview image that is 120 x 90 on my categories, new links, top links, cool links section. Suggestions on how to do this are appreciated.
Oct 9, 2005, 3:29 PM
Veteran (1352 posts)
Oct 9, 2005, 3:29 PM
Post #3 of 19
Views: 7887
The first mod you want can be done using the Report Deadlink file attached here: http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=231984#231984
Not sure what you're wanting the other one to do...? Explain.
Leonard
aka PerlFlunkie
Not sure what you're wanting the other one to do...? Explain.
Leonard
aka PerlFlunkie
Oct 9, 2005, 4:46 PM
Veteran (1352 posts)
Oct 9, 2005, 4:46 PM
Post #5 of 19
Views: 7844
Well, there is a mod available that puts an image next to a link listing, search for Priority Logo Mod. It would easy to do, just add a line to your links.def file with a path to the directory containing a "snapshot" of each site's index page; a Print Screen type of thing, so you're saving an image of the page, and not the whole file. There are programs available that take good Print Screen shots, like this one for $17: http://www.atlantsoft.com/utils/ssm.htm
The code for Alexa's images looks like so: <img hspace="8" border="0" align="left" width="112" height="82" src="http://thumbnails.alexa.com/...://www.nps.gov/grca/"> (Search term was "Grand Canyon".)
Leonard
aka PerlFlunkie
The code for Alexa's images looks like so: <img hspace="8" border="0" align="left" width="112" height="82" src="http://thumbnails.alexa.com/...://www.nps.gov/grca/"> (Search term was "Grand Canyon".)
Leonard
aka PerlFlunkie
Oct 11, 2005, 2:28 PM
Veteran (1352 posts)
Oct 11, 2005, 2:28 PM
Post #9 of 19
Views: 7843
Did you set the referer in report.cgi?
@referers = ('www.yoururl.com/cgi-bin/report.cgi','yoururl.com/cgi-bin/report.cgi','http://www.yoururl.com/cgi-bin/report.cgi');
# SPECIFY ACCEPTED REFERERS ABOVE!!!!
If yes, and still not working, try commenting out this part:
# Check the referer.
if (@referers) {
$found = 0;
foreach (@referers) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
if (!$found) {
&site_html_report_failure_form ("Auto submission is not allowed in this directory. Please visit the site to report a link.");
return;
}
}
Leonard
aka PerlFlunkie
@referers = ('www.yoururl.com/cgi-bin/report.cgi','yoururl.com/cgi-bin/report.cgi','http://www.yoururl.com/cgi-bin/report.cgi');
# SPECIFY ACCEPTED REFERERS ABOVE!!!!
If yes, and still not working, try commenting out this part:
# Check the referer.
if (@referers) {
$found = 0;
foreach (@referers) {
$ENV{'HTTP_REFERER'} =~ /$_/i and $found++ and last;
}
if (!$found) {
&site_html_report_failure_form ("Auto submission is not allowed in this directory. Please visit the site to report a link.");
return;
}
}
Leonard
aka PerlFlunkie
Oct 12, 2005, 9:51 AM
Veteran (1352 posts)
Oct 12, 2005, 9:51 AM
Post #11 of 19
Views: 7816
Just in case the referrer is causing a problem, you can comment it out using hash signs, like so:
# This line will not be read by perl.
# Neither will this one.
This one could be (if it was perl).
# But not this one.
However, the refer is not likely to cause a 500 error.
Explain in more detail what you did and what happens. I have this mod on my site, so I know it works.
Leonard
aka PerlFlunkie
# This line will not be read by perl.
# Neither will this one.
This one could be (if it was perl).
# But not this one.
However, the refer is not likely to cause a 500 error.
Explain in more detail what you did and what happens. I have this mod on my site, so I know it works.
Leonard
aka PerlFlunkie
Nov 27, 2005, 4:05 PM
User (225 posts)
Nov 27, 2005, 4:05 PM
Post #17 of 19
Views: 7695
I'm still working on this so I tried to re-install the mod and made sure it was uploaded in ASCII. All mods are done exactly has it is stated but when I try to go to www.wespreadtheword.net/cgi-bin/report.cgi I get a 500 error. Also how are people suppose to report broken links via this mod? I never saw anything it it modifying the detail template for the listings.
Nov 27, 2005, 5:09 PM
Veteran (1352 posts)
Nov 27, 2005, 5:09 PM
Post #18 of 19
Views: 7705
Well, you're not to supposed to run the script directly, it needs an argument to tell it what to do. Try putting something like this in your link.html or detailed.html:
<a href="<%db_cgi_url%>/report.cgi?ID=<%ID%>">Deadlink?</a>
I looked through the mod instructions and did not see that it says to do this, but it is required. Another way to do it would be to add this to either or both places:
<a href="<%deadlink_url%>">Deadlink?</a>
Then put this in sub site_html_link and/or sub site_html_detailed in site_html_templates.pl:
deadlink_url => "$db_cgi_url/report.cgi?ID=$rec{'ID'}",
Leonard
aka PerlFlunkie
<a href="<%db_cgi_url%>/report.cgi?ID=<%ID%>">Deadlink?</a>
I looked through the mod instructions and did not see that it says to do this, but it is required. Another way to do it would be to add this to either or both places:
<a href="<%deadlink_url%>">Deadlink?</a>
Then put this in sub site_html_link and/or sub site_html_detailed in site_html_templates.pl:
deadlink_url => "$db_cgi_url/report.cgi?ID=$rec{'ID'}",
Leonard
aka PerlFlunkie