Quote:
Originally Posted by V_RocKs
Perhaps you can make it so we can add a synonym table for categories...
Pretend I have a gay cams blog and it is taking in posts via RSS feed.
If a post has:
Check out Kyle on his free gay cam. This twink loves sticking butt plugs up his tight little ass on web cam! You can tell him to do just about anything and he will do it. Watch him jack his cock and even suck his own huge cock!
Then if I could make a syn table like:
big cocks|big dicks|big dick|huge dick|huge cocks|large dick ...etc...
and this post would end up in the big cocks category because of the match on huge cock.
Or...
Toys|butt plug|butt plugs|dildo|dildos|vibrator|vibrators
And we'd get category of Toys.
|
Actually the CyberSEO doesn't need this feature, because you can easily do it with the the following code:
Code:
$cat_file = file ( "CATEGORIS_FILE" );
if ($post ["post_content"] == "") {
$post ["post_content"] = $post ["post_excerpt"];
}
foreach ( $cat_file as $line ) {
list ( $cat, $keywords ) = explode ( ":", $line );
$keywords = explode ( "|", $keywords );
foreach ( $keywords as $keyword ) {
if (stripos ( $post ["post_content"], trim ( $keyword ) ) !== false) {
$post ['categories'] [] = $cat;
break;
}
}
}
Simple put it into the
PHP Code <?php .. ?> field and it will take care about category selection. Just make sure to replace "
CATEGORIS_FILE" above with the actual server path or URL of the category text file saved in the following format:
Code:
Big cocks:big dicks|big dick|huge dick|huge cocks|large
Toys:butt plug|butt plugs|dildo|dildos|vibrator|vibrators
Note the ":" symbol following each category name.