Gossamer Forum
Home : Products : Links 2.0 : Customization :

RECIP link checkin

(Page 3 of 4)
> > > >
Quote Reply
Re: RECIP link checkin In reply to
Little prob here guys..

When i add this line to my add.cgi file:
Recip URL: $in{'recip'}

.. after adding, add.cgi no-linger wants to load/work ...

Any ideas?




Quote Reply
Re: RECIP link checkin In reply to
Love the mod... but I am having some troubles. Strange one too.

When I run recip.cgi, it tells me "Done. Click Here to View Report." yet there is nothing in the report.

I have set up 5 links with recip's, and I have tested it with $links[2] as well as 14... and have double checked (maybe quintiple?) that the recip.html is writable. (In fact I even uploaded a blank one)

The odds are I am missing something really simple, cuz thats how it usually is. Can anyone enlighten me to this veritable quandary?
Quote Reply
Re: RECIP link checkin In reply to
Rianda

Did you change the number in the script to match the number in links.def?

It doesn't matter what it is, but it has to match. If I recall, the same thing happened to me until I got all the numbers to match.

Scroll above for a note I put in a little while ago about this very topic.

HTH





------------------
ARMYNAVY.COM
MilitarySurplus Ring







Quote Reply
Re: RECIP link checkin In reply to
Does it matter if you are not using a | as the delimiter? I'm using , . I've changed all field 14's to what I'm using 24 and my reports are just blank, and I placed url's in the recip field.

http://www.marketuplinks.com/reciprocal.htm


Any hints?
Thanks
Shane
Quote Reply
Re: RECIP link checkin In reply to
I've gone through all the number to make sure they match links.def.... but it still doesn't write a report. It takes awhile though, as if it is going through the database and checking.. but nothing is written to the report.html file.

Can I break this into pieces to debug it? Any suggestions?
Quote Reply
Re: RECIP link checkin In reply to
error with use LWP::Simple

I get Internal Server Error 500 wiz this string. How can I solve this problem?
Quote Reply
Re: RECIP link checkin In reply to
 
Ok.. I have the script installed, but this is whats happening.. 99.9% of the time it stalls out in the browser, and doesnt give any data in the recip.html file..

the other 1% of the time is the same, but the data file will get some data, but only about 20 links or so.. I can tell the file is INCOMPLETE cuz it never gets to the end of the file.. It never gets as far as showing the DELETE button at the bottom of the page Frown


Hence more, when executing it in telnet or cron, it completely stalls out.

Any ideas or suggestions would be greatly appreciated.

Quote Reply
Re: RECIP link checkin In reply to
Hello! I too am having the same problems using the script.... it goes into oblivion as if its doing some numbers crunching but nothing shows on the recip.html file..... Anyone actually have this mod working or else i think we best get it out of here.... instaed of all of us waiting our time.

Quote Reply
Re: RECIP link checkin In reply to
Make sure that you have the correct data column in the expirator cgi script. It should be set to your Expire Field.

Regards,

Eliot Lee
Quote Reply
Re: RECIP link checkin In reply to
Hi people,

This is a great mod however I was wondering if anyone could give me some help making a slight variation of it. Rather than deleting links that don't have a reciprocal link I want to check for reciprocal links and sites that do have a reciprocal link I want to reward by listing them above other links on the category pages and maybe even the search results pages. I am guessing that the script needs modifying so that if a reciprocal link is found a yes/no field in the database should be marked yes and then in the part of the code that sorts links this field should be added so links with a reciprocal link are ranked first. I would try to do this myself but I am an amateur coder. I will really appreaciate any help on this matter.

Thanks,

Simon Dyson
sdyson@themaelstrom.co.uk
http://www.themaelstrom.co.uk

Quote Reply
RECIP link checkin - Problem In reply to
I get an "internal server error" when I try to run recip.cgi and I have no idea what I'm doing wrong. I have read all the messages in this thread and found nothing that can help me. Any suggestions? Thanks in advance!

by the way:
-the perl path is correct
-uploaded it in ascii
-did chmod 755
-added a | to the links db
-require "links.cfg"; & require "db_utils.pl"; (everything is in the same directory as recip.cgi, so I think this is correct)



Quote Reply
Re: RECIP link checkin - Problem In reply to
I have installed this mod. I got the script from the Resources area. I also completely read this thread. I have it installed, i changed all of the $links[14] to match, and i still do not get a listing of urls not linking. I only get the blank page as others in this thread have stated. Anyone figure this out yet?

Quote Reply
Re: RECIP link checkin - Problem In reply to
Hi, I installed the recip exactly as instructed, and was presented with a fatal error in the links.def file at line 37 which was this
recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']
which is the first thing I added. I rechecked all my paths, and then changed some of them to see if that helped. ie instead of using /home/site/web etc I used http://www.etc and then I mixed and matched them, the error message never changed, so I assume it must have been something else.
I had created the recip.html file chmod'd it to 666 and placed it in my data directory (this was a wild guess)
Any suggestions as to what I did wrong will be helpful. + does it make a difference that I already had data.. (I tried a blank links.db and links.db.bak and set to 666 but nothing)
Help Please !!!


Quote Reply
Re: [t_dog] RECIP link not working In reply to
Reciprical Link Report

Wednesday, February 6 2002 - 01:37:47





This is all I get what do you think??
rexxx webmaster
Quote Reply
Re: [bambam] RECIP link checkin - Problem In reply to
In Reply To:
Hi, I installed the recip exactly as instructed, and was presented with a fatal error in the links.def file at line 37 which was this
recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']
which is the first thing I added. I rechecked all my paths, and then changed some of them to see if that helped. ie instead of using /home/site/web etc I used http://www.etc and then I mixed and matched them, the error message never changed, so I assume it must have been something else.
I had created the recip.html file chmod'd it to 666 and placed it in my data directory (this was a wild guess)
Any suggestions as to what I did wrong will be helpful. + does it make a difference that I already had data.. (I tried a blank links.db and links.db.bak and set to 666 but nothing)
Help Please !!!


I am getting this error as well ....can someone help me out ?

thanks
Quote Reply
Re: [serrow] RECIP link checkin In reply to
here is what the admin is saying when i try and log into it.

CGI ERROR==========================================Error Message : fatal error: syntax error at /sites/jsnodgrass/jsnodgrass/pornlinks4you.com/cgi-bin/links/admin/links.def line 37, near "recip"Compilation failed in require at /sites/jsnodgrass/jsnodgrass/pornlinks4you.com/cgi-bin/links/admin/admin.cgi line 55.Script Location : /sites/jsnodgrass/jsnodgrass/pornlinks4you.com/cgi-bin/links/admin/admin.cgiPerl Version : 5.006HERE IS MY LINKS.CFG # -------------# Links# -------------# Links Manager## File: links.cfg# Description: Contains all the setup variables.# Author: Alex Krohn# Email: alex@gossamer-threads.com# Web: http://www.gossamer-threads.com/# Version: 2.01## (c) 1998 Gossamer Threads Inc. ## This script is not freeware! Please read the README for full details# on registration and terms of use. # ===================================================================== # Paths and URL's to Important Stuff# --------------------------------------------------------# PATH and URL of Admin CGI directory. No Trailing Slash. $db_script_path = "/sites/jsnodgrass/jsnodgrass/pornlinks4you.com/cgi-bin/links/admin"; $db_dir_url = "http://www.pornlinks4you.com/cgi-bin/links/admin";# Link to check for on other sites
$site_check = "www.pornlinks4you.com"; #full path to report
$report_url = "http://www.pornlinks4you.com/...templates/recip.html"; #full path to recip script place in the same dir as your admin.cgi
$report_cgi = "http://www.pornlinks4you.com/...inks/admin/recip.cgi"; # URL of User CGI directory. No Trailing Slash. $db_cgi_url = "http://www.pornlinks4you.com/cgi-bin/links"; # PATH and URL of Pages to be built. No Trailing Slash. $build_root_path = "/sites/jsnodgrass/jsnodgrass/pornlinks4you.com/www/avs"; $build_root_url = "http://www.pornlinks4you.com/avs"; # PATH and URL of What's New page. No Trailing slash. $build_new_path = "$build_root_path/New"; $build_new_url = "$build_root_url/New"; # PATH and URL of What's Cool page. No Trailing slash. $build_cool_path = "$build_root_path/Cool"; $build_cool_url = "$build_root_url/Cool"; # PATH and URL of What's Rating page. No Trailing slash. $build_ratings_path = "$build_root_path/Ratings"; $build_ratings_url = "$build_root_url/Ratings"; # Database Options # --------------------------------------------------------# You really need to use flock(). However if your system doesn't support it (Win95),# then turn this off at your own risk! $db_use_flock = 1;# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache) $db_nocache = 0;# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.) $db_iis = 0;# Field number of category in category.db $db_main_category = 1;# Referers -- which hosts are allowed to add to your database. @db_referers = (); # Email Options# --------------------------------------------------------# NOTE: Be sure to edit the text of the message. It can be found# in the templates directory: email-add.txt, email-del.txt and# email-mod.txt respectively. # Set only ONE of either $db_mail_path which should go to a # mail program like sendmail, or $db_smtp_server which will use# a SMTP server. Do not set both at once! # PATH of sendmail. # SMTP Server $db_mail_path = '/usr/lib/sendmail'; $db_smtp_server = ''; # Email address of the administrator. BE SURE TO SET! $db_admin_email = 'webmaster@pornlinks4you.com'; # Notify visitors automatically when their links are validated? $db_email_add = 1; # Notify visitors automatically when their links are modified? $db_email_modify = 1; # Log all outgoing messages? Put the full path to a logfile and make sure it# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty# big! $db_mailer_log = ''; # Build Options# --------------------------------------------------------# Setting for popular cutoff, can either be a percent (i.e. top 3%), or# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively. $db_popular_cutoff = 0.03; # Top 3%# Number of days a link is considered New. $db_new_cutoff = 14; # 14 days old.# Return search results bolded (1 = yes, 0 = no). $search_bold = 1;# The name of an index file. $build_index = "index.html";# The extension to use for non index files: $build_extension = ".shtml"; # Should your add.cgi automatically select what category the user# is adding his link into? $db_single_category = 1; # Directory Permissions. Do NOT put quotes around it. Set to 0777 # for world writeable. If you put this at 0755, you might need a # script to remove any directories created as they will be owned # by the web server or user nobody. Better solution might be to # run the nph-build routine from the command shell. $build_dir_per = 0777; # The script can now break up category pages that have more then x# number of links in it. It will also create next and previous links# to help navigate. Set this to 1 if you want to break up pages or 0 if# you want to have only one page per category.# Setting this to one, will also break up the What's New pages into# per day sections (not affected by number of links per page). $build_span_pages = 1; # Number of links per page. $build_links_per_page = 10; # Detailed View: The script can build a single html page per link. This is # great if you have a review in your database. To enable, you must set# the directory where all the pages will be stored, the url to that directory# and set the enable option. $build_detailed = 0; $build_detail_path = "$build_root_path/Detailed"; $build_detail_url = "$build_root_url/Detailed"; # Use Templates: instead of editing site_html.pl, you can edit regular html pages# encoded with special <%links_tags%>. It's not as flexible as site_html.pl, but it # may be easier. $build_use_templates = 1; # Site Title, the default title to use. You should really spend some time customizing# the directory though! $build_site_title = 'Avs Porn Links 4 You'; # Date Routines# --------------------------------------------------------# Your date format can be whatever you like, as long as the following# two functions are defined &date_to_unix and &unix_to_date:# The default is dd-mmm-yyyy. sub date_to_unix {# --------------------------------------------------------# This routine must take your date format and return the time a la UNIX time().# Some things to be careful about.. # timelocal does not like to be in array context, don't do my($time) = timelocal (..)# int your values just in case to remove spaces, etc.# catch the fatal error timelocal will generate if you have a bad date..# don't forget that the month is indexed from 0!# my $date = shift; my $i; my %months = map { $_ => $i++ } qw!Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec!; my ($day, $mon, $year) = split(/-/, $date); exists $months{$mon} or return undef; $day = int($day); $year = $year - 1900; require Time::Local; my $time = 0; eval { $time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year); }; if ($@) { die "invalid date format: $date - parsed as (day: $day, month: $months{$mon}, year: $year). Reason: $@"; } return $time;} sub unix_to_date {# --------------------------------------------------------# This routine must take a unix time and return your date format# A much simpler routine, just make sure your format isn't so complex that# you can't get it back into unix time.# my $time = shift; my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $tz) = localtime $time; my @months = qw!Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec!; $year = $year + 1900; return "$day-$months[$mon]-$year";} sub long_date {# --------------------------------------------------------# This routine is for printing a nicer date format on the what's new page. It should # take in a date in your current format and return a new one. my $time = shift; $time = &date_to_unix ($time); my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $tz) = localtime $time; my @months = qw!January February March April May June July August September October November December!; my @days = qw!Sunday Monday Tuesday Wednesday Thursday Friday Saturday!; $year = $year + 1900; return "$days[$dweek], $months[$mon] $day $year";} # -------------------------------------------------------------# Extra Paths -- unless you feel the need to rename files, you# can leave this as is.# ------------------------------------------------------------- $db_script_url = $db_dir_url . "/admin.cgi"; # Admin script. $db_header_path = $db_script_path . "/header"; # Place to store header and footers. $db_footer_path = $db_script_path . "/footer"; $build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script. $build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script. $build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script. $build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script. $build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script. $build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script. $db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script. $build_css_url = $build_root_url . "/links.css"; # URL to your CSS file. $db_lib_path = $db_script_path; # PATH of library files. $db_links_name = "$db_script_path/data/links.db"; # PATH to links database. $db_category_name = "$db_script_path/data/categories.db"; # PATH to category database. $db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database. $db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database. $db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database. $db_email_name = "$db_script_path/data/email.db"; # PATH to email database. $db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file. $db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file. $db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory. $db_template_path = "$db_script_path/templates"; # PATH to templates. $db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
$recip_report = "/path/to/recip.html"; # PATH to recip report1; HERE IS MY LINKS.DEF # -------------
# Links
# -------------
# Links Manager
#
# File: links.def
# Description: Contains the database definition for links.
# Author: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================# Database Definition: LINKS
# --------------------------------------------------------
# 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, 'No', ''],
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']
recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']
);

# 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_category = 4; $db_modified = 3; $db_url = 2;
$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;# Field names you want to allow visitors to search on:
@search_fields = (1,2,5); # System defaults. When adding new links or modifying links, these fields
# can not be overwritten by a user.
%add_system_fields = (
isNew => 'No',
isPopular => 'No',
Hits => '0',
Rating => 0,
Votes => 0,
ReceiveMail => 'Yes'
);# Hash of column names to possible options. If you want to use a select form
# field, you can use &build_select_field in your HTML page. This routine will
# make a <SELECT> input tag using the following values:
%db_select_fields = (
isNew => 'Yes,No',
isPopular => 'Yes,No',
ReceiveMail => 'Yes,No'
);# Hash of column names to radio values. If you use &build_radio_field, it will
# make a <INPUT TYPE="RADIO"> tag for you using the options specified in the hash.
%db_radio_fields = ( );# Maximum number of hits returned in a search. Can be overridden in the search
# options.
$db_max_hits = 10;# Use the built in key tracker.
$db_key_track = 1;# ===========================================================================
# Build up some variables from your definitions. Internal use only.
@db_cols = ();
foreach (sort { $db_def{$a}[0] <=> $db_def{$b}[0] } keys %db_def) {
push (@db_cols, $_);
$db_sort{$_} = $db_def{$_}[1];
$db_form_len{$_} = $db_def{$_}[2];
$db_lengths{$_} = $db_def{$_}[3];
$db_not_null{$_} = $db_def{$_}[4];
$db_defaults{$_} = $db_def{$_}[5];
$db_valid_types{$_} = $db_def{$_}[6];
($_ eq $db_key) and $db_key_pos = $db_def{$_}[0];
}1; Please if anyone could help , it would be greatly appricated.thanksjamie
Quote Reply
Re: [jamies] RECIP link In reply to
Can someone tell me exactly WHERE to get the recip mod for Links 2.0? I see dozens of posts with questions and problems, but nowhere can I find it.

HELP!

Thanks in advance...

Charlie
Quote Reply
Re: [cvance] RECIP link In reply to
I think no one is supporting this mod now!
No response from authors of mod??

I'm also getting same problem in links.def.
Quote Reply
Re: [fahad] RECIP link In reply to
If it's the SAME error, it may be this...

From links.cfg:
Code:
# Paths and URL's to Important Stuff
# -------------------------------------------------------

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/full/path/to/your/site/cgi-bin/links/admin";
$db_dir_url = "http://www.yoursite.com/cgi-bin/links/admin";

# Link to check for on other sites
$site_check = "http://www.yoursite.com";

#full path to report
$report_url = http://www.yoursite.com/...templates/recip.html;
This should be the URL to the report page (I think...): $report_url = http://www.yousite.com/report.html

#full path to recip script place in the same dir as your admin.cgi
$report_cgi = http://www.yoursite.com/...inks/admin/recip.cgi;
This should be the PATH to the report cgi: $report_cgi= "/full/path/to/your/site/cgi-bin/links/admin/recip.cgi"


# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = http://www.yoursite.com/cgi-bin/links;


There is also this at the bottom of the file:
Code:
$recip_report = "/path/to/recip.html"; # PATH to recip report



Which should be more like so:
Code:
$recip_report = "$build_root_path/recip.html"; # PATH to recip report


In the links.def, file, see this:
Code:
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']
);

There needs to be a comma here:
Code:
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
recip => [14, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp']
);


This is just from looking over this thread, I do not have the mod on hand to study.



Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Feb 5, 2004, 3:50 PM
Quote Reply
Re: [PerlFlunkie] RECIP link In reply to
Thanks for that perlfunkie!
It works, but the report which is generated is empty.
Quote Reply
Re: [fahad] RECIP link In reply to
This is a long thread can any one paste the txt file or zip file of this mod
Megrisoft
Web Hosting Company
India Software Company
SEO Company


Quote Reply
Re: [megri] RECIP link In reply to
This mod was never completed. There is no final txt or zip file. The script causes only a page with date/time but does not actually check any urls for recip links. This whole thread should be removed so people don't keep wasting thier time trying this mod unless it's actually going to get finished which doesnt look likely.
Quote Reply
Re: [madtech] RECIP link In reply to
I've tried 5 times now to get this up to work, using the link delay provided ( http://www.uv-ray.com/recip_mod/ ) I added all the info exactly how it stated, also I read the entire thread, for any fixes and, well, anything I missed. This is the error I kept getting each time.
Quote:
CGI ERROR ========================================== Error Message : fatal error: syntax error at /home/freqaskd/public_html/cgi-bin/links/admin/links.def line 37, near "recip" Compilation failed in require at admin.cgi line 55. Script Location : admin.cgi Perl Version : 5.008001
Can someone tell me what I'm missing. Thanks in advance.
Quote Reply
Re: [spherica] RECIP link In reply to
Attach your links.def for us to see...
Also, does you have a cgi error log you can look at? It woud be a feature of your hosting package, and may have more details.

Did you make the changes outlined in this post, particuarly the missing comma?


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Mar 31, 2004, 12:42 PM
Quote Reply
Re: RECIP Link Mod THAT WORKS! In reply to
Hey Everyone,

Visit the link below for the newest reciprocal link mod (as of June 21,2004):

http://www.uv-ray.com/recip_mod/

I just finished installing it on my server and it works just fine (am only using Part 1 of the 2 Parts however). If you have any problems or additions I would post them in this thread.

- Andy


Pickle Network
Network of websites both salty and dill.

Last edited by:

asmith: Jun 21, 2004, 9:16 AM
> > > >