2 sam2kb Apr 08, 2008 01:45

17000? Wowsers!
Maybe an autofill, that suggests tags as you start to type them, like delicious does?
Autofill is a good idea.
I've thought of this too, and yeah it should be able to scale with any user size or blog count.
Simply put, a button to "show existing tags" that launches a popup window for tags used in that particular blog. Ideally the plugin would allow for a limit on the number of returned tags so that if your 17000 users were all in one blog and never re-used a tag you could limit it to, say, 1000 tags based on most recently used. But really a single blog with 17000 users sounds more like a forum than a blog yah?
In a perfect world you would be able to click a tag and have it returned to the tag field, then close the popup when you've selected all the tags you want for that post.
:) I didn't mean users, there are 17 000 tags in total.
17000 tags in ONE blog? Across how many posts? Seems to me that if this is the case then your tags probably aren't helping people find related content effectively yah? Like "b2evo, b2evolution, blog app, b2evo blog app, b2evo new version" as unique tags is a mess and should all be the same tag since they talk about the same thing.
A realistic example for US players currently would be "Barack, Barack Obama, Obama" as unique tags that all really point to the same exact person. In this case all posts would be better served with the same tag so the visitor can get all posts about that particular power-hungry megalomaniac.
But hey what do I know about tags given that I rarely use them and am seriously considering automagically updated all my posts with "tags are dumb" as my only tag :roll:
The main reason I use tags is to use the "related posts" widget. So, if I could have one more tool to make certain I'm not making similiar tags like "bag" and "bags" that defeat that purpose, fantastic.
There are 120 blogs and 65 000 posts. But it's not my blog, I don't use tags.
sam2kb wrote:
There are 120 blogs and 65 000 posts. But it's not my blog, I don't use tags.
Ah okay that's a big install and helps explain 17000 tags. I can't do math in my head ... lets see ... 120 has 17000 so 12 has 1700 so 6 has 8500 so each blog has a bit over 1200 or so tags on average. Sounds like a lot to me but I'm like you: not a tag user. Heck I barely use categories anymore ;)
Anyway I do think this would be an interesting tool for a blogger who wants to use them. So that like the example "bag" and "bags" might really be the same so a blogger might consolidate by seeing oh that wasn't what I wanted.
Work first, play second though.
Anyone who can do a javascript autosuggest, feel free to add this into the core.
I've got an auto suggest ++ tag list plugin but it doesn't work in IE.
Shouldn't be to hard to sort out by anyone that knows jquery ;)
¥
¥åßßå wrote:
I've got an auto suggest ++ tag list plugin but it doesn't work in IE.
Shouldn't be to hard to sort out by anyone that knows jquery ;)
¥
nice work ¥åßßå.. i was already testing the plugin before you ve posted here :P...
edit: talked to soon may be.. everything works properly now..
¥åßßå: did you have time to make it works for IE ?
Hi Slamp,
I *think* so, you can grab it and test it from here ( [url=http://waffleson.co.uk/2008/04/predicting-tag]predicting tags[/url] )
¥
Hi Slamp,
I replied to your comment on my blog, not that I could help much as I couldn't replicate your problem :p it'd be useful to know what your blog settings are to see if I could work out where the extra "blogs" is coming from.
The plugin does access the database to get the list of tags for whatever letter you first type, it then remembers the answers ( client side ) to cut down on server requests.
¥
On this blog it's a standard installation:
Blog base URL: Default blog in index.php
URL preview: http://s150188918.onlinehome.fr/blogs/index.php
Date archive URLs: Use extra-path
Tag page URLs: Use extra-path
Single post URLs: Use extra-path: year, month & day
Am I missing something here, but my browser tracks form entries and does bring up a list of previously entered tags??
Yes Amoun, but if you're blogging from different PCs you don't have the same browser
Another problem with the browser memory thing is that it doesn't actually remember tags. It remembers strings entered into fields, which could be 8 tags separated by commas entered into the tags field. So you really don't get a list of tags from that method. Because like it'll only show you the first handful of characters so what happens when the tag you think you used and want to re-use is not shown due to it's position in the list?
amoun wrote:
Am I missing something here, but my browser tracks form entries and does bring up a list of previously entered tags??
Bizarrely I've been thinking of killing that browser behaviour ( fairly easy to do by playing with names/ID's ) because it interferes with what this plugin tries to do ;) ... guess I should make that a user setting :P
slamp : I'll have more of a play and see if I can replicate your problem, but for now you can just hard code the correct url in to cure it
¥
OK Yabba, I will hard code the url.
Also I will install the plugin in another blog to see if i can replicate the problem.
Instead of hardcoding the url, I used $baseurlroot and it works.
var htsrv_url = "'.$baseurlroot.str_replace( '&', '&', $this->get_htsrv_url( 'am_tags_autocomplete' ) ).'";
Maybe I have an other plugin how used $baseurl.
Cool, you learn something new every day, plugin updated :D
Thanks Slamp ;)
¥
@¥åßßå
Was there a change in JS as well?
Nope, just the php file
¥
Is it possible to display tag on only one line ? which css class should I change ?
You'd probably want something like this :
#amTagsList li{
display:inline;
padding:0 1em 0 0;
}
¥
I got a little error in autocomplete.js line 247
I'm using firebug to catch this:
theString.replace is not a function
amTagsTrim(false, undefined)
amTagsFetchTags(keyup charCode=0, keyCode=65)
onkeyup(keyup charCode=0, keyCode=65)
theAnswer = theString.replace(/^\s+|\s+$/g,'');
I think the function amTagsTrim do not need aName so I remove it:
// trims whitespace off a string
function amTagsTrim( theString )
{
theAnswer = theString.replace(/^\s+|\s+$/g,'');
return theAnswer;
}
Nice one, fixed :D
and I even remembered to add it to BOPIT this time ;)
¥
What if you have more than 100 tags? I know the install with 17 000 tags... it would be a looong list ;)