Leave a comment

Comments 38

carriep63 November 13 2006, 14:11:24 UTC
Very nice!

Reply

babyelefant November 13 2006, 14:15:53 UTC
It really is.
I hate default behaviour of both styles. With this code it's much nicer

Reply


delurker November 14 2006, 09:02:04 UTC
Cool. *adds to memories*

Reply


touchyphiliac November 27 2006, 10:35:09 UTC
There's an error with the code?

Reply

babyelefant November 27 2006, 12:06:58 UTC
No, why?

Reply

touchyphiliac November 27 2006, 12:09:59 UTC
I get an error when I try to load it I looked it over several times and couldn't figure out why it was saying it didn't recognize one line.

Reply

babyelefant November 27 2006, 12:11:06 UTC
I can't help you when I can't see what's wrong.
Can you make your layer public and give me the link?

Reply


draconic_rogue December 30 2006, 00:59:42 UTC
I really like this but when I try to add this to my theme I get this:

S2 Compiler Output at Sat Dec 30 00:58:35 2006
Error compiling layer:

Compile error: line 154, column 1: Can't declare a class inside a layer file after functions have been defined
S2::NodeClass, S2/NodeClass.pm, 137
S2::Checker, S2/Checker.pm, 353
S2::Compiler, S2/Compiler.pm, 34

Context

150: # http://www.livejournal.com/customize/advanced/layersource.bml?id=6240967
151: # (murklinstest - outer lines)
152: #--------------
153:
154: class SpecialComments {
155: function print_comments(Comment[] comments, EntryPage page, string depth, bool has_siblings);
156: }
157:
158: function Page::print_custom_head() {

Reply

babyelefant December 30 2006, 08:23:56 UTC
looks like you might have copied it to the wrong place. Can you make your layer public and show me what you did?

Reply

draconic_rogue December 30 2006, 08:25:52 UTC
I'm not sure how to do that. I was trying to copy and paste it into an already created theme. Do you want me to just copy and paste everything that I have there already?

Reply

babyelefant December 30 2006, 08:33:17 UTC
# Make sure you have this line at the top of your layer, near the other layerinfo lines:

layerinfo "source_viewable" = 1;

If it isn't there already, add it.

# Compile the layer.

# Go to your Layers page. Find your layer in the list. In the LayerID column, there will be a number next to your layer. This is your layer's id. Click it.

# Now you are on the Layer Browse page. Copy the URL of this page and give me. Should look like this:

http://www.livejournal.com/customize/advanced/layerbrowse.bml?id=4472608

Or save the whole thing in a txt file, upload it somewhere and give me the link.

But the error looks like you copied the whole thing just not in the right spot. The

class SpecialComments {
function print_comments(Comment[] comments, EntryPage page, string depth, bool has_siblings);
}

should be right at the top under the layerinfo declarations. If you already had them, you should have not copied the ones from herer

Reply


revid January 21 2007, 01:14:56 UTC
Thank you very much. Credited in my profie.

Reply


Leave a comment

Up