Tag Plugin (Tagger)

Feed 23 posts, 7 voices

Jul 8, 2008 11:58
Avatar
68 posts

Ok finally i got a version of tagger ready to release, after thinking about how it should work i decided to make it work only with articles. This is a tag manager with tag cloud feature. Leave your comments on this plugin.

(Tagger v0.5a)[http://silentworks.co.uk/notepad/wp-content/uploads/2008/07/tagger_05a.zip]

 
Jul 8, 2008 11:59
Avatar
68 posts

Man do i hate markdown.

Tagger v0.5a

 
Jul 8, 2008 12:21
Avatar
159 posts

Awesome! Just tried it out - easy to use and well thought out back end - absolutely fantastic, this saves alot of manual work for my sites - thanks easylancer!!!!

 
Jul 8, 2008 14:30
Avatar
963 posts

@easylancer - I'm away for the next few days -- will get it on the "User Plugins" page come the weekend. Thanks for persevering!

 
Jul 10, 2008 05:04
Avatar
12 posts

Great plug in. But I have a problem when I click on a tag it shows me the next window with articles containing current tag ... but if I'll write a tag for example in other section of my web site (for example 'projects') it generates link to the 'articles" page not to the 'projects'. Or this plugin only designed to work with ARTICLES?

 
Jul 10, 2008 05:29
Avatar
68 posts

As stated above in my first post, this only works with articles. I will try to impliment it to work with other parts if the website in the future, but at the moment its only articles.

 
Jul 12, 2008 15:30
Avatar
68 posts

Ok i have updated the last version a bit, just some added options and now also a autoinstaller for frog 0.9.3.

This is avaliable here Tagger 0.6a

The snippet will automatically install the tag cloud but you can use tag list now aswell.

Please read the readme.txt.

 
Jul 13, 2008 05:19
Avatar
15 posts

Fatal error: Class 'Record' not found in G:\a\www\frog-0.9.2\tagger\install.php on line 2 when install,it shown that like above

 
Jul 19, 2008 07:36
Avatar
68 posts

Hi Karlim, i can't seem to replicate this problem. Anyone else have the same problem as Karlim? please let me know.

 
Jul 19, 2008 08:59
Avatar
963 posts

w00t! :) Fabulous! I'm not sure how the synergy worked between all of you plugging away (pun, sorry) on making tag-links work, but this is great.

@easylancer - everything (impressive "autoinstall"!) worked perfectly for me - results visible on my Articles page. I just need to see why the CSS is nudging the bullet list a bit too far to the right.

 
Jul 19, 2008 09:15
Avatar
963 posts

@easylancer - was there a reason for doubly-enclosing the tag list in <ul>...</ul> delimiters, so that there was a list-within-a-list? I think the default snippet code was:

<h3>Tag Cloud</h3>
<ul id="tagger">
    <?php tagger('cloud'); ?>
</ul>

But the tagger function seems to create a list already, so the outer ul pair is surplus to requirements. I couldn't find where tagger.php was producing the list, though! Some secret place!

Anyway, this is working great. It would be nice to see it develop to include all pages, but meanwhile this is really helpful. Thanks!

 
Jul 19, 2008 10:07
Avatar
68 posts

Good find David, i will remove that now and upload it again.

 
Jul 19, 2008 11:14
Avatar
68 posts

Yep i have reached Beta stage 1 with Tagger, now you can tag any page within the default Frog CMS setup.

Get the latest version of Tagger now

Let me know what you think of this latest version people and if you have any ideas which could be implimented to improve tagger even more.

 
Jul 19, 2008 11:57
Avatar
963 posts

Hi e.l.! Nice update. :) I've plugged it in, turned it on, and enjoyed the taggy goodness! A few things caught my eye, just in the "tweak" category:

  • When updating the plugin, a new "Tags" page is created, but not a new snippet. It would be nice not to have the Tags page duplicated -- is there a way of testing to see if it is present? or put a note about this in the readme?
  • The plugin's index.php page needs to be updated! :) I changed mine to:

    'description' => 'Tag cloud plugin in beta stage.', 'version' => '1.0β',

  • should the 'require_frog_version' => '0.9.2' be 0.9.2+? (I'm running 0.9.3) or is that implied?

  • in the Tags page where you have echo "There is no items with this tag."; I suspect you mean echo "There are no items with this tag."; ;)

Thanks again for the great work!

 
Jul 19, 2008 12:19
Avatar
963 posts

P.s. That β was really &#946;, btw. But you probably knew that.

 
Jul 19, 2008 14:57
Avatar
68 posts

Ok all the glitches that David posted are fixed now and i fixed another bug. get the latest version from post above. Thanks for testing David.

 
Jul 19, 2008 15:57
Avatar
963 posts

... and added to the MadeByFrog user contributed plugins page, too! (Finally!)

 
Jul 19, 2008 16:55
Avatar
68 posts

Yes finally David remembered to add it to Made By Frog user contributed plugins page. I will add in more features in the future when i get more time.

 
Aug 4, 2008 08:15
Avatar
55 posts

Not worked whith UTF8 Russian language... And maybe whith others.... (((

 
Aug 4, 2008 08:25
Avatar
68 posts

I only speak English and i'm not sure why it wouldn't work with UTF8 Russian language since i am not defining any encoding type in my code. I think that would be a Frog CMS Issue.

 
Aug 4, 2008 08:26
Avatar
963 posts

?? It works fine on my Frog site, jMas. Is your Frog mySQL db set for UTF8? I expect so, but thought I would ask! You can tell me if my one Russian tag makes sense! :)

 
Aug 5, 2008 02:57
Avatar
55 posts

Hellow, this problem only(or not) whith Firefox.

It encode Russian chars in to http://[mysite].org.ua/?tags/%D0%A2%D1%8D%D0%B3

I think that better, if Tagger is understood this string. ;)

 
Aug 5, 2008 04:27
Avatar
963 posts

Hi jMas - Things seem different for me with Firefox -- here is a screencapture:

Russian in address line

I did get the result you describe with IE6, though. I think that this is a browser issue, not a Tagger issue! Others might have different experience of this, though.

 
Aug 5, 2008 06:09
Avatar
458 posts

Things you could check:

  1. Are you using character encoding set to UTF-8? (firefox: View->Character Encoding->Unicode (UTF-8))
  2. Are you using a character encoding->auto-detect setting? Sometimes the browser trying to be smart conflicts with the actual content. Try to change the browser's setting for auto-detect.

As for internationalized programming, I've had quite some experience on this matter in Java and I can tell you that doing it properly is still tricky. So for the programmers out there:

  • Make sure every HTTP response to the browser defines the document to be UTF-8 (something Frog and many plugins are not doing at the moment I think)
  • Interpret all GET and POST parameters as UTF-8 strings. (in PHP this is NOT the same as a normal string)
  • Interpret all URIs and URLs as UTF-8 strings.
  • Treat all strings that should be outputted to the browser as UTF-8 strings.

Please note: PHP (especially php4) is a little handicapped in the way it handles strings. You have to be very careful how you handle them when using UTF-8 due to the fact that UTF-8 characters are so-called multi-byte characters (i.e. one character does NOT equal one byte). The "classic" string based on (usually) ASCII values is single-byte...

Now imagine: a 8 character UTF-8 string suddenly becomes a 16-byte string... what does the strlen() fuction return? 8 or 16? ;-)