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: ninjamonkeyspy
2005-03-03 08:37 pm (UTC)
Just curious, but is using...
...an acceptable way of posting code? I believe this allows you to post whatever code you want within the opening and closing textarea tags, because nothing inside the textbox can be formatted. The only rules you would need then is how wide or tall the textareas can be, and whether textwrapping should be turned on or not. (I also recommend setting the "readonly" parameter to 1 as I did in the sample below so people can't accidentally edit the code in the box.)

In the sample below, I used <textarea style="width:100%;" rows="10" readonly="1" >. Notice how you can't edit the text inside the box, it's as wide as the coments area, and it's only 10 rows tall.

This is a very basic S2 user layer for the Component style that edits the user profile component by linking the user's default icon to their "allpics.bml" page instead of their journal. It uses system variables so the code will work for anyone, and it will apply to other journals using the "?style=mine" parameter at the end of the URL.

(Reply) (Thread)
[User Picture]From: kunzite1
2005-03-04 01:39 am (UTC)

that's handy!
(Reply) (Parent) (Thread)