<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. http://www.insanejournal.com/bots/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
<channel>
  <title>ScotchBonnet</title>
  <link>http://asylums.insanejournal.com/scotchbonnet/</link>
  <description>ScotchBonnet - InsaneJournal</description>
  <lastBuildDate>Sat, 02 Feb 2008 02:01:42 GMT</lastBuildDate>
  <generator>LiveJournal / InsaneJournal</generator>
  <image>
    <url>http://www.insanejournal.com/userpic/499481/62749</url>
    <title>ScotchBonnet</title>
    <link>http://asylums.insanejournal.com/scotchbonnet/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>http://asylums.insanejournal.com/scotchbonnet/7619.html</guid>
  <pubDate>Sat, 02 Feb 2008 02:01:42 GMT</pubDate>
  <title>For Paid/Permanant Users using a Theme Layer</title>
  <link>http://asylums.insanejournal.com/scotchbonnet/7619.html</link>
  <description>This is for Blue Shoes &lt;strong&gt;(Traquility II)&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Create Theme Layer &lt;br /&gt;Tutorial by &lt;span class=&apos;ljuser&apos; lj:user=&apos;carriep63&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://carriep63.insanejournal.com/profile&apos;&gt;&lt;img src=&apos;http://www.insanejournal.com/img/userinfo.gif&apos; alt=&apos;[info]&apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: bottom; border: 0;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://carriep63.insanejournal.com/&apos;&gt;&lt;b&gt;carriep63&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;:&lt;br&gt;&lt;a href=&quot;http://community.livejournal.com/s2_bloggish/4514.html&quot;&gt;Creating a theme layer&lt;/a&gt; (using Livejournal new customize journal area)&lt;br /&gt;Tutorials by &lt;span class=&apos;ljuser&apos; lj:user=&apos;scotchosur&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://www.insanejournal.com/userinfo.bml?user=scotchosur&apos;&gt;&lt;img src=&apos;http://www.insanejournal.com/img/userinfo.gif&apos; alt=&apos;[info]&apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: bottom; border: 0;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://www.insanejournal.com/userinfo.bml?user=scotchosur&apos;&gt;&lt;b&gt;scotchosur&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;:&lt;br&gt;&lt;a href=&quot;http://asylums.insanejournal.com/scotchbonnet/7330.html&quot;&gt;Creating a Theme Layer&lt;/a&gt; (for InsaneJournal users)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note: &lt;/strong&gt; This is here for my benefit and bad memory but I didn&apos;t add everything under the sun for the blue shoes layer but if you want more extras, try these:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Add these into theme layer&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Link to: &lt;a href=&quot;http://community.livejournal.com/s2layers/68607.html&quot;&gt;Original Source&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Adding Usericons in the Recent Entries view&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Taken from: &lt;a href=&quot;http://www.livejournal.com/customize/advanced/layersource.bml?id=4472743&quot;&gt;Original Source&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Adding Additional Links&lt;/strong&gt;&lt;br /&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;&quot; width=&quot;400&quot; bgcolor=&quot;&quot; cellspacing=&quot;10&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&lt;textarea rows=&quot;15&quot; cols=&quot;70&quot; style=&quot;font-family: Tahoma; font-size:11px;&quot;&gt;
# -------------------------------
# prints the LJ specific links (recent, friends, etc)
# -------------------------------
function print_lj_links ( Page p )
{
    var string links;
$links = $links + ($p.view == &quot;recent&quot; ? &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;$*text_view_recent&amp;lt;/li&amp;gt;&quot; : &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;$p.base_url/\&quot; title=\&quot;$*text_view_recent\&quot;&amp;gt;$*text_view_recent&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;);
    if ( $p.journal_type == &quot;C&quot; ) {

$links = $links + ($p.view == &quot;friends&quot; ? &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;$*text_view_friends_comm&amp;lt;/li&amp;gt;&quot; : &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;$p.base_url/friends\&quot; title=\&quot;$*text_view_friends_comm\&quot;&amp;gt;$*text_view_friends_comm&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;);
    } else {

$links = $links + ($p.view == &quot;friends&quot; ? &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;$*text_view_friends&amp;lt;/li&amp;gt;&quot; : &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;$p.base_url/friends\&quot; title=\&quot;$*text_view_friends\&quot;&amp;gt;$*text_view_friends&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;);
    }

$links = $links + ($p.view == &quot;archive&quot; ? &quot;&amp;lt;li class=\&quot;active\&quot;&amp;gt;$*text_view_archive&amp;lt;/li&amp;gt;&quot; : &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;$p.base_url/calendar\&quot; title=\&quot;$*text_view_archive\&quot;&amp;gt;$*text_view_archive&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;);

$links = $links + &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;$p.view_url{&quot;userinfo&quot;}\&quot; title=\&quot;$*text_view_userinfo\&quot;&amp;gt;$*text_view_userinfo&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;

$links = $links + ($p.journal.website_url != &quot;&quot; ? &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;$p.journal.website_url\&quot; title=\&quot;&quot; + $p.journal.website_name-&amp;gt;lower() + &quot;\&quot;&amp;gt;&quot; + $p.journal.website_name-&amp;gt;lower() + &quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot; : &quot;&quot;);

    print &quot;&amp;lt;ul id=\&quot;lj-links\&quot;&amp;gt;&quot;;
    print safe $links;
    print &quot;&amp;lt;/ul&amp;gt;&quot;;
}&lt;/textarea&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Look inside and find this line of code to add links to your navigation menu: &lt;br /&gt;&lt;b&gt;&lt;em&gt;&lt;pre&gt;&lt;code&gt;$links = $links + &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;urladdhere\&quot;&amp;gt;nameoflink&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;;&lt;/code&gt;&lt;/pre&gt;&lt;/em&gt;&lt;/b&gt;&lt;br /&gt;*replace &lt;b&gt;&quot;urladdhere&quot;&lt;/b&gt; with your own your url and &lt;b&gt;&quot;nameoflink&quot;&lt;/b&gt; with the link&apos;s name. &lt;br /&gt;&lt;br /&gt;To add a new link, simply repeat it.</description>
  <comments>http://asylums.insanejournal.com/scotchbonnet/7619.html</comments>
  <category>journals: code</category>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://asylums.insanejournal.com/scotchbonnet/5650.html</guid>
  <pubDate>Sun, 23 Dec 2007 02:25:33 GMT</pubDate>
  <title>(Paid) Randomized User Pictures (SS/RR)</title>
  <link>http://asylums.insanejournal.com/scotchbonnet/5650.html</link>
  <description>This is for my own purpose but it might be useful to somebody else.&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This tutorial explains how to randomize user picture which displays in the profile box in the sidebar. The code to do this will override the Page::lay_print_sidebar_profile(). You will need to place the coding in a theme layer. If you already have a theme layer for the Smooth Sailing style, you can edit it to include this code. Otherwise, you need to create one as explained in the Theme Layer tutorial.&lt;br /&gt;&lt;br /&gt;You will need to copy the following code into your theme layer, making sure to include everything:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #95876A; padding:10px 0 0 30px;&quot;&gt;function Page::lay_print_sidebar_profile() {&lt;br /&gt;&lt;br /&gt;   var string[] pic;&lt;br /&gt;&lt;br /&gt;   $pic[size($pic)]=&quot;&lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;######&quot;;&lt;br /&gt;   $pic[size($pic)]=&quot;&lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;######&quot;;&lt;br /&gt;   $pic[size($pic)]=&quot;&lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;######&quot;;&lt;br /&gt;   $pic[size($pic)]=&quot;&lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;######&quot;;&lt;br /&gt;   $pic[size($pic)]=&quot;&lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;######&quot;;&lt;br /&gt;   $pic[size($pic)]=&quot;&lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;######&quot;;&lt;br /&gt;&lt;br /&gt;   var int randpic;&lt;br /&gt;   $randpic = rand(0, ((size $pic) - 1));&lt;br /&gt;&lt;br /&gt;    $this-&amp;gt;lay_print_sidebox_top($*text_sidebox_profile_title);&lt;br /&gt;    &quot;&quot;&quot;&lt;br /&gt;      &lt;div class=&quot;sideboxContent&quot;&gt;&lt;br /&gt;        &lt;div&gt;&lt;a href=&quot;$*SITEROOT/allpics.bml?user=$.journal.username&quot;&gt;&lt;img src=&quot;$pic[$randpic]&quot; alt=&quot;&quot; border=&quot;0&quot; class=&quot;profile-userpic&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;        &lt;div&gt;&lt;span class=&quot;profile-label&quot;&gt;$*text_sidebox_profile_userlabel&lt;/span&gt;&lt;span class=&quot;profile-content&quot;&gt;$.journal&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;        &lt;div&gt;&lt;span class=&quot;profile-label&quot;&gt;$*text_sidebox_profile_namelabel&lt;/span&gt;&lt;span class=&quot;profile-content&quot;&gt;$.journal.name&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;        &quot;&quot;&quot;; &lt;br /&gt;        if ($*text_sidebox_profile_info!=&quot;&quot;) { &quot;&quot;&quot;&lt;div&gt;&quot;&quot;&quot;; print $*text_sidebox_profile_info; &quot;&quot;&quot;&lt;/div&gt;&quot;&quot;&quot;; }&lt;br /&gt;        &quot;&quot;&quot;&lt;br /&gt;       &lt;/div&gt; &lt;br /&gt;    &quot;&quot;&quot;;&lt;br /&gt;    $this-&amp;gt;lay_print_sidebox_bottom();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the above code, you need to replace &lt;a href=&quot;http://www.insanejournal.com/userpic/######/&quot;&gt;http://www.insanejournal.com/userpic/######/&lt;/a&gt;###### (for each) with the user pictures that you&apos;d like to be randomized. Please notice that, though six user pictures are used here, there is no maximum or minimum to the number of user pictures that you can use.&lt;br /&gt;&lt;br /&gt;Once you have finished adding the code above, you can save your theme layer by clicking on the &quot;Save &amp; Compile&quot; button at the top of the screen. Your changes will not take effect until you apply your theme layer by selecting it on the Customize Journal page.&lt;br /&gt;&lt;br /&gt;Originally posted: &lt;a href=&quot;http://community.livejournal.com/s2howto/46128.html&quot;&gt;Here&lt;/a&gt;</description>
  <comments>http://asylums.insanejournal.com/scotchbonnet/5650.html</comments>
  <category>journals: code</category>
  <lj:mood>chipper</lj:mood>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://asylums.insanejournal.com/scotchbonnet/573.html</guid>
  <pubDate>Thu, 06 Dec 2007 01:29:19 GMT</pubDate>
  <title>For Paid/Permanant Users using a Theme Layer</title>
  <link>http://asylums.insanejournal.com/scotchbonnet/573.html</link>
  <description>This is for &lt;strong&gt;(A Dear Diary Layout)&lt;/strong&gt; codes &lt;br /&gt;Layouts: [Baroque - Pink and Grey - Green and White]&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Create Theme Layer &lt;br /&gt;Tutorial by &lt;span class=&apos;ljuser&apos; lj:user=&apos;carriep63&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://carriep63.insanejournal.com/profile&apos;&gt;&lt;img src=&apos;http://www.insanejournal.com/img/userinfo.gif&apos; alt=&apos;[info]&apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: bottom; border: 0;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://carriep63.insanejournal.com/&apos;&gt;&lt;b&gt;carriep63&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;:&lt;br&gt;&lt;a href=&quot;http://community.livejournal.com/s2_bloggish/4514.html&quot;&gt;Creating a theme layer&lt;/a&gt; (using Livejournal new customize journal area)&lt;br /&gt;Tutorials by &lt;span class=&apos;ljuser&apos; lj:user=&apos;scotchosur&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://www.insanejournal.com/userinfo.bml?user=scotchosur&apos;&gt;&lt;img src=&apos;http://www.insanejournal.com/img/userinfo.gif&apos; alt=&apos;[info]&apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: bottom; border: 0;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://www.insanejournal.com/userinfo.bml?user=scotchosur&apos;&gt;&lt;b&gt;scotchosur&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;:&lt;br&gt;&lt;a href=&quot;http://asylums.insanejournal.com/scotchbonnet/7330.html&quot;&gt;Creating a Theme Layer&lt;/a&gt; (for InsaneJournal users)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note: &lt;/strong&gt;&lt;br /&gt;You will have also created a user layer automatically because of the css. In editing theme and user layer place on top instead:&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Under Theme&lt;/u&gt;&lt;br /&gt;Replace&lt;br /&gt;layerinfo &quot;type&quot; = &quot;theme&quot;;&lt;br /&gt;layerinfo &quot;name&quot; = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;With This&lt;br /&gt;layerinfo &quot;type&quot; = &quot;theme&quot;;&lt;br /&gt;layerinfo &quot;name&quot; = &quot;Baroque&quot;;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Under User&lt;/u&gt;&lt;br /&gt;Replace&lt;br /&gt;layerinfo &quot;type&quot; = &quot;user&quot;;&lt;br /&gt;layerinfo &quot;name&quot; = &quot;Auto-generated Customizations&quot;;&lt;br /&gt;&lt;br /&gt;With This&lt;br /&gt;layerinfo &quot;type&quot; = &quot;user&quot;;&lt;br /&gt;layerinfo &quot;name&quot; = &quot;Baroque&quot;;&lt;br /&gt;&lt;br /&gt;Believe me, this is a simple way if you redesign your journal a lot with custom layers.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Add these into theme layer&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Taken from: &lt;a href=&quot;http://community.livejournal.com/s2layers/67889.html&quot;&gt;Original Source&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Mood Icon to Left of Metadata&lt;/strong&gt;&lt;br /&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;&quot; width=&quot;400&quot; bgcolor=&quot;&quot; cellspacing=&quot;10&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&lt;textarea rows=&quot;15&quot; cols=&quot;70&quot; style=&quot;font-family: Tahoma; font-size:11px;&quot;&gt;
