View Single Post
Old 07-26-2010, 02:12 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,383

Here is how you can do it with CyberSEO Suite.

1) Go to the syndicating feed setting menu.
2) Enable the "Create tags from category names" option.
3) Past the following code into the "PHP Code <?php .. ?>" field:

PHP Code:
$lines = @file "http://www.mydomain/tags.txt" );

if (
count $lines ) > 0) {
    foreach ( 
$lines as $line ) {
        
$words explode "|"$line );
        
$tag $words [0];
        foreach ( 
$words as $word ) {
            if (
stripos $post ['post_content'], trim $word ) ) !== false) {
                
$post ['categories'] [] = $tag;
            }
        }
    }

Where http://www.mydomain/tags.txt must be replaced with the path (URL) to a text file with your tags list.

4) Save the feed's settings.

Now a few words about tags list file format. It's just a plain text file where each line contains a tag name which will be searched in the post body. E.g.:

hardcore
anal
big tits
lesbian
etc...

Whose words from the tag list that will be found in the syndicating post body, will be added to the post tags.

Also you can specify a set of words/phrases that correspond to some particular tag. For example, if you want to make the "anal" tag associated to these phases: "ass fuck", "asshole", "fucked in the ass". Just modify your tags list as shown below:

hardcore
anal|ass fuck|asshole|fucked in the ass
big tits
lesbian
etc...

So if the syndicating post will contain any of these phases: "anal", "ass fuck", "asshole", "fucked in the ass". The "anal" tag will be added.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote