MetaKeywords 2.6.2

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

Post Reply
UTAKA
Posts: 37
Joined: Sun Jan 24, 2010 8:01 am
Location: phpmyfaq-jp.org
Contact:

MetaKeywords 2.6.2

Post by UTAKA » Sat Feb 27, 2010 11:13 pm

MetaKeywords
########################################
#
# MetaKeywords SEO?
#
#
#
###-- OPEN -----------------
#

index.php

#
##-- Find -------------------------------
#

$keywords = ' ' . $faq->getRecordKeywords($id);

#
#---- Replace With ------------------------
#

$keywords = ',' . $faq->getRecordKeywords($id);

#
##-- Find -------------------------------
#

$keywords = ' ' . $faq->getRecordKeywords($id);

#
#---- Replace With ------------------------
#
$keywords = ',' . $faq->getRecordKeywords($id);
#
##-- Find -------------------------------
#

$helper = PMF_Helper_Category::getInstance();
$helper->setCategory($category);

#
#---- After Add ------------------------
#

$keywords_array = array_merge(explode(',',$keywords),explode(',',$faqconfig->get('main.metaKeywords')) );
$keywords_array = array_filter($keywords_array, 'strlen');
shuffle($keywords_array);
$keywords = implode(',',$keywords_array);


#
##-- Find ------------------
#

'metaKeywords' => $faqconfig->get('main.metaKeywords').$keywords,

#
#---- Replace With ------------------------
#

// 'metaKeywords' => $faqconfig->get('main.metaKeywords').$keywords,
'metaKeywords' => $keywords,
---------------------------------------
Sorry...I am not good at English.
http://www.phpmyfaq-jp.org
---------------------------------------

Thorsten
Posts: 14730
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: MetaKeywords 2.6.2

Post by Thorsten » Sun Feb 28, 2010 11:03 am

Hi,

nice patch, I added to 2.6.3 and 2.7.0-alpha. Thank you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply