Only fill this in if you're a spammer huh? Your name :
Your email :
Your message :
Apr
21st
2008

Predicting tags

Posted in : Plugins & Widgets

Auto-complete your tags

I decided to have another play with tags as I tend to use them quite a bit on my posts and I'm always forgetting which ones I've used before and which ones I haven't. So I threw together a plugin that will auto-suggest tags based on ones that you've used in the past. It'll also show you a list of all other similar tags in case you have more than one tag with the same starting letter(s) although they're not clickable at the moment because I haven't got that far.

Installation is pretty simple, just download the zip ( AM AutoTags ), upload it, install it, then meander into the plugin settings and set the tag separator for whatever your version uses. That's it. Now when you enter tags you it should try and auto complete them for you and show you a list of other tags.

NOTE : I've only tested this in FireFox as my IE is having a crisis of confidence when it comes to running javascript, so if you use IE and it doesn't work then tough shit. Also, this is a pre-release version so it's bound to have a few quirks, if you find any then just let me know and I'll see what I can do to eradicate them.

¥

*edit* 24th April
I think I've finally managed to convince IE that it can actually understand javascript so this should now work in IE as well, zip file updated

Trackback URL (right click and copy shortcut/link location)

Trackback url for this post
Note : This trackback url is time limited so use it within 30 minutes or the SpamHound will snarl at you.

http://waffleson.co.uk/z/?k=37072172633103238165ae258cb8ff3abd1d21c10f62a6da9

Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14650 by Gary

Replied on : 04/21/08 @ 02:38 pm #1

WOT, 2 post within a week mate ;) You must have too much time on your hands :)
I will give it a go and report back, :>>

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14651 by Gary

Replied on : 04/21/08 @ 03:05 pm #2

Works for me buddy boy :) Not in IE though :(
There again, who uses IE ???
Glad I use Firefox!

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 

Replied on : 04/21/08 @ 10:43 pm #3

Nice work. The show/hide is smooth.
On the Mac, it works with Firefox, Safari but not Opera 9.50 Beta.

Now if only that same show/hide could be used for the toolbars :)
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14655 by ¥åßßå

Replied on : 04/22/08 @ 09:22 am #4

Gotta love x-browser :p

Ok I've made a few script changes so it *should* now work in opera, tested in 9.27 which I assume is latest stable, but it might work in beta. The zip file is updated so you can just download it again.

It still doesn't work in explorer ... mainly because I haven't tried particularly hard, and I still haven't made the "available tags" clickable.

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/22/08 @ 10:18 am #5

Clickable tags would be a nice touch. Thanks for the update, works with my Opera Beta nicely.

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14657 by ¥åßßå

Replied on : 04/22/08 @ 11:05 am #6

Tags are now clickable ( zips been updated ) .... still doesn't work in IE, dunno if I'll over bother to make it do so ;)

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14658 by Gary

Replied on : 04/22/08 @ 02:50 pm #7

Nice one, it gets better and better. :)
What's next? how about a plugin to make a plugin!
Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14659 by ¥åßßå

Replied on : 04/22/08 @ 04:51 pm #8

Lol EdB's already in the middle of coding one ;)

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14661 by Gary

Replied on : 04/22/08 @ 05:48 pm #9

Rofl, I was only joking as well ;)

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 

Replied on : 04/23/08 @ 06:13 pm #10

boo
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14663 by ¥åßßå

Replied on : 04/23/08 @ 06:19 pm #11

Most people try and look semi-intelligent on my blog .... I say "semi" cos I have a fair few "M y S p ac E p r0 +x y" and "I own a school, how can I bypass it's filters", people visit my site :|

¥

I may have opened the door, but you entered of your own free will

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14664 by ¥åßßå

Replied on : 04/24/08 @ 12:18 pm #12

Swift update.

After a load of pissing around and some pointers from Danny I *think* I've managed to get this working in IE.

The zips been updated, let me know if you have any problems ;)

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14665 by Gary

Replied on : 04/24/08 @ 01:02 pm #13

Nice One :) will try it out later.

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14666 by Gary

Replied on : 04/24/08 @ 01:18 pm #14

Just tried it out in IE6 and it kinda works.
When you try and select a couple of tags it just adds a comma to the tag and comma that is already there. That's IE for you ;)

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14667 by ¥åßßå

Replied on : 04/24/08 @ 01:25 pm #15

oh bugger, I forgot about the onclick stuff :p

¥

I may have opened the door, but you entered of your own free will

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14673 by ¥åßßå

Replied on : 04/25/08 @ 11:00 am #16

Yet another update, cured the clickable stuff in IE and squashed a couple of bugs. Zip file updated

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14674 by Gary

Replied on : 04/25/08 @ 04:33 pm #17

Sorry Paul, works perfectly in IE6 , not in Firefox though! :(
Back to the old drawing board I guess !

Gz

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14675 by ¥åßßå

Replied on : 04/25/08 @ 05:36 pm #18

It works in FF here? About the nearest I can get to "not working" is if you click a new tag without separating it from previous tag in which case it'll replace the current tag for every click?

I've changed that behaviour as well, see if it does what you expect now?

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/25/08 @ 10:30 pm #19

@ Gary, works for me in FF. Just remember to reload your plugins
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14677 by ¥åßßå

Replied on : 04/25/08 @ 10:43 pm #20

*points to the uber cool "reply to gary" link you could have used .... bloody aussies :|

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/25/08 @ 10:55 pm #21

Give us a break, It's 8am.
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14679 by ¥åßßå

Replied on : 04/25/08 @ 11:17 pm #22

*points to the fact that you not only missed the "reply to yabba" link, you also forgot to type yer bloody name* ... I'll make allowances for the "before coffee", but any git that's so lazy arsed to have just got up at 8am deserves slapping :|

¥

*note* : it's now 23:00 ( "less than 8 hours to coffee" to aussies ) here, so feel free to take the piss whilst I sleep ;)

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/25/08 @ 11:33 pm #23

Your form doesn't remember anything....
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14681 by ¥åßßå

Replied on : 04/25/08 @ 11:36 pm #24

coded by a blonde :|

go get coffee :|

¥

*edit*
bollocks, I forgot to press "reply to the decaffeinated lazy arsed git :-S

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/25/08 @ 11:53 pm #25

:)
Back to the plugin... what's the best way to deal with 2 worded tags?

internet-explorer or internet_explorer or internet explorer ?

I noticed that the plugin didn't pick up any double worded tags
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14683 by ¥åßßå

Replied on : 04/26/08 @ 12:01 am #26

Previous versions of the core had space separated tags, so I used "-", new style is comma separated, so I use spaces for double word tags

I can pull up double worded tags no problem ( have to type the second "r" of "pre-r[elease]" though )

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 04/26/08 @ 12:29 am #27

Ok, thanks for the info, i'll give it a spin
 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14685 by Gary

Replied on : 04/26/08 @ 02:00 pm #28

Just installed 0.91 and I am happy to report that it works fine for me in IE6, IE7 and FFox.
Enjoy the rest fo the weekend y'all

Gz :)

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 

Replied on : 04/27/08 @ 09:16 pm #29

* OFF TOPIC *

Just running Ubuntu off live CD, its looking kinda good :) Not sure if it warrants binning Windows though !

Gz ;)
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14687 by ¥åßßå

Replied on : 04/28/08 @ 07:45 am #30

Windows is enough of a reason to bin windows ;)

¥

I may have opened the door, but you entered of your own free will

 
 
Gary users avatar

Posts : 323

Joined : 04/04/05

Reply to comment 14690 by Gary

Replied on : 04/28/08 @ 10:33 am #31

Grrrrrrrrrrr, I trashed my system with Ubuntu (the pile of >:XX)
Not a happy bunny, I have lost EVERYTHING :>

On a lighter note : Good morning :)

GZ ;)

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 

Replied on : 05/22/08 @ 09:49 pm #32

Got a problem with predicting tag:
_am_autotags.plugins.php: line 48: var htsrv_url = "'.trim( $baseurl, '/' ).str_replace( '&', '&', $this->get_htsrv_url( 'am_tags_autocomplete' ) ).'";
On my installation it gives:
var htsrv_url = "http://www.domain.info/blogs/blogs/htsrv/call_plugin.php?plugin_ID=26&method=am_tags_autocomplete";

the words blogs appears 2 times.
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14733 by ¥åßßå

Replied on : 05/23/08 @ 11:56 am #33

Bugger, I'll have to work on a fix for that and get back to you

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 05/24/08 @ 07:36 pm #34

It's a default installation: http://s150188918.onlinehome.fr/blogs/
 
 

Replied on : 05/24/08 @ 07:38 pm #35

Sorry It was Slamp. I forgot to login.
 
 
¥åßßå users avatar

Posts : 827

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 14736 by ¥åßßå

Replied on : 05/25/08 @ 01:52 pm #36

Hi Slamp,

That's a tad weird because I can't replicate the doubling up. You can just hardcode the link to suit your install

¥

I may have opened the door, but you entered of your own free will

 
 

Leave a comment

Your email address will not be displayed on this site.
Your URL will be displayed.
About you

Just fill in the bits you want, none of it is required



Your email address will only be used to send you adverts for viagra and rolex watches.



(Line breaks become <br />)
Leave a comment
Code:
=> :!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( >:( :'( |-| :>> ;D :)) 88| :lalala: :crazy: >:XX :o