| | www.simball.de | Links mods | Live Search Mod | |
Gossamer-Threads - Links 2.0 modLive Search Mod - with SSI and Javascript - for templates.
This modification allows you to build a live search like
the "Live Search" by www.fireball.de. You can find a demo here. Instructions in a text file: follow this. Download a .zip file with all Live Search files: here.
Step 1.1: File: search.cgi In search.cgi find the following: code: and add the following under it: code:
Step 1.2: File: search.cgi In search.cgi add the following sub at the end of the file: code:
Step 2: File: jslivesearch.pl The jslivesearch.pl.txt file: Rename it to jslivesearch.pl and upload it to the directory where your other Links 2.0 CGI files like add.cgi, search.cgi, ... are stored. CHMOD it to Read & Execute for all three columns.
Step 3.1: File: livesearch.shtml
The livesearch.shtml.txt file: Remane it to livesearch.shtml. code: to the URL of the jslivesearch.pl file. And change: code: to the URL of your search.cgi file. Upload it to directory where .shtml files could be run.
Step 3.2: File: home.shtml Or put following code in the <Head> of your home.shtml template, if you want to display the Live Search on your Links 2.0 homepage. code: Perhaps change the URL (YOURDOMAIN) to the URL of the jslivesearch.pl file and add a "<" in front and a ">" at the end of the following: code:
code:
code: Perhaps change the URL (YOURDOMAIN) to the URL of your search.cgi file. Upload this file and rebuild your Links 2.0 pages.
Step 4: File: livesearch.txt Upload the livesearch.txt (an empty .txt file called livesearch.txt) data file to your Links 2.0 data directory and CHMOD it 666 = Read & Write for all three columns.
Step 5: File: links.cfg In your links.cfg file find: code:
And add following above it: code: In this example the last 5 search terms would be displayed. Upload your Links 2.0 links.cfg file.
That's it. Enjoy it. For installation of modifications please visit the webservices. Problems with installing or questions, visit the Gossamer-Threads Support Forum.
|
| | Top | |