Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Tag Cloud from Title Words

Quote Reply
Tag Cloud from Title Words
Hi Andy,
I'm using the global below to print out "tags" from link title on the detail page
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);

}

What do you think?
Is it possible to show a tag cloud relating to the number of words in the link titles?

Thanks

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Tag Cloud from Title Words In reply to
Hi,

Not sure what you mean by a "tag cloud" ... can you give me an example?

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

Last edited by:

Andy: Feb 20, 2012, 1:22 AM
Quote Reply
Re: [Andy] Tag Cloud from Title Words In reply to
Hi Andy,
you can see two tagclouds at the bottom of my page.
www.gpaed.de

They rely on the number of searchwords and the number of links in category.
Would be great to have a tag cloud from the words in the title. The more a word is in the title field, the bigger the print out of the tag...

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Tag Cloud from Title Words In reply to
Ah ok, so basically if we had the word "Test" in the title/description multiple times, it should show in the "cloud" with 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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Tag Cloud from Title Words In reply to
Yes, that's it.
At the moment the globals shows only words from the title, but the combination title/description would be interesting, too.

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Tag Cloud from Title Words In reply to
Ok, will try and have a look for you later on. In the middle of another job atm, which I need to concentrate on :)

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Tag Cloud from Title Words In reply to
are there any news for this project?

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Tag Cloud from Title Words In reply to
Hi,

Sorry, I've been *really* bogged under with everything. I was trying to re-write some of my older plugins as well, which has taken up what little time I did actually have.

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 (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [kailew] Tag Cloud from Title Words In reply to
Hi,

I have created the plugin for this purpose some years ago. It was uninstalled from my site now but if you guys are interesting it, I can re-installed it for your reviews.

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Tag Cloud from Title Words In reply to
yes please

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] Tag Cloud from Title Words In reply to
Hi Kai,

I will also amend it so that it supports lsql. I will let you know soon.

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Tag Cloud from Title Words In reply to
Hi,

I have amended it to support lsql and glinks. It has those features:

1) Tag will be added when link is added/modifed automatically by using links' Title and Description and other fields that can be changed in plugin's options. For the first time, admin can import tags from existing links.

2) Users can add more tags for each link.

3) Tags can be show as cloud(any where) and shown as a field Tags in link.html and detailed.html template

4) Click on each tag, its related links will be shown.

5) It can be reviewed here and buy here

6) when a link is deleted, its tags will be removed automatically

7) Any questions/suggestion?

Cheers,

Dat

Programming and creating plugins and templates
Blog