Topic: Enhanced Dynamic Keywords - SEO tweaking
daddysupa
avatar
Helper
Helper
Posts: 241

Posted:
5.Mar 2006 - 21:06

Note

This mod is now updated to version 1.1, please download latest version from http://www.ttgapers.com - the new version addresses ALL of the previously discovered bugs.

Please backup: /module/Xanthia/plugins/functions.keywords.php

Current situation:

1. Dynamic keywords have been "removed" (actually it is there) in .762 (not sure of the reason)
2. The old way of generating dynamic keywords was pretty inefficient and essentially, generated your entire page content less a some stopwords.

What this mod does:

1. Two tiered approach, with both stopwords & preferred keywords.
2. Compares pagetext against the 2 types of keywords, then extracts the stopwords, keeps the preferred and other text.
3. Ranks the remaining text by frequency, and by strings.
4. Spits out the results as keywords.
5. Limits the keywords string

Tested platforms
PostNuke .762

Where to get it?
http://www.ttgapers.com (Registration required)
Support: http://www.ttgapers.com/PNphpBB2-viewforum-f-9.html

This is solely intended for .762 users with Xanthia themes. Feel free to test on legacy/AT-themes and let us know if it works. I do not expect this to work with AT-themes, and to my understanding AT includes this feature already.

Take care,

supa

--
ttgapers.com - the latest from the caribbean


ttgapers.com
Slugger
avatar
Professional
Professional
Posts: 1185

Posted:
10.Mar 2006 - 02:35

Hey supa,

OK the debate goes on...are meta tags important for ranking? I assume you figure it can't hurt and I agree.

One of things that is unpolished in the typical off-the-shelf distro is language, so getting a site to look right in multiple languages is a challenge to say the least and the meta tags are almost always forgotten.

Maybe this is important; maybe not but, unless you've taken some measures, the meta tags in a typical PN site aren't going to be multilingual.

Your slogan, keywords, title, and description will always be the same even when content is in a different language. Is this a problem? I'll leave that debate for others. In the meantime, I can see where your enhanced dynamic keywords will be useful.

Thanks,

Slugger


Oh, and for anyone who cares and all you pefectionists who hack your theme templates once a year to update the copyright tag, here's my solution to change your description and always keep your copyright notice current.

I changed these meta tags in my templates:

Code

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<!--[lang]-->" >
<meta name="description" content="<!--[slogan]-->" />
<meta name="copyright" content="Copyright (c) XXXX by <!--[sitename]-->" />



To:


Code

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<!---[ pnml name='_RFC3066LANG' ]-->" >
<meta name="description" content="<!--[ pnml name='_SITEDESCRIPTION' ]-->" />
<meta name="copyright" content="<!--[ pnml name='_COPYRIGHT' ]-->" />


Then, in themes/mytheme/lang/anylanguage/global.php, I added:


Code

define('_RFC3066LANG', 'the RFC 3066 code for that language');
define('_SITEDESCRIPTION','The description in that language');
define('_COPYRIGHT','Copyright (c) YEAR1-'.date('Y').' by Me');


Oh...and I forgot to add. Make sure and replace special characters, if any, in the above definitions with their HTML entity or your site will not validate.

Slugger
daddysupa
avatar
Helper
Helper
Posts: 241

Posted:
11.Mar 2006 - 00:50

Quote

Your slogan, keywords, title, and description will always be the same even when content is in a different language. Is this a problem? I'll leave that debate for others. In the meantime, I can see where your enhanced dynamic keywords will be useful.


And that there was the driving force. I had content, with keywords nowhere near my "main" keywords, and therefore to me, it was bad input, and therefore bad output..bad rankings for those pages. Without invalidresponse's add_description mod, all pages will also have the same description, which is also bad. it makes it appear to spiders like google, that all these pages, sometimes thousands all have the same description and keywords! that is no good, and CAN possibly lead to blacklisting. PostNuke's current method of generating dynamic keywords was also bad, and this is where this mod comes in...that is, to better generate dynamic keywords....look it also thos 3 word keywords, where PN does only single keywords at a time.

anyways...hopefully this might be rolled in one day, or actually made better the PN way.

this is just a way of giving back.

supa

--
ttgapers.com - the latest from the caribbean


ttgapers.com
Slugger
avatar
Professional
Professional
Posts: 1185

Posted:
17.Mar 2006 - 06:39

It's probably worth pointing out that one must insert

Code

<meta name="keywords" content="<!--[keywords]-->" />
and not

Code

<meta name="keywords" content="<!--[$keywords]-->" />
as written in the read me doc included with the hack.

Also, it will require fine tuning. I got "read the full article", "–", "edit", "delete", "Comments 0", and some other non- "keywords". Easy enough to fix by adding these to your common word list (commonword.php) but anyone trying this must remember to tweak it to make it work right.

Slugger
wheatcom
avatar
Registered User
Registered User
Posts: 1

Posted:
25.Mar 2006 - 00:59

Well, I must be doing something wrong. Two things are not happening. The preferred keywords I entered in Admin/Settings are not showing up. And the keyords for my index page show as " , ". For all pages except the index page, the keywords generated from page text are there. The templates all appear to have the correct setting. I'm using 7.62 with an Xanthia theme. Thanks for any help.

Paul Cardin
daddysupa
avatar
Helper
Helper
Posts: 241

Posted:
29.Mar 2006 - 00:37

Hi wheatcom,

Please post all support requests here:

http://www.ttgapers.com/PNphpBB2-viewforum-f-9.html

I rarely check this forum.

Of note:

1. Please go to http://www.ttgapers.com and download and install the latest version.

It corrects your problem described.

Please read the readme thoroughly, most questions are answered in there as this is not a huge mod.

Let me know how it goes. Please also send/quote your website address so i can have a look at the issue(s).

supa

--
ttgapers.com - the latest from the caribbean


ttgapers.com