This blog is now officially uses Tags instead of categories. That’s right – I wrote the long-awaited TXP Tags plugin!

Throw your categories away! With this nifty plugin for TXP you can now start tagging your thoughts. Just install and start tagging away…
Want to add Tags to your TXP blog? Follow these instructions:
1) Download ran_txp_tags.txt to your desktop and install it on your TXP blog.
UPDATE: Some people reported problems with installing the plugin. If you find yourself facing the same problems, click here copy the plugin right from your browser.
2) Go to admin->preferences->advanced preferences and scroll down to custom fields section. Create a custom field named Tags and save your changes.
3) Edit the plugin to let it know which custom field you’re using. In the third line, you will see this line.
$tags_field = 'custom_1'; // <-- YOUR CUSTOM FIELD!
Change the $tags_field variable’s value to custom_1, custom_2, and so on…
4) Create a new section named “tag”. I that section’s page put the following tag:
<txp:ran_tags_list_tag />
This will automatically display either all tags or a list articles tagged with a specific tag, depending on the request.
5) In your forms that displays your articles, put this code:
<txp:ran_tags_if_exists>
<txp:ran_tags_list_single />
</txp:ran_tags_if_exists>
This will list the article’s tags.
6) Last but not least, wherever you want your list of tags to be displays, put this tag:
<txp:ran_tags_list_all />
NOTE: Place this code inside a DIV, and specify assign this DIV a the minimum font-size using CSS. The plugin will use this value to calculate the font-size of each tag depending of its weight.
That’s it! You’re done!
From now on, whenever you add or edit an article you will see a Tags textbox under ‘adcanced options’ on the left-hand side.
agkw:blog, tags
{ tags: code, textpattern, web2.0 }
Nice work.
Though I do like categories myself for organizing my own site. It has a way of keeping my posts focused and preventing me from rambling on about anything and everything.
#I just tried to install it again and it works. Try now and let me know of any more problems you run into.
Cheers!
#The site_root thing is fix now. Sorry for not thinking about it before :) (I’m so used to have TXP on my root)
#I have the same issue as above, which is a shame as this was EXACTLY what I’m looking for.
#Are you all using TXP 4.x? I’ve installed it on 3 blogs so far with no problems at all..
Please provide me with more info and I will fix this ASAP.
#Good question about the Localized months. I’ll look into it and post a new version.
Cheers!
#Hi,
I have installed the plugin without problems, but, i can’t make it work.
I have this error at the top of my first page:
Parse error: parse error in …../textpattern/lib/txplib_misc.php(455) : eval()’d code on line 5 This error has been caused by the plugin:ran_tags
And this in the page where i put the tag txp:ran_tags_list_tag:
tag_error txp:ran_tags_list_tag -> Textpattern Warning: unknown_tag
I think i don’t understand some parts of the instructions, and i don’t know if i have to put the tags one per custom field field or can i put the tags in the same field.
#Ok,
this is what happened and I’d venture to say it’s the same with the other two guys who mentioned they couldn’t install the plug-in:
I copied the complete .txt which caused the problem. I hadn’t noticed the mark where it told me to start copying from there.
Installed without a hitch, will check it out in a bit.
#Thanks ThP, for describing what was probably the problem :) I’ve removed everything from the file BUT the plugin to avoid this problem in the future.
Happy tagging everyone!
#Ramm & everyone.
I have a theory as to why you get the Missing argument 1 for ran_tags_field() error.
Try reinstalling the new version and let me know.
With your help- it will be ready and finished within days for the whole world :)
#This is kind of what the “keywords” field does – I’ve used it to group articles into “volumes” on my site since g1.19. The missing link has always been a font-weighted list of all tags. Good show,
-JD
#Well. Version 0.2 is online. Please try this version and report any bugs your find. I think/hope it will work better (or at all).
#How about making it use clean urls? Or is that nearly impossible? And how about some overview of already used tags near the “New article”-page.. To prevent doubles: app and apps, tag and tags etc.
Thanks again!
#Hi-
Just installed the tags plugin (which I want to thank you for), but whenever I use the list_all tag I get this error:
tag_error txp:ran_tags_list_all / -> Warning: Division by zero
(sorry for the lack of < > tags above, textpattern wants to take them out, no matter what…)
I looked through the comments, but my error seems to be different than the other ones (mine doesn’t seem that difficult). Right now, I just don’t post my full tag list, and everything works fine, but I’d like to post that list. :-)
Thanks again!
#Great work! I have a couple of requests for improvements:
1. As mentioned before, clean urls would be very nice.
2. Adding a “wraptag” attribute so that tags can be placed in unordered lists, which would create more meaningful markup as well as provide a bit more styling flexibility
I will see if I can tackle either of these issues on my own, but I’m not super-fluent in php
Thanks again!
#The division by zero and array errors seem to come from there being only a single article being tagged (if you’re just testing, say).
other than that, this works great as near as i can tell, however i’m having one problem:
is ran_tags_list_tag supposed to output a list of articles which match the passed tag? the cloud appears but clicking doesn’t output an article list? am i missing something?
#Thanks for your great work. Works great with TXP 4.0.2. Please allow me to mention some suggestions and problems.
Thanks again for this plug-in.
#This appears to be exactly what I’m looking for. (Thanks!)
But before I dissolve into fits of pleasure—or go to the effort of installing the plug in to test it out—could someone please clarify one quick question?
Does this use only one custom field?
This sentence led me to believe it might take several: “Change the *$tags_field* variable’s value to custom_1, custom_2, and so on…”
And I don’t have that many custom fields to spare.
Thanks!
#I’ve just installed this plugin and so far so good. It works great.
I just wanted to add a request if you continue to update this plugin. I’m pretty bad at keeping track of the tags I’ve been using, so I pretty much tag everything I think is vaguely relevant to an article. As such my Tag Cloud is full of tags that, while relevant, only appear once or twice through all entries.
I’d love you to include a function that would allow one to exclude tags that only appear a certain number of times or less (or at least tags that only appear once)?
Any chance that might happen?
#MarkNumberM, I just visited this blog to ask Ran the exact same question: Does this use only one custom field?
I have a few custom fields spare and was hoping to use more than one as it would be good for subdividing the tags into ‘genres’ or types.
Also, are we limited to using one word tags? I guess so from the examples of your tag cloud.
Another good function would be to show the tags we commonly input in the admin section of the article page, so we could cut and paste them into the custom fields.
Any entered which are not in the list would be automatically added to the list.
Just some ideas.
#Has anyone worked out some kick ass rewrite rules so this can be used with clean URL’s?
#Hey guys!
Thanks for your feedback (and compliments). I do intend to address some of the issues raised here, though I can’t make any promises regarding the deadline. All I really need is one free weekend, but from the looks of it, it could take a while.
Happy new year!
#Ran, Happy New Year to you too!
Looking forward to you addressing these issues but perhaps a more comprehensive instructions document would alieviate the burden on you somewhat.
The main question I have, that I would like answered asap, is: can this be set up to use more than 1 custom field?
I am thinking of using a custom field for 1 set of criteria, let’s say city/town, then the other custom field for associated keywords for the article.
#I installed the plugin on a txp 4.0.3 and got everything set except for the part covered under
4) Create a new section named “tag”. I that section’s page put the following tag (omitting pointy brackets):
txp:ran_tags_list_tag /
Where is the section’s page? I don’t know where to put the txp:ran_tags_list_tag /.
Can anybody please help me, it’s possibly a very easy solution since others here have the plugin running with no problems.
#i can’t get it working with messy urls
got it working with messy urls. every line containing the $url = stuff
there should be sth like
$url = ‘http://’ . $siteurl . $path_from_root ;
$url .= ($url_mode==1) ? ’?s=’ : ‘’;
$url .= ‘tag’;
//$url .= ($url_mode==1) ? ’/’ : ’?t=’;
$url .= ‘&t=’;
@ThP just create a new section “tag” and a new sitelayout “tag” which assign to the section and has just the one line from the instruction inside. after that you will get a basic site in the tag section showing a list of all articles in this tag. themeing is your work to be done :)
#rewrite-rules for clean urls wanted.
Can this made in the plugin code (there ist mode 1)?
Great plugin, though like a lot of people, I’ve got a request. Would it be possible to limit a tag cloud to a particular section?
#I’ve created a plugin, originally based on ran_tags, that resolves most of the issues raised in the comments here. Learn more at my site.
#This is great Ran! It will be especially good, because I’ll be using tags and categories.
#It’s a few months later and I removed the tags-plugin from my articles since the search is more consistent if you use the article itself as the tags
but
it makes very much sense to use tags when providing files, sounds or pictures – all being not descriptable media. And that’s what I am using it now for!
#Thanks for the useful plugin. I will also replace by categories by tags now.
#Hi! God work. Can г tell me how i can separate tag fields, and lead out it ins separate (Costum_1, costum_2, costum_3)?
#I install plugin normally but on site I view a error mesages –
tag_error -> Textpattern Warning: Unknown column ‘Tags’ in ‘field list’
select Tags from t_textpattern where ID=’10’ AND Tags ‘’ on line 70
tag_error -> Notice: Undefined index: Tags on line 108
tag_error -> Notice: Undefined variable: capitalize on line 118
tag_error -> Textpattern Warning: Unknown column ‘Tags’ in ‘field list’
select Tags from t_textpattern where ID=’9’ AND Tags ‘’ on line 70
tag_error -> Notice: Undefined index: Tags on line 108
tag_error -> Notice: Undefined variable: capitalize on line 118
tag_error -> Textpattern Warning: Unknown column ‘Tags’ in ‘field list’
select Tags from t_textpattern where ID=’1’ AND Tags ‘’ on line 70
tag_error -> Notice: Undefined index: Tags on line 108
tag_error -> Notice: Undefined variable: capitalize on line 118
tag_error -> Textpattern Warning: Unknown column ‘Tags’ in ‘field list’
select Tags from t_textpattern where ID=’5’ AND Tags ‘’ on line 70
tag_error -> Notice: Undefined index: Tags on line 108
tag_error -> Notice: Undefined variable: capitalize on line 118
tag_error -> Textpattern Warning: Unknown column ‘Tags’ in ‘field list’
select Tags from t_textpattern where ID=’6’ AND Tags ‘’ on line 70
tag_error -> Notice: Undefined index: Tags on line 108
tag_error -> Notice: Undefined variable: capitalize on line 118
How fix this?
#美容整形 ダイビング 沖縄旅行 不動産担保ローン 通信制高校 求人情報 アルバイト 求人情報 出会い系 アルバイト クレジットカード 現金化 格安航空券 競馬ウェディング 競馬予想 中高年 転職 転職悩み 相談 医院開業 システムキッチン 美容院クレジットカード 現金化 パイプカット インテリア 雑貨包茎 包茎手術 婚約指輪 クレジットカード 現金化 為替 ショッピング枠 現金化 現金化 出会い系 ショッピング枠 現金化 競馬予想 結婚式 ウェディング インプラント システムキッチン FX 外為 ショッピング枠 現金化 結婚式外国為替 為替服飾 学校 資格 看護
#The subject of a very wonderful and distinct
I thank you for continuing excellence
Thank you
=====================================================================
make money, Make Free Money With Google, what-essential-tools-you-need-to-start, 5easy-ways-to-make-money-online-with make-money-online-without-spending-dime, easy-way-to-earn-money, how-adsense-works.html, how-google-matches-ads-to-your-sites, make-money-with-google-adsense, why-i-believe-adsense-works-so-well
Other entries near here:
« BidMini is coming • del.icio.us bought by Yahoo! »
You can also:
browse the archive or return to weblog
advertising, apache, apple, apps, bidmini, blog, blogish, browsers, bsd, business, code, copywriting, danielle, del.icio.us, ebay, elsewhere, emma, family, firefox, funny, gmail, google, gravatars, greetings, hlola, ipod, israel, opera, osx, personal, photoshop, php, politics, projects, rants, safari, textpattern, todo, tools, trackback, tricks, unix, video, web2.0, widgets, windows