Heres to put links in your database automatically
http://www.gossamer-threads.com/...um3/HTML/002456.html And uh, to make it build i'm guessing you can do this...
In add.cgi at the top where you see this
require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/nph-build.cgi"; require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
};
Put the bolded line that you see in yours
Then below, where you see this
# Send the admin an email message notifying of new addition.
&send_email;
Add this under it,
Code:
# Now we're building the database again
# This may be a long wait for the user and
# recommended for a very large database
&build_backup;
&build_url_index;
&build_detailed_view;
&build_category_information;
&build_stats;
&build_home_page;
&build_category_pages;
This looks ok, but don't know if it'll work. Oh, this could be unsafe, and i would recommend some filtering of words or something, because people could overload your links database and when you go on, you'll have to delete maybe 10000 bad or offensive, or invalid links.
Lavon