kunzite (kunzite1) wrote in component_help,
kunzite
kunzite1
component_help

[theme] - [component] - [custom security icons]

in response to verymad_affair's comment on my component_help post.
  # this should replace your print_entry_header() line in print_entry()
  # alter as necessary

  # below you have the urls for public, private, and protected icon images
  # set to null string ( var string varname = ""; ) to disable the icon for that security type

  var string   k1Sec_public      = "http://pics.livejournal.com/kunzite1/pic/000f5p4c";
  var string   k1Sec_protected   = "$*IMGDIR/icon_protected.gif";
  var string   k1Sec_private     = "$*IMGDIR/icon_private.gif";

  # below you have the alt text for public, private, and protected icon images
  var string   k1Sec_public_text    = "[public post]";
  var string   k1Sec_protected_text = "$*text_icon_alt_protected";
  var string   k1Sec_private_text   = "$*text_icon_alt_private";

  var string{} k1Sec_urls        = {
                                    "public"    => $k1Sec_public,
                                    "protected" => $k1Sec_protected,
                                    "private"   => $k1Sec_private,
                                   };
  var string{} k1Sec_alts        = {
                                    "public"    => $k1Sec_public_text,
                                    "protected" => $k1Sec_protected_text,
                                    "private"   => $k1Sec_private_text,
                                   };
  var string   k1Sec_security     = $e.security != "" ? $e.security : "public";
  var string   k1Sec_icon         = $k1Sec_urls{$k1Sec_security} != "" ? """<img src="$k1Sec_urls{$k1Sec_security}" alt="$k1Sec_alts{$k1Sec_security}" title="$k1Sec_alts{$k1Sec_security}" border="0" /> """ : "";

  var string   k1Sec_entry_header = "";
  var string   k1Sec_time         = $e.time->time_format();
  var string   k1Sec_date         = $e.time->date_format("long");
  if($k1Sec_icon != "") {
    $k1Sec_entry_header = $k1Sec_entry_header + $k1Sec_icon;
  }
  if($e.new_day) {
    $k1Sec_date = "<b>" + $k1Sec_date + "</b>";
  }
  $k1Sec_entry_header = $k1Sec_entry_header + $k1Sec_time + " " + $k1Sec_date;
  print_entry_header($k1Sec_entry_header);
Tags: admin: deprecated, user: kunzite1
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments