| [theme] - [smoove] - [add link to journal in header] |
[Feb. 14th, 2006|11:41 am] |
( cut ) |
|
|
| [theme] - [positive contact] - [remove other pictures sidebar box] |
[Jan. 23rd, 2006|05:18 pm] |
( cut ) |
|
|
| [theme] - [positive contact] - [add custom css] |
[Jan. 23rd, 2006|04:12 pm] |
( cut ) |
|
|
| [theme] - [cornered] - [make Page::print() call Page::print_head()] |
[Dec. 7th, 2005|06:37 pm] |
( cut ) |
|
|
| department of redundancy department |
[Nov. 12th, 2005|10:37 pm] |
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. |
|
|
| [theme] - [apache] - [apache image downloader] |
[Oct. 2nd, 2005|01:58 pm] |
( cut ) |
|
|
| [Code snippets for layout layer] - [Parse <lj user=*> tags / make "Add as User Icon" buttons] |
[Apr. 14th, 2005|04:35 pm] |
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.
( Code )
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.
( Code )
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. |
|
|
| [snippet intended for layout layer] - [add to page::print()] - [add lj links to fb layout] |
[Jan. 7th, 2005|12:16 am] |
( code ) ( screenshot ) |
|
|
| opening house |
[Jan. 6th, 2005|05:50 pm] |
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! |
|
|
| first post |
[Jan. 6th, 2005|05:46 pm] |
how to post post your layer code under a cut after converting all
& to &
< to < and
> to >
this can help with the conversion. if you use the aforementioned tool, change the <code> and </code> to <pre> and </pre> respectively. if you dont use the aforementioned tool, please wrap your code with <pre> and </pre>.
the subject line should follow the following format:
[layout name] - [layer type] - [mini description of what your code does] - [page number (if applicable)] layout name - apache, color hover, cornered, framed, porfoloroid, etc. layer type - layout, user, theme page number - page #/total pages
if your code is too long to place into a single post: put a comment in the code saying # part 1 ends here and then in the next post put a comment in the code saying # part 2 starts here ... lather, rinse, repeat.
recommended coloring scheme (not required) if you have comments in the code, we suggest making it green by doing something like:
<span style="color:green;">comment</span>
variable values: maroon
var string moo = "<span style="color:maroon;">variable</span>";
code that is currently active but can be deactivated by commenting (putting a # in front of it) it out. active code: blue
"<span style="color:blue;">if($active) { print "make it blue"; }</span>";
code that is currently inactive but can be activated by decommenting (taking # in front of it out) it. inactive code: pink
"<span style="color:pink;"># if($inactive) { print "make it orange"; }</span>";
screenshot of output we would also like to have a screenshot available that shows the results of the code.
and finally, select the don't auto-format option. this makes the entry a lot easier to read. |
|
|
| navigation |
| [ |
viewing |
| |
most recent entries |
] |
| |
|
|