kunzite1

department of redundancy department

in the new "positive contact" layout:
function logged_in(string login_text) : string {
  var Page p = get_page();
  if (viewer_logged_in()) {
    if (viewer_is_owner()) {
      return """<a href="$p.manage_account.url">$p.manage_account.caption</a>""";
    }
  }
  return $login_text;
}
umm. if we know that the viewer is the owner, we know that the viewer is logged in. duh.
Johnny - Sadness

[Code snippets for layout layer] - [Parse <lj user=*> tags / make "Add as User Icon" buttons]

Two snippets. First, a function to parse strings for <lj user=*> and < comm=*> tags. Also includes a recursive function to find the earliest occurrence of a substring in a larger string using a binary search. These functions are useful for parsing picture or gallery descriptions.
Collapse )
The second snippet is HTML (encased in strings) for a form button that lets any user add an image's thumbnail as their own LJ user icon, assuming they're logged in. The URL, Keywords, and Comments values assume you're in Gallery View on the Super Simple style (having run $this->load_pict_descriptions()) but it's pretty simple to adapt to any view, just change $i.url, $p.title, and $p.des to the correct values for the image's thumbnail, title, and description respectively.

Collapse )
I recommend setting properties in your layout for the use of these snippets. You can see an example in my modified Super Simple style, number 14200. This gallery (and each of its subgalleries) is using the style right now, if you want to see an example.
kunzite1

opening house

here's what i need:
  • categories for memories
  • ideas for rules about posting
  • responsible people who will not abuse maintainership
  • people who want to sort memories to the agreed upon specifications
  • people who want to take care of flame wars if they arise
  • which layout to use for the journal
  • what to add/change/delete on the userinfo page
  • people who have suggestions to this list

now... discuss!