
As you all people know tags are very much important for SEO.. Its very time wasting and boring to insert tags for each post.. also sometimes you forget tags or dont enter because it irritates
but not anymore , from now onward you can save your time by reducing posting operation.. just follow the given instructions..
H@ck Features:
From the Title Words (exclude digits and special characters) Longer than 3 Alphabets and Adds as Tag Strings
1) Open the file /engine/modules/addnews.php
Finds the first occurrence of:
if( $found )
and ABOVE it insert following script
$arr_tags = explode(' ', $title);
$str_tag = '';
foreach ( $arr_tags as $tvalue ) {
$tvalue = trim($tvalue);
preg_match('/[a-zA-Zа-яА-Я]{4,}/', $tvalue, $t_v);
if ($t_v[0]) {
$str_tag .= $t_v[0].',';
}
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
2) Open the file /engine inc/addnews.php
Find:
if( trim( $_POST['vote_title']
And ABOVE it Paste The Above Given Code
Now Chill
DLEVIET FIXED
1. Change -2 to -1 at
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
Because we need to delete only "comma" at the end of tags string.
2. Code for English website
$arr_tags = explode(' ', $title);
$str_tag = '';
foreach ( $arr_tags as $tvalue ) {
$tvalue = trim($tvalue);
preg_match('/[a-zA-Z]{4,}/', $tvalue, $t_v);
if ($t_v[0]) {
$str_tag .= $t_v[0].',';
}
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
3. Code for Auto switch between Manual Auto tag
if( $_POST['tags'] == "")
{
$arr_tags = explode(' ', $title);
$str_tag = '';
foreach ( $arr_tags as $tvalue ) {
$tvalue = trim($tvalue);
preg_match('/[a-zA-Zа-яА-Я]{4,}/', $tvalue, $t_v);
if ($t_v[0]) {
$str_tag .= $t_v[0].',';
}
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
}
Idea: If tags textbox have data (you enter), don't do this code and else
4. For each tags characters length
From the Title Words (exclude digits and special characters) Longer than 3 Alphabets and Added as Tag Strings
Change {4,} in code if you want!

Updates
Dle templates English