function Entry::lay_print_metadata() {
var string tags_header         = &quot;Tags&quot;; # text for tags header,    &quot;Current Tags&quot;
var string tags_joiner         = &quot;&quot;;            # text for tags joiner,    &quot;:&quot;
var string tags_sep            = &quot;, &quot;;           # text for tags separator, &quot;, &quot;
var bool   show_edit_tags_link = false;          # set to true if you want edit tags link as tags header
var string currents_open       = &quot;&quot;&quot;&amp;lt;div class=&quot;metadata&quot;&amp;gt;&quot;&quot;&quot;; # html for opening of currents container
var string currents_close      = &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;; # html for closing of currents container
var bool   loc_after_mood      = false;               # set to true to print location after mood
var bool   vanilla_loc         = false;               # set to true to delinkify location
# if you need data specific to the meta to be in these strings you&apos;ll have to set those individually down further
# one example is provided with meta_label_open
var string meta_label_open     = &quot;&quot;&quot;&amp;lt;strong&amp;gt;&quot;&quot;&quot;;   # html for opening of metadata label
var string meta_label_close    = &quot;&quot;&quot;&amp;lt;/strong&amp;gt;: &quot;&quot;&quot;; # html for closing of metadata label
var string meta_val_open       = &quot;&quot;;               # html for opening of metadata value
var string meta_val_close      = &quot;&quot;&quot;&amp;lt;br /&amp;gt;&quot;&quot;&quot;;     # html for closing of metadata value
var Link   edit_tags           = $this-&amp;gt;get_link(&quot;edit_tags&quot;); # helper var to see if remote user can edit tags
if ((size $.metadata &amp;gt; 0) or ((size $.tags &amp;gt; 0) and ($*tags_aware))){
if($.metadata{&quot;mood&quot;} == &quot;&quot; and $loc_after_mood) {
# if we&apos;re printing loc after mood but we have no mood, set loc_after_mood to false
$loc_after_mood = false;
}
var string currents = &quot;&quot;;             # make var for printing
$currents           = $currents_open; # add opening of currents container
if(defined $.mood_icon) {
var Image i = $.mood_icon;
$currents = $currents + &quot;&quot;&quot;&amp;lt;table border=&quot;0&quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&quot;$i.url&quot; _fcksavedurl=&quot;$i.url&quot; width=&quot;$i.width&quot; height=&quot;$i.height&quot; alt=&quot;$.metadata{&quot;mood&quot;}&quot; title=&quot;$.metadata{&quot;mood&quot;}&quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&quot;&quot;&quot;;
}
foreach var string k ($.metadata){  # step thru metadata
var string text = $k;             # set text to key
var string val  = $.metadata{$k}; # get val
if ($k == &quot;mood&quot;){                # if mood, set text to mood property
$text = $*text_meta_mood;
}
elseif ($k == &quot;music&quot;) {          # if music, set text to music property
$text = $*text_meta_music;
} elseif ($k == &quot;location&quot;) {     # if location, set text to loc variable
$text = $*text_meta_location;
if($vanilla_loc) {              # if vanilla loc, striphtml() it
$val = striphtml($val);
}
}
if(not ($k == &quot;location&quot; and $loc_after_mood)) {
# if we&apos;re doing loc right now and printing loc after mood, skip it
# if we&apos;re doing loc right now and we&apos;re not printing loc after mood, print it now
# if we&apos;re not doing loc right now, print this piece of meta
# add the meta
$currents = $currents + &quot;&quot;&quot;$meta_label_open$text$meta_label_close$meta_val_open$val$meta_val_close&quot;&quot;&quot;;
}
if($k == &quot;mood&quot; and $loc_after_mood) {
# if we just now did the mood and we&apos;re printing loc after mood, print the loc
$k    = &quot;location&quot;;           # set meta key to &quot;location&quot;
$text = $*text_meta_location; # set text to loc variable
$val  = $.metadata{$k};       # get val
# if we have a loc, do stuff
if($val != &quot;&quot;) {
# if vanilla loc, striphtml() it
if($vanilla_loc) {
$val = striphtml($val);
}
# add the meta
$currents         = $currents + &quot;&quot;&quot;$meta_label_open$text$meta_label_close$meta_val_open$val$meta_val_close&quot;&quot;&quot;;
}
}
}
if ((size $.tags &amp;gt; 0) and $*tags_aware) {
var string k      = &quot;tags&quot;; # set key to &quot;tags&quot;
var int tcount = 0; # set counter for tags
if($edit_tags.url != &quot;&quot; and $show_edit_tags_link) { # if remote user can edit tags, let&apos;s give them a link
$tags_header = &quot;&quot;&quot;&amp;lt;a href=&quot;$edit_tags.url&quot; _fcksavedurl=&quot;$edit_tags.url&quot;&amp;gt;$tags_header&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
}
# add text, open val container
$currents = $currents + &quot;&quot;&quot;$meta_label_open$tags_header$tags_joiner$meta_label_close$meta_val_open&quot;&quot;&quot;;
# build tag list
foreach var Tag t ($.tags) {
$currents = $currents + &quot;&quot;&quot;&amp;lt;a rel=&quot;tag&quot; href=&quot;$t.url&quot; _fcksavedurl=&quot;$t.url&quot;&amp;gt;$t.name&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
$tcount++;
# if we haven&apos;t hit the last tag, add a separator
if ($tcount != size $.tags) { $currents = $currents + $tags_sep; }
}
# close val container
$currents = $currents + $meta_val_close;
}
if(defined $.mood_icon) {
$currents = $currents + &quot;&quot;&quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&quot;&quot;&quot;;
}
# close currents container
$currents = $currents + $currents_close;
# print currents
println &quot;$currents&quot;;
}
}
&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Taken from: &lt;a href=&quot;http://community.livejournal.com/s2layers/68607.html&quot;&gt;Original Source&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Multi-Layer Tags&lt;/strong&gt;&lt;br /&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;&quot; width=&quot;400&quot; bgcolor=&quot;&quot; cellspacing=&quot;10&quot;&gt;
&lt;tr&gt;
&lt;td&gt;&lt;textarea rows=&quot;15&quot; cols=&quot;70&quot; style=&quot;font-family: Tahoma; font-size:11px;&quot;&gt;function Page::lay_print_custom_paraphernalia() {
    var string id      = &quot;&quot;;
    var string header  = &quot;&quot;;
    var string content = &quot;&quot;;
    
    # tagslist

    #####   Config   #####

    # Specify your delimiter!  One char only -- extra chars get truncated.
    # Making the delimiter an empty string will result in an un-tiered list, 
    # which may be what you prefer, but this code is serious overkill for 
    # that purpose.
    var string delimiter = &quot;:&quot;;

    # Specify the title of your tag box!
    var string tag_title = &quot;Tags&quot;;

    ##### End Config #####

    var Page p = get_page();
    var string list = &quot;&quot;;
    
    # mt:20050627
    # Replaced erroneous return code with if statement (otherwise
    # entire sidebar not printed at all if no visible tags!).
    if (size $this-&amp;gt;visible_tag_list() &amp;gt; 0) { 
        # mt:20050624
        # Can&apos;t use delimiter longer than one char, so truncate if necessary.
        if ($delimiter-&amp;gt;length() &amp;gt; 1) {
            $delimiter = $delimiter-&amp;gt;substr(0, 1);
        }

        var bool list_started = false;
        var string list_item = &quot;&quot;;
        var string[] prev_tags = [&quot;&quot;, &quot;&quot;];

        # mt:20050624: Start the list.
        $list = &quot;&quot;&quot;&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot;; 
        
        foreach var TagDetail t ($this-&amp;gt;visible_tag_list()) {        
            var string[] tags;
             
            if ($t.name) {  
                # mt:20050624
                # Split tags into a 1- or 2-element array on delimiter. Oh god, my
                # kingdom for a function.  Adapted from lj-user rane500&apos;s explode 
                # function to only care about first instance of the delimiter.
                var int array_counter = 0;
                var string buffer = &quot;&quot;;
                var bool found_delimiter = false;
                foreach var string char ($t.name) {
                    if (($found_delimiter == false) and ($char == $delimiter)) {
                        $found_delimiter = true;
                        $tags[$array_counter] = $buffer;
                        $array_counter = $array_counter + 1;
                        $buffer = &quot;&quot;;
                    } else {
                        $buffer = $buffer + $char;
                    } 
                }  
                $tags[$array_counter] = $buffer;
                
                # mt:20050624: Now examine the tags array to determine how to display the tag.
                if (size $tags == 1) {
                    # mt:20050624: This tag has no subtag.
        
                    if ($list_started) {
                        # mt:20050624: Previous tag had a subtag, so must close its outstanding list. 
                        $list = $list + &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
                        $list_started = false;
                    }
                    if ($prev_tags[0] != &quot;&quot;) {
                        # mt:20050624: This is not the very first tag in the list, so close off previous tag.
                        $list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
                    }
                    # mt:20050624: Now add the new tag.
                    $list = $list + &quot;&quot;&quot;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;&amp;lt;a href=&quot;$t.url&quot;&amp;gt;$tags[0]&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
                } else {   
                    # mt:20050624: This tag has a subtag.
        
                    $list_item = &quot;&quot;&quot;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;&amp;lt;a href=&quot;$t.url&quot;&amp;gt;$tags[1]&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
                   
                    if (($tags[0] == $prev_tags[0]) and ($list_started)) {
                        # mt:20050624
                        # This tag fits under the previous tag&apos;s tier, and it is not the first item in that tier.
                        $list = $list + $list_item;
                    } elseif (($tags[0] == $prev_tags[0]) and ($list_started == false)) {
                        # mt:20050624
                        # This tag fits under the previous tag&apos;s tier, and it is the very first item in that tier.
                        $list = $list + &quot;&quot;&quot;&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot; + $list_item;
                        $list_started = true;
                    } elseif (($tags[0] != $prev_tags[0]) and ($list_started)) {
                        # mt:20050624: This tag initializes a new tier and must also close off the previous tag&apos;s list.
                        # $list_started retains its true state.
                        $list = $list + &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tags[0]&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot; + $list_item;
                    } elseif (($tags[0] != $prev_tags[0]) and ($list_started == false)) {
                        # mt:20050624: This tag initializes a new tier but does not have to close off a list.
                        
                        if ($prev_tags[0] != &quot;&quot;) {
                            # mt:20050624: This is not the very first tag in the list, so close off previous tag.
                            $list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
                        }
                        
                        # mt:20050624: Now add the new tag.
                        $list = $list + &quot;&quot;&quot;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tags[0]&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&quot;&quot;&quot; + $list_item;
                        $list_started = true;
                    }
                }       
                $prev_tags = $tags;           
            }        
            # mt:20050623: Next tag in the list!
        } 
    
        # mt:20050624: Close any outstanding lists.
        if ($list_started) {
            $list = $list + &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
        }	   
    	$list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
	   
        $list = &quot;&quot;&quot;&amp;lt;div class=&quot;tagBox&quot;&amp;gt;&quot;&quot;&quot; + $list + &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;
    }

    $header  = $tag_title;
    $id      = &quot;tagslist&quot;;
    $content = $list;

    paraphernalia_box_open ($id, $header);
    print $content;
    paraphernalia_box_close($id, $header);
}

function Page::print_custom_head() {
  &quot;&quot;&quot;
  &amp;lt;style type=&quot;text/css&quot;&amp;gt;

  /* List Alignment */
  /* Styles to ensure that the tag list is correctly aligned beneath the sidebox title */
  li.tagBox {
    padding-left: 0;
    margin-left:  0;
    list-style:   none;
  }
  ul.tagList {
    padding-left: 0;
    margin-left:  0;
    list-style:   none;
  }
  li.tagItem {
    padding-left: 15px;
    list-style:   none;
  }
    
/* Vertical Scroll */
/* Need to shrink the list width to prevent horizontal scrollbar in Firefox. */
/* Note this won&apos;t prevent it if your tags are super long, it will only */
/* prevent it from displaying unnecessarily. For the pleasure of IE users */
/* you can also colour any resulting scrollbars as you desire. */
ul.tagList {
width: 70%;
}
.tagBox {
height: 200px;
overflow: auto;
scrollbar-arrow-color: #ffffff;
scrollbar-base-color: #930000;
scrollbar-face-color: #930000;
scrollbar-highlight-color: #cb7575;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #930000;
}
  &amp;lt;/style&amp;gt;
  &quot;&quot;&quot;;
}&lt;/textarea&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note: See all Tags on Sidebar:&lt;/strong&gt; &lt;br /&gt;&lt;br /&gt;The tags &lt;b&gt;verical scroll&lt;/b&gt;, just remove this out of &lt;b&gt;Multi-Layer Tags&lt;/b&gt; code:&lt;br /&gt;&lt;blockquote&gt;  /* Vertical Scroll */&lt;br /&gt;/* Need to shrink the list width to prevent horizontal scrollbar in Firefox. */&lt;br /&gt;/* Note this won&apos;t prevent it if your tags are super long, it will only */&lt;br /&gt;/* prevent it from displaying unnecessarily. For the pleasure of IE users */&lt;br /&gt;/* you can also colour any resulting scrollbars as you desire. */&lt;br /&gt;ul.tagList {&lt;br /&gt;width: 70%;&lt;br /&gt;}&lt;br /&gt;.tagBox {&lt;br /&gt;height: 200px;&lt;br /&gt;overflow: auto;&lt;br /&gt;scrollbar-arrow-color: #ffffff;&lt;br /&gt;scrollbar-base-color: #930000;&lt;br /&gt;scrollbar-face-color: #930000;&lt;br /&gt;scrollbar-highlight-color: #cb7575;&lt;br /&gt;scrollbar-darkshadow-color: #000000;&lt;br /&gt;scrollbar-track-color: #930000;&lt;br /&gt;} &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Extracted from &lt;span class=&apos;ljuser&apos; lj:user=&apos;babyelefant&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://babyelefant.insanejournal.com/profile&apos;&gt;&lt;img src=&apos;http://www.insanejournal.com/img/userinfo.gif&apos; alt=&apos;[info]&apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: bottom; border: 0;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://babyelefant.insanejournal.com/&apos;&gt;&lt;b&gt;babyelefant&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;To add a &lt;b&gt;custom textbox&lt;/b&gt;, just add this into the &lt;b&gt;Multi-Layer Tags&lt;/b&gt; code:&lt;br /&gt;&lt;br /&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;&quot; width=&quot;400&quot; bgcolor=&quot;&quot; cellspacing=&quot;10&quot;&gt;
&lt;tr&gt;&lt;td&gt;&lt;textarea rows=&quot;2&quot; cols=&quot;70&quot; style=&quot;font-family: Tahoma; font-size:11px;&quot;&gt;
paraphernalia_box_open(&quot;CustomText&quot;, &quot;CustomText&quot;);
println &quot;&amp;lt;div id=custom&amp;gt;Text in Baroque&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;&quot;;
paraphernalia_box_close(&quot;CustomText&quot;, &quot;CustomText&quot;);&lt;/textarea&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;After this:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Page::lay_print_custom_paraphernalia() {&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Before this:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;    var string id      = &quot;&quot;;
    var string header  = &quot;&quot;;
    var string content = &quot;&quot;;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Want to change the title of the textbox, simply replace &lt;b&gt;CustomText&lt;/b&gt; with the name you&apos;ve chosen.&lt;br /&gt;&lt;br /&gt;Extracted from &lt;span class=&apos;ljuser&apos; lj:user=&apos;babyelefant&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://babyelefant.insanejournal.com/profile&apos;&gt;&lt;img src=&apos;http://www.insanejournal.com/img/userinfo.gif&apos; alt=&apos;[info]&apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: bottom; border: 0;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://babyelefant.insanejournal.com/&apos;&gt;&lt;b&gt;babyelefant&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;To change the position on the sidebar such as tags below the links, just add this into the &lt;b&gt;Theme&lt;/b&gt; code:&lt;br /&gt;&lt;br /&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;&quot; width=&quot;400&quot; bgcolor=&quot;&quot; cellspacing=&quot;10&quot;&gt;
&lt;tr&gt;&lt;td&gt;&lt;textarea rows=&quot;4&quot; cols=&quot;70&quot; style=&quot;font-family: Tahoma; font-size:11px;&quot;&gt;function Page::lay_print_paraphernalia() &quot;User layers can override this to change what appears in the paraphernalia section&quot; {
$this-&amp;gt;lay_print_journalinfo();
$this-&amp;gt;lay_print_viewsel();
$this-&amp;gt;lay_print_viewspec();
$this-&amp;gt;lay_print_custom_paraphernalia();
$this-&amp;gt;lay_print_userlinks();
if (viewer_sees_vbox()) {
paraphernalia_box_open(&quot;&quot;, &quot;&quot;);
&quot;&quot;&quot;&amp;lt;div style=&quot;margin-top: 8px;&quot;&amp;gt;&quot;&quot;&quot;;
$this-&amp;gt;print_vbox();
&quot;&amp;lt;/div&amp;gt;&quot;;
paraphernalia_box_close(&quot;&quot;, &quot;&quot;);
}
}&lt;/textarea&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;This is the natural order for this Dear Diary sidebar but to rearrange, simply changing the paraphernalias in the position where you want it. And Save.</description>
  <comments>http://asylums.insanejournal.com/scotchbonnet/573.html</comments>
  <category>journals: code</category>
  <lj:mood>cold</lj:mood>
  <lj:security>public</lj:security>
</item>
</channel>
</rss>
