Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
Some time ago here i found how to install cumuls flash at your site. I updated this method – wrote plugin, and now you don’t have to edit tru_tags or install edited version.
You just install my plugin thg_cumulus (after to tru_tags) and follow instructions from this video
link to thg_cumulus will appear durring 30th Aprel
Tell me if my language is too bad, do not hesitate
<!-- place this in the <head> -->
<script type="text/javascript" src="<txp:site_url />textpattern/swfobject.js"></script>
<!-- place this where cloud must appeare -->
<div id="flashcontent">
Please get the Flash Plugin!
<txp:thg_cumulus listlimit="25" cutoff="exact" />
</div>
<script type="text/javascript">
var so = new SWFObject("<txp:site_url />textpattern/tagcloud.swf", "tagcloud", "245", "245", "7", "#ffffff");
// uncomment next line to enable transparency
//so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0x8B4513");
so.addVariable("tcolor2", "0x58B4513");
so.addVariable("hicolor", "0x6C0000");
so.addVariable("mode", "tags");
so.addVariable("distr", "true");
so.addVariable("tspeed", "100");
so.addVariable("tagcloud", "<tags><txp:thg_cumulus listlimit="25" cutoff="exact" /></tags>");
so.write("flashcontent");
</script>
(edited topic subject to display plugin name. -Els)
Last edited by els (2010-05-15 23:56:22)
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
Re: thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
Glad you got this working, feels like so long ago when we discussed it in that thread.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
Updated 1st post – now plugin is avaible.
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
Re: thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
this is great, thanks for making it!
Offline
Re: thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
Hey the_ghost, is this still working?
I’ve followed the video and used the code in your first post, but I’m getting no output:
<txp:thg_cumulus listlimit="25" cutoff="exact" />
<txp:thg_cumulus listlimit="25" cutoff="exact" />
[SQL (8.20159912109E-5): select name from txp_section where searchable != '1']
[SQL (0.000418901443481): select Keywords from textpattern where Keywords <> ''and Section != ''and Section != 'tag' and Status >= '4' and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00')]
[SQL (6.79492950439E-5): select name from txp_section where searchable != '1']
[SQL (0.000319004058838): select Keywords from textpattern where Keywords <> ''and Section != ''and Section != 'tag' and Status >= '4' and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00')]
4.2 and 4.3 txp installs
Last edited by tye (2011-05-09 09:16:04)
Offline
Re: thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
Ah – I got this working using a different method using a combination of tru_tags and rah_function.
For the last variable where the tags appear, firstly use rah_function with urlencode to encode the urls, then rah_function with preg_replace to remove the line breaks, then simply add the tru_tags code.
so.addVariable("tagcloud", "<tags><txp:rah_function call="urlencode"><txp:rah_function call="preg_replace" search="'\r|\n'" replace="" thing="here"><txp:tru_tags_cloud wraptag="" break="" minpercent="20" maxpercent="50" setclasses="0" /></txp:rah_function></txp:rah_function></tags>");
I am looking at a way to do this with rah_external_output using an xml file as the above doesn’t provide any food for the search engines, whereas with rah_external_output, I should be able to create some xml file.
I’ll report back
Offline
Re: thg_cumulus: wp-cumulus plugin at Textpattern? Yes for tru_tags!
OK – that was unbelievably painless :)
Using rah_external_output, I created a new snippet called “cumulus” using the following:
<tags>
<txp:tru_tags_cloud wraptag="" break="" minpercent="20" maxpercent="50" setclasses="0" texttransform="capitalize" />
</tags>
Then changed my tag cloud embed code to (using the variable xmlpath rather than tagcloud):
<script type="text/javascript">
var so = new SWFObject("<txp:site_url />tagcloud.swf", "tagcloud", "233", "300", "7", "#ffffff");
// uncomment next line to enable transparency
so.addParam("wmode", "transparent");
so.addVariable("tcolor", "0xFFFFFF");
so.addVariable("tcolor2", "0xFFFFFF");
so.addVariable("hicolor", "0xFFFFFF");
so.addVariable("tspeed", "300");
so.addVariable("distr", "true");
so.addVariable("xmlpath", "<txp:site_url />?rah_external_output=cumulus");
so.write("flashcontent");
</script>
Offline