Download Perl Scripts

Link Engine Link Engine - $0.00 Version
Add to Cart



back
download
support
demo/see it work
RSS Feed
_______________________________________

LinkEngine by Intelliscript.net
(c) 2004,2005 Jason Silver

_______________________________________

LinkEngine makes it easier to post outgoing links on your site via a web browser.

Report any bugs or improvement suggestions to jasonsilver@crookedbush.com.

Yours,
Jason Silver

_______________________________________
Overview:
--------

How It Works:

Instead of manually editing an HTML when you want to add links, now you can do it from a browser.
Additionally, visitors can search your links, or you can sort them by categories.

LinkEngine is called from a server side include page, (extension .shtml). Depending on
how you ask for the script from this page, it will be displayed in one of three possible
formats.

1. Regular View
2. Plain View by Category
3. Random 'Link of the Day' view

1. To display the regular view (which is also searchable), use the following code:
<!--#include virtual="link_engine.cgi"-->

2. To display a plain view, by category, use the following code:
<!--#include virtual="link_engine.cgi/plain"-->

3. To show a random view, place this code somewhere in your page:
<!--#include virtual="link_engine.cgi/rand"-->


_______________________________________
Installation Overview:
-----------------------
1. Set some options at the beginning of the scripts
2. Use FTP to upload the files
4. Set exectute permissions on the Perl script, and write permissions on the
text files
4. Test the script

_______________________________________
Here's How!
-----------

1. Using a text editor like textpad, or notepad, open the .pl file
Change the path to perl so that it's
configured for your server.
It's usually:
#!/usr/local/bin/perl
or
#!/usr/bin/perl

2. Change the variables,

For example,

$server_file = "link_database.txt";

The server file is where the links will be saved. CHMOD it 777.

$records_to_display = 15;

How many on one page before a next button appears?

$datapath = "";

This is the path to your server file.

$html_page = "/regular.shtml"; # for using Server Side Includes

This might be 'links.shtml' or 'link_page.shtml', it's up to you.

$script_url = "/cgi-bin/link_engine.pl"; # for saving changes in admin panel.

URL to your script.

$default_search = "";

This search will be executed before results are displayed.

$default_category = "all";
$hide_descriptions = 1; # default
$url = $ENV{'SERVER_NAME'};

$login = 'admin';
$password = 'password';

This is for administration and adding of links.

$highlight_color = 'yellow';

For search results to be highlighted.

$display_categories = 1;

You can set this to 0 to opt out of the category display.

$menu_alignment = "right";

'right' or 'left'

$search_invitation = "Search for a link:";

You could change this to "Search our link database," or "Find a Link"

$search_each_word = 1;

Set this to 0 to only accept phrase searches.

$image_directory = "/images/";

This is a URL to where your images are stored.

$style = "font-family: Tahoma, Verdana; font-size: 8pt";

@common_words = ("a","at","be","do","for","how","to","the","so","my","but","is","it","on","this","i"); # filtered from search

These words are filtered and not searched.

3. To adminsitrate, open the link_engine.pl file with ?login=1 at the end like this:
http://yoursite.com/cgi-bin/link_engine.cgi?login=1

4. If you wish, Open the header.txt and footer.txt file and paste in header and footer
content from your main site so that the pages look like they belong to the
style used in other parts of your site.

5. Use an FTP program like WS_FTP or CuteFTP (just some examples I'm aware of)
and upload the files to your server's cgi-bin.

6. Set permissions (CHMOD):
.pl files: 755
.txt files: 777, or 766 if 777 is not allowed.

NOW, TEST IT:

7. From a browser type:
http://www.yoursite.com/cgi-bin/link_engine.pl


As always, let me know of problems, questions, or requests for features.
Jason Silver


_______________________________________
www.CrookedBush.com




 
top next download faq demo/see it work purchase xml pad file RSS Syndication OPML List - All Programs



[admin]

FileCABINET Script - Create a File Download section on your site.

In the Spotlight

AlbumAdvanced $0.00
Add to Cart
 Got a digital camera and want an easy way to share photos with family and friends? Try AlbumAdvanced- a fun and painless way to display photos on your web server. Create descriptions, customise folders, create slide shows, and more!
[more & download links]

What People Say

iAward $0
Add to Cart iAward is great. I've been using it for a few years and just came by to see if there were any updates. Thanks for making a great program. It's been wonderful.
Jason

[more & download links]

Post Page Comment