Show keyword in full news » DataLife Engine Support

DLEVIET - DataLife Engine Support Home Page

DataLife Engine Support » DataLife Engine » Edit Code » Show keyword in full news

Show keyword in full news

  • Author: admin;  
  • Views: 2035;  
  • Date: 12 September 2009;  
Show keyword in full news

Show keyword in full news


1. Open file engine/modules/show.full.php and find

$db->query ("SELECT id, title, date


Replace to

$db->query ("SELECT id, title, date, keywords


Next, find

$tpl->set('{title}', $metatags['title']);


below add


if( $row['keywords'] ) {
    $keys_arr = explode(', ',$row['keywords']);
    $keywords = '';
    foreach($keys_arr as $key)
    {
    $keywords .= '<a href="' .$config['http_home_url']. 'index.php?do=search&story='.$key.'&subaction=search" target="_blank">'.$key.'</a>, ';
    }
    $keywords = substr($keywords,0,-2);
    $tpl->set( '{keywords}', "<b>Keywords:</b> " . stripslashes( $keywords ) . ".");
} else {
    $tpl->set( '{keywords}', "" );
}


2. Open file fullstory.tpl of current template and add this tag : {keywords} in somewhere you want to show

This page is search keyword in your site
Next Page is Search keyword in Google
We encourage you to Register or Login to website under your name.

NhacDJsVn.Com

Posted 7 August 2010 20:55 Register: 15.03.2010
hey Bro this code not working with version 8.5 lick here to see www.nhacdjsvn.com
Information
Members of Guest cannot leave comments.

Pagerank Update

    Updates Yandex SEO
    13.04.2012
    16.02.2012
    04.02.2012
    Updates Yandex search
    17.05.2012
    15.05.2012
    12.05.2012
    Updates Yandex Catalogue
    18.05.2012
    16.05.2012
    11.05.2012
    Updates Google
    03.05.2012
    06.02.2012
    08.11.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2012    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31