Leave a comment

Comments 28

asciident January 7 2006, 07:22:47 UTC
Cool. Nice job!

Reply

thanks forresto January 7 2006, 07:30:20 UTC
i hope some people find it useful

Reply


mpnolan January 7 2006, 07:44:08 UTC
Any hints on how this is installed? :P

Reply

asciident January 7 2006, 08:06:26 UTC
You have to know or learn some amount of S2, then use the code he provided at http://www.livejournal.com/community/lj_style/378168.html

Reply

forresto January 7 2006, 15:06:30 UTC
you need a paid account, then make a theme layer, then

layerinfo "type" = "theme";
layerinfo "name" = "mythemehacks";

plus the above code is all you'll need

Reply

dennyd August 22 2006, 11:14:56 UTC
So, excuse my ignorance, but I've created the theme layer with those two lines at the top and the rest of your code underneath... how do I make my journal actually use it? So far creating that layer doesn't seem to have actually done anything, which is obviously me not understanding what I'm trying to do :)

Reply


avatar January 7 2006, 08:12:19 UTC
My list says one of my tags has two uses, even though I only have one entry tagged.

Reply

avatar January 7 2006, 08:13:41 UTC
Scratch that, every tag seems to report 1 more entry than is actually tagged.

Reply


janinedog January 7 2006, 08:31:42 UTC
(Oops, let's try that again.)

Awesome! I just implemented it in my own journal. I actually changed your tag print line to:

print """ $td.name """;

And I added this variable above:

var string security = $td.visibility;

So now it shows the visibility in the tooltip, and all sizes have the px (pixel) unit on them.

Thanks for sharing! :)

Reply

janinedog January 7 2006, 08:46:50 UTC
(Really, I can escape my tags...)

After some more playing, I ended up initializing a counter, and then doing the print this way:

$count++;
if ($count == size $.tags) {
print """ $td.name""";
} else {
print """ $td.name * """;
}

So now I have * in between my tags, so it's easier to differentiate a tag with two words and two different tags.

Reply

didaio January 7 2006, 09:21:02 UTC
Janine, can you paste full code with ur edits? Please :)

Reply

janinedog January 7 2006, 09:41:53 UTC
Sure:

print "
";
var int count = 0;

foreach var TagDetail td ($.tags) {
var string uses = get_plural_phrase($td.use_count, "text_tag_uses");
var string security = $td.visibility;
var int tagtextsize = $td.use_count * 5 + 5;

if ($tagtextsize > 50) {
$tagtextsize = 55;
}

$count++;
if ($count == size $.tags) {
print """ $td.name""";
} else {
print """ $td.name * """;
}
}

print "";

Reply


hexxenn January 7 2006, 09:53:02 UTC
This looks really interesting. I really need to get a paid account again so I can do this kind of stuff.

Reply


Leave a comment

Up