Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-12 19:21:40

jshan
Member
Registered: 2008-01-09
Posts: 67

Implement Tag Cloud?

Hi,

Does anyone have any good resource to point me to or suggestions/tips to implement a Flash tag cloud in TXP? I’m trying to make a tag cloud that is enclosed in a 3D sphere using Flash. Tags will float/rotate within, depending on your selection. I’m no Fash savvy by the way. :-P

Is it doable in TXP?

Thanks in advance!

Jay

Offline

#2 2009-03-13 09:24:17

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: Implement Tag Cloud?

Do you already have the flash file? if so, how does it need the parameters to be sent to it?


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#3 2009-03-14 08:01:15

jshan
Member
Registered: 2008-01-09
Posts: 67

Re: Implement Tag Cloud?

No… actually. I’m not sure how much effort required to create such Flash effect, considering I’m getting on board. :)

I’m using rss_unlimiated _category plugin which has a TXP tag to general Tag Cloud. But ultimately I’m trying to emulate the effect as the Tag Cloud I stumbled on here Quite obviously, it’s a Word Press.

Any help would be appreciated!

Offline

#4 2009-03-14 08:10:30

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Implement Tag Cloud?

You should just now where and the set of tags is set, i mean somewhere this info should tell flash script – tag and its height/font-weight.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#5 2009-03-14 18:44:02

jshan
Member
Registered: 2008-01-09
Posts: 67

Re: Implement Tag Cloud?

is there any good tut for creating such flash script? or is there similar plugin for me to begin with?

Offline

#6 2009-03-14 18:57:02

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Implement Tag Cloud?

A little view source and a bit of the old google leads us to information about cumulus tag cloud it’s open source

Last edited by MattD (2009-03-14 19:14:40)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#7 2009-03-15 22:42:16

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Implement Tag Cloud?

You could do this if there was a way to output your tags in the following format

<tags>
<a href='http://www.textpattern.com' style='22' color='0xff0000' hicolor='0x00cc00'>Textpattern</a>
<a href='http://www.textpattern.com' style='12'>tag</a>
<a href='http://www.textpattern.com' style='16'>cloud</a>
</tags>

using the code Roy has made available here
but I can’t figure out how to get either tru_tags or smd_tags to do it.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#8 2009-03-16 16:17:19

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Implement Tag Cloud?

This is doable using smd_tags (see Stef’s caveat)

For starters you could include the following in your article form (it’s important that the tagcloud variable have no line breaks)

	<div id="flashcontent">This will be shown to users with no Flash or Javascript.</div>

	<script type="text/javascript">
		var so = new SWFObject("/files/tagcloud.swf", "tagcloud", "600", "400", "7", "#ffffff");
		// uncomment next line to enable transparency
		//so.addParam("wmode", "transparent");
		so.addVariable("tcolor", "0x333333");
		so.addVariable("mode", "tags");
		so.addVariable("distr", "true");
		so.addVariable("tspeed", "100");
		so.addVariable("tagcloud", "<tags><txp:smd_tag_list wraptag="" break="" ><a href='<txp:site_url />smd_tags/article/<txp:smd_tag_name />' style='<txp:smd_tag_count wrapcount=""/>'><txp:smd_tag_name /></a></txp:smd_tag_list></tags>");		so.write("flashcontent");
	</script>

And you’ll need swfobject.js in your head

<script type="text/javascript" src="/js/swfobject.js"></script>

you can obtain tagcloud.swf and swfobject.js from Roy’s site

Last edited by MattD (2009-03-16 16:24:53)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#9 2009-03-16 17:50:01

jshan
Member
Registered: 2008-01-09
Posts: 67

Re: Implement Tag Cloud?

Matt, thanks lots! I think I have enough to begin with (or get confused…lol) for my shot.

Will post update if there’s some enlightment :)

Offline

#10 2009-06-30 21:11:42

superfly
Plugin Author
From: vienna, austria
Registered: 2008-11-12
Posts: 24
Website

Re: Implement Tag Cloud?

hello,

I made some changes to use the WP-Cumulus Flash plugin with tru_tags. See Plugin Help Page after installation. I cant provide any patches if it wont work, sorry ;-)

tru_tags_flash_v3.5.1. compressed
tru_tags_flash_v3.5.1.

Get the JS and SWF file from Roy Tanck

Add the JS file in your HTML header and put the tagcloud.swf file in the same folder as the swfobject.js:

<script type="text/javascript" src="<txp:site_url />PATH_TO_JS/swfobject.js"></script>

Use this in your textpattern form:

<div id="flashcontent">
Please get the Flash Plugin!
<txp:tru_tags_cloud listlimit="20" cutoff="exact" />
</div>
<script type="text/javascript">
var so = new SWFObject("<txp:site_url />PATH_TO/tagcloud.swf", "tagcloud", "300", "175", "7", "#ffffff");
// uncomment next line to enable transparency
//so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0x990000");
so.addVariable("tcolor2", "0x990000");
so.addVariable("hicolor", "0x6C0000");
so.addVariable("mode", "tags");
so.addVariable("distr", "true");
so.addVariable("tspeed", "100");
so.addVariable("tagcloud", "<tags><txp:tru_tags_cloud_flash listlimit="30" cutoff="exact" /></tags>");
so.write("flashcontent");
</script>

<code>is</poetry>

Offline

#11 2009-06-30 22:12:30

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Implement Tag Cloud?

You may want to ask Nathan to add this to the original tru_tags to avoid confusion.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#12 2009-07-01 18:46:13

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Implement Tag Cloud?

Or use your own plugin prefix. You cannot use another author’s plugin prefix unless you take over maintenance of a plugin.

Offline

Board footer

Powered by FluxBB