Gossamer Forum
Quote Reply
Keyword density
Hi!

Is it possible to do a global or a plugin that could do the following:

1.) Based on the title and description calculate word density for every link
2.) Sort all results in descending order
3.) Make i.e. first 5 or 10 clickable on detailed pages using search.cgi
4.) Have the possibility of limitations:

a.) Show i.e. only words with 5 or more characters
b.) An exclude list for most common (useless) phrases

?

In this way we (our users) could get useful tags with which we could quickly and easily find relevant links.

Thanks in advance.
Quote Reply
Re: [katakombe] Keyword density In reply to
You would probably need a new table which would hold the list of words for each link, and then do a SQL query on a custom page, which would load the most used words.

Not particually simple to do though.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Keyword density In reply to
Unfortunately. But I consider it as a very attractive way to bring more dynamics on the existing site.
Quote Reply
Re: [katakombe] Keyword density In reply to
Mm, well it should be possible, but as I said - not particually simple. I could probably do it for you, but not sure when I would have time, as pretty bogged down with work ATM :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Keyword density In reply to
Everything is OK Andy! I know of course that there are other ways as well - say right here on the forum where there is a field provided for the tags, just don't know is it better or equally good way to find relevant links?
Quote Reply
Re: [katakombe] Keyword density In reply to
Have you considered using a "tag cloud" system, where you show the most popular search terms, with the ones with more searches being in a larger font?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Keyword density In reply to
Yes, of course, only that I think that it does not suit this purpose. This to me seems pretty cool and I think that many will like it, I don't know, maybe I'm wrong?
Quote Reply
Re: [katakombe] Keyword density In reply to
Yeah, this idea is cool :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [katakombe] Keyword density In reply to
katakombe wrote:
Hi!

Is it possible to do a global or a plugin that could do the following:

1.) Based on the title and description calculate word density for every link
2.) Sort all results in descending order
3.) Make i.e. first 5 or 10 clickable on detailed pages using search.cgi
4.) Have the possibility of limitations:

a.) Show i.e. only words with 5 or more characters
b.) An exclude list for most common (useless) phrases

?

In this way we (our users) could get useful tags with which we could quickly and easily find relevant links.

Thanks in advance.


Some time ago Andy wrote me a litte global, that does this, but only for the link title

Code:
sub {
my $tags = GT::Template->tags;
my @words = split(/\s+/,$tags->{Title});
my @links;

foreach (@words){
s/^\s*//sg;
s/[\.,]$//sg;
next if length($_)<4;
push(@links,qq|<a href="$CFG->{db_cgi_url}/search.cgi?query=$_">$_</a>|);
}

return join(" - ",@links);

}
Hope that helps

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Keyword density In reply to
Hi Matthias!

Firstly, thank you!I tried it and it works like a dream Smile

It may soon appear a complete solution that will include all of the above.

Anyway, I really appreciate your help.

Thanks again Wink
Quote Reply
Re: [katakombe] Keyword density In reply to
Hi,

I have created a plugin called TagLinks which has features you want, including 'tag cloud'. The clickable link currently does not link to search page but to a page that lists all links which matched that tag like this page

I hope that is not your site Smile

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Keyword density In reply to
Hi Dat!

Thanks for the offer. I looked at your plugin and I saw that works great.

Anyhow, it seems to me that this is not what I was looking for. In this way, I'm not sure whether there is a risk of entering the irrelevant keywords?

The same (or very similar) result could be also achieved with the addition of say 5 new lines for each link and the linking text entered by search.cgi.

I think that it would be best to count on the way how I previously described which does not mean that your plugin can not be used as a supplement.

Thanks again.
Quote Reply
Re: [katakombe] Keyword density In reply to
Thanks for your replies.

In the current plugin, all the tags are validated by admin before they are showing. That means those are entered by the user, while tags are based link Title and Description are validated autmtically if the link has been validated.

The number of tag to be displayed can be configrable and link destination as well. That is changed to search.cgi.

Cheers,

Dat

Programming and creating plugins and templates
Blog

Last edited by:

tandat: Sep 15, 2010, 6:26 AM