Coppermine的搜索引擎优化 - ○白子○ 的Blog

Coppermine的搜索引擎优化

[ 2007-01-11 22:13:48 | Author: seaboat ]
Font Size: Large | Medium | Small
Coppermine是套不错的图库程序,我用它搭了一个叫“藏画”的网站。

发现它的HTML代码中少了点东西:

<meta name="description" content="..." />
<meta name="keywords" content="..." />


看上去对搜索引擎不够友好,因此改了一下代码,增加这两行代码。以下是修改纪录:

lang/chinese_gb.php
$seo_meta_description = '藏画,中国书画艺术精品收藏';
$seo_meta_keywords = '极乐客,极客,奇客,中国,书法,国画,绘画,国学,艺术,音乐,古典,收藏,兴趣,爱好,China,Geek,Arts,Paint,Hobby,Copermine,Galery,CPG';
lang/chinese_big5.php
$seo_meta_description = '藏畫,中國書畫藝術精品收藏';
$seo_meta_keywords = '極樂客,極客,奇客,中國,書法,國畫,繪畫,國學,藝術,音樂,古典,收藏,興趣,愛好,China,Geek,Arts,Paint,Hobby,Copermine,Galery,CPG';
lang/japanese.php
$seo_meta_description = '中国の絵画と書道作品の収集';
$seo_meta_keywords = '中国,書道,書法,絵画,国学,芸術,音楽,古典,収集,興味,趣味,China,Geek,Arts,Paint,Hobby,Copermine,Galery,CPG';
lang/*.php
$seo_meta_description = 'Collection of painting and calligraphy work of China';
$seo_meta_keywords = 'China,calligraphy,penmanship,painting,Chinese classical literature,art,music,classics,collection,interest,hobby,China,Geek,Arts,Paint,Hobby,Copermine,Galery,CPG';
include/themes.inc.php
function pageheader($section, $meta = '')
{
 global $CONFIG, $THEME_DIR;
 global $template_header, $lang_charset, $lang_text_dir;

    global $seo_meta_description, $seo_meta_keywords;
    $seo_meta = "<meta name=\"description\" content=\"$seo_meta_description\" />";
    $seo_meta .= "\n<meta name=\"keywords\" content=\"$seo_meta_keywords\" />";
    $meta .= $seo_meta;

... ...
我只懂得中文(简体/繁体)、英文、日文,其他语言不懂,因此语言文件只能用英文的关键字。
[Last Modified By seaboat, at 2007-10-08 08:19:58]
Comments Feed Comments Feed: http://www6.webng.com/seaboat/feed.asp?q=comment&id=551

View Mode: Show All | Comments: 1 | Trackbacks: 0 | Toggle Order | Views: 800
Quote GanjaBoy14*
[ 2009-10-22 14:22:12 ]
In this process, the media is crucial; blogs, and mass media. ,

Post Comment
Smilies
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password: