This is code to display your tags in a sidebar box. By naming your tags using a delimiter, for example animals:cats:tabbies or animals:cats:siamese, where the colon is the delimiter, you can display a heirarchical list of tags. If you feel your tags list will take up too much space in the sidebar, there is example styling provided to limit the
(
Read more... )
Comments 55
Reply
Reply
Reply
##### Specify Box Order #####
# mt:20050627
# Okay, now that's done, just print out all your sidebar boxes in the order you
# want, including a call for this one -- print_sidebar_box($tag_title, $list) --
# nested within an if statement to prevent tags box from printing in the event
# of no visible tags.
print_userpic();
print_sidebar_blurb();
if ($list != ""){print_sidebar_box($tag_title, $list);}
print_sidebar_linklist();
print_sidebar_calendar();
##### End Box Order #####
arrange the boxes in the order you want them to be printed out. So, for instance, for putting your linkslist above your tags but keeping everything else in that order, do this:
print_userpic();
print_sidebar_blurb();
print_sidebar_linklist();
if ($list != ""){print_sidebar_box($tag_title, $list);}
print_sidebar_calendar();
Blue text indicates what lines have been edited.
Reply
Reply
I can't take credit for anything though; all the code, including the instructions for rearranging the sidebar boxes, are murklinstest's doing.
Enjoy your new customizations :D
Reply
Reply
Reply
I'd love an un-tiered list, as I don't anticipate having many tags. but I know next to nothing about css, so I don't think I'd be able to figure out a hack that wasn't serious overkill. any suggestions, or should I just use this one? (:
Reply
Reply
Reply
I've got a heirarchical set-up going for icons I post, where every post is tagged with both "icons" and "icons: topic". Whoo, I'm already halfway there in terms of organizing stuff! However, there is a space after the colon. Since there's already a divider there, does this code provide the ability to look at the content after the colon and say, "Okay, all icon tags have a space, so colon-space-angel will be listed before colon-space-buffy"? In other words: can I use my tags as-is with this code?
If it needs to be only the code-determined divider between the various levels of tags, then not a problem, I'll change my tagged posts. But I figured I'd ask before I dove into all that.
Thank you!
Reply
And OMG, pretty, pretty icons! I just looked at your journal and you have just the Hogwarts icon I've been pining for but too lazy to actually look for. You say comment and credit, so I'm gonna go do that.
Reply
Reply
In-place code:
function print_sidebar()
{
var string extra1_title ="";
var string extra1_content ="";
$extra1_title = """
$extra1_content = """
( ... )
Reply
Leave a comment