1. Auto fill tags in Datalife Engine - Works for all DLE

Auto fill tags in Datalife Engine - Works for all DLE

  |   23
Auto fill tags in Datalife Engine - Works for all DLE

Auto fill tags in Datalife Engine is small hack to help you to fill out the tags cloud or keyword when you post your article and forget to fill out tag cloud or keyword for the article, the hack will automatically add the tags cloud for you, the hack will fill in field {tags}

Installation:

1) Open the file /engine/modules/addnews.php
Find:
if( $found ) {

Above it insert:
/*-------------Auto Tags Starts ----------------*/
$arr_tags = explode(' ', $title);
$str_tag = '';
foreach ( $arr_tags as $tvalue ) {
$tvalue = trim($tvalue);
preg_match('/[a-zA-Z]{4,}/', $tvalue, $t_v);
if (isset($t_v[0])) {
$str_tag .= $t_v[0].',';
}
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
/*-------------!Auto Tags Ends ----------------*/

2) Open the file /engine/inc/addnews.php
Find:
if( trim( $_POST['vote_title'] != "" ) ) {

above it insert the following:
/*-------------Auto Tags Starts ----------------*/
$arr_tags = explode(' ', $title);
$str_tag = '';
foreach ( $arr_tags as $tvalue ) {
$tvalue = trim($tvalue);
preg_match('/[a-zA-Z]{4,}/', $tvalue, $t_v);
if (isset($t_v[0])) {
$str_tag .= $t_v[0].',';
}
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
/*-------------!Auto Tags Ends ----------------*/

That's It
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

0

Comments 23

code3h
code3h
V.I.P.
Commented By code3h on July 30, 2012 (12:02 pm)
Tried it on DLE 9.6, seems working fine laughing

But ! It will Tag only if any tags exist ?
9 22Forum topics : 22Forum replies : 66Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on July 30, 2012 (7:23 pm)
I think the way it works is grab the first available tags from title and shortstory area, you should see it in action after you added any articles...
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
nellyville
Commented By nellyville on July 31, 2012 (11:16 am)
Tried on DLE 9.5 version and not working for me foo
31 42Forum topics : 9Forum replies : 34Forum likes : 1

Check my website http://www.Jocuriarena.com
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on July 31, 2012 (8:45 pm)
tested on 9.3, 9.4 9.5 and 9.6, working fine here
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
heroking15
heroking15
Members
Commented By heroking15 on August 9, 2012 (2:21 pm)
yes working on
www.maxbooks.info
i am using DLE 9.6
N/A 1Forum topics : 1Forum replies : 1Forum likes : 0
chrochro
chrochro
Members
Commented By chrochro on October 5, 2012 (4:50 am)
It not worked with DLE 9.7
Please help me.
prey
N/A 4Forum topics : 0Forum replies : 0Forum likes : 0
sh47d0wn
sh47d0wn
Members
Commented By sh47d0wn on October 27, 2012 (12:43 am)
please hel DLE 9.7 not work prey
N/A 6Forum topics : 0Forum replies : 0Forum likes : 0
Commented By realmadridista on December 9, 2012 (3:02 am)
module 100% workind my site,but one problem,module not tagged gergian word,i from georgian,my site is georigam and news name are georigan,module not taged georgian word,only english,please help me
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on December 9, 2012 (5:04 pm)
sh47d0wn,
I don't know why not working for you, tested on 9.7 working perfectly

realmadridista,
the English words you mentioned above are working fine, but I have no idea about your local language, but if you use utf-8 version of dle then it should work fine, perhaps you can give me the link to any websites that using your language so I can test because I tested on "Thai" language for my language, it's working fine.
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
ioloman
ioloman
Members
Commented By ioloman on January 12, 2013 (1:06 am)
Works well with 9.6 THX
N/A 14Forum topics : 1Forum replies : 3Forum likes : 0
Alammary888
Commented By Alammary888 on March 4, 2013 (2:00 pm)
thanks .. work me dle 9.8 ..

^^
N/A 3Forum topics : 1Forum replies : 2Forum likes : 1
letsdl
letsdl
Members
Commented By letsdl on June 2, 2013 (11:20 pm)
thanks a lot it work in 9.8 but i didnt fill tag box just fill keyword and description
how can i solve this?
N/A 6Forum topics : 5Forum replies : 12Forum likes : 0
-AnaRchy-99-
Commented By -AnaRchy-99- on October 29, 2013 (6:41 pm)
this only insert tags not auto insert at keywords
N/A 1Forum topics : 4Forum replies : 6Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on October 30, 2013 (9:53 am)
it's for "tags" which is "tags cloud module" not meta keyword
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
sahir23
sahir23
Members
Commented By sahir23 on January 23, 2014 (3:56 pm)
not working in dle 10.0
N/A 9Forum topics : 5Forum replies : 8Forum likes : 0
DLEStarter
DLEStarter
DLE TEAM
Commented By DLEStarter on January 23, 2014 (4:13 pm)
tested, working with 10.0 and 10.1
29 225Forum topics : 9Forum replies : 558Forum likes : 116
Inphecthyuz
Commented By Inphecthyuz on January 26, 2014 (9:54 pm)
Quote: DLEStarter
tested, working with 10.0 and 10.1


How did you did to get working on DLE 10.1? Is not working for me =(
N/A 21Forum topics : 1Forum replies : 2Forum likes : 0

Please wait while the pixels get undressed. No peeking ;)
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on January 27, 2014 (5:08 pm)
Quote: Inphecthyuz
Quote: DLEStarter
tested, working with 10.0 and 10.1


How did you did to get working on DLE 10.1? Is not working for me =(

It's indeed working fine, however, I think DLEStarter only tested on ADmin CP not test in main page, so if you test it yourself it will work 100% in admin cp, but in main page doesn't seem to work but I will find solution for this shortly.
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
Inphecthyuz
Commented By Inphecthyuz on January 28, 2014 (2:14 pm)
Quote: sawanbanna
It's indeed working fine, however, I think DLEStarter only tested on ADmin CP not test in main page, so if you test it yourself it will work 100% in admin cp, but in main page doesn't seem to work but I will find solution for this shortly.


I have the script runing and it do not work on Admin CP =(
N/A 21Forum topics : 1Forum replies : 2Forum likes : 0

Please wait while the pixels get undressed. No peeking ;)
yorismith
yorismith
Moderators
Commented By yorismith on January 28, 2014 (6:34 pm)
I checked with DLE 10.1 it's absolutely 100% working in admin cp but not in main page...i can confirm that for sure in admin cp is working great in 10.1!
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
Inphecthyuz
Commented By Inphecthyuz on January 30, 2014 (12:48 pm)
Ohh yeah i see the change on the new articles not on the old ones... I edited the old ones and save with new date, new values etc and no keywords are filling on it.

Sorry for my bad english :P
N/A 21Forum topics : 1Forum replies : 2Forum likes : 0

Please wait while the pixels get undressed. No peeking ;)
chakala
chakala
Members
Commented By chakala on May 5, 2014 (2:55 am)
here other version, where you can choose how many tags you want and also tags are taking from short-story.
If you use other language than English you just have to insert other symbols after Zа, here used Russian for exemple: [a-zA-Zа-яА-Я]
1) Open the file /engine/modules/addnews.php
Find:

if( $found ) {


Above it insert:

/*-------------Auto Tags Starts ----------------*/
$nNumTags = 17;
$szContent = strip_tags($short_story);
$arr_tags = explode(' ', $szContent);
shuffle($arr_tags);
$nNumOfTags = 0;
$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].', ';
$nNumOfTags ++;
}
if ($nNumOfTags > $nNumTags)
break;
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
/*-------------!Auto Tags Ends ----------------*/


2) Open the file /engine/inc/addnews.php
Find:

if( trim( $_POST['vote_title'] != "" ) ) {


above it insert the following:

/*-------------Auto Tags Starts ----------------*/
$nNumTags = 17;
$szContent = strip_tags($short_story);
$arr_tags = explode(' ', $szContent);
shuffle($arr_tags);
$nNumOfTags = 0;
$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].', ';
$nNumOfTags ++;
}
if ($nNumOfTags > $nNumTags)
break;
};
$_POST['tags'] = substr($str_tag, 0, strlen($str_tag)-1);
/*-------------!Auto Tags Ends ----------------*/
1 3Forum topics : 0Forum replies : 0Forum likes : 0
nellyville
Commented By nellyville on March 20, 2015 (5:18 pm)
Tested on DLE 10.4 and not working ....
31 42Forum topics : 9Forum replies : 34Forum likes : 1

Check my website http://www.Jocuriarena.com
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.