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 :)
Comments 28
Reply
Reply
Reply
Reply
layerinfo "type" = "theme";
layerinfo "name" = "mythemehacks";
plus the above code is all you'll need
Reply
Reply
Reply
Reply
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
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
Reply
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
Reply
Leave a comment