Log in

No account? Create an account
first post - S2 Layers — LiveJournal [entries|archive|friends|userinfo]
S2 Layers

[ website | advanced customization ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Links:| how to post tags page ]
[affiliated communities| fblayers ]

first post [Sep. 8th, 2004|04:15 pm]
S2 Layers


how to post
post your layer code under a cut after converting all
& to &
< to &lt;
> to &gt;

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>.

http://stat.livejournal.com/ should be $*IMGDIR/
http://www.livejournal.com/palimg/ -> $*PALIMGROOT/
http://www.livejournal.com/ -> $*SITEROOT/

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 - a sturdy gesture, component, generator, haven, opal, 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.

[User Picture]From: kunzite1
2005-03-17 08:30 pm (UTC)

what you could do is the following:
when in a Page function:
var string journal_base = $.journal->base_url() + "/";
if you are currently at http://yourusername.livejournal.com/ all base_urls will be in the same format.
when at http://www.livejournal.com/~yourusername/ all base_urls are like that.
when at http://www.livejournal.com/users/yourusername/ all base_urls are like that.

when in something like print_entry(Entry e):
var string journal_base = $e.journal->base_url() + "/";
var string poster_base  = $e.poster->base_url()  + "/";
there is currently no way to be able to tell if a user is paid or not. might be a nifty thing to post to suggestions but you should check the memories to see if it's been posted already.

what i would like to see if that happens is a new member variable added to User. like a bool is_paid or something.
(Reply) (Parent) (Thread)
[User Picture]From: ninjamonkeyspy
2005-03-17 09:01 pm (UTC)
Nah, that's what I was looking for. Thanks!
(Reply) (Parent) (Thread)
[User Picture]From: ninjamonkeyspy
2005-03-17 09:08 pm (UTC)
Actually, I take the previous comment back. What I really wanted was:


$p.journal.base_url returns all the HTML as if I had used the <lj user=username> tag in an entry or comment. But $p.base_url just returns the URL.
(Reply) (Parent) (Thread)
[User Picture]From: kunzite1
2005-03-17 09:13 pm (UTC)

good to know that you figured it out. :)
(Reply) (Parent) (Thread)