PHP Classes

File: README.txt

Recommend this page to a friend!
  Classes of Ver Pangonilo  >  Autolink Keywords  >  README.txt  >  Download  
File: README.txt
Role: Documentation
Content type: text/plain
Description: Instructions
Class: Autolink Keywords
Automatically creates links for content keywords
Author: By
Last change:
Date: 15 years ago
Size: 1,257 bytes


Class file image Download
The output of the automatic keyword generator will used as an input to this class thus its inclusion on this class files.

1. Create a list of keyword and corresponding link.

$keyword_array = array( 
"security" => "", 
"state" => "", 
"technology" => "", 
"passport" => "", 
"department" => "", 
"passports" => "", 
"radio" => "", 
"bruce" => "" 

This list could be an output from a database query.

Example1 shows this method.

2. Create a file for list of keyword and corresponding link. The file
"linkedKeywords.php" shows how to do this. A php file is used for better security.

Example2 shows this method.

3. Autolink class includes an "id" and "class" for easy formatting of linked keywords.

4. Replacement type: 

CASE INSENSITIVE: $type = "i";
*This type of replacement is on example 1.

*This type of replacement is on example 2.
*This is the recommended replacement type to prevent proper words being replaced with 
lower case letters.
For more information send a message to info at phpclasses dot org.