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... )
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
From my code, copy everything from ##### Config ##### up to and including the curly brace just before ##### Specify Box Order #####. Paste that into your code just before the print_userpic() line.
Then from my Specify Box Order section, copy this line:
if ($list != ""){print_sidebar_box($tag_title, $list);}
Paste it into your existing code somewhere in your list of print calls, wherever you want the tags list to show up. For example, to show the tags between the calendar and your FAVORITE ICONS box, it should look like this:
print_userpic();
print_sidebar_blurb();
print_sidebar_linklist();
print_sidebar_calendar();
if ($list != ""){print_sidebar_box($tag_title, $list);}
print_sidebar_box($extra1_title, $extra1_content);
Then, to provide the styling for your tags list, copy the entire print_custom_head function from my code and paste it after the final curly brace in your code. Don't forget to remove the blue code if you don't want a scrolling tags box.
Reply
Thank you again!
Reply
Leave a comment