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
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?
# 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:
Comments 38
Reply
I hate default behaviour of both styles. With this code it's much nicer
Reply
Reply
Reply
Reply
Reply
Can you make your layer public and give me the link?
Reply
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
Reply
Reply
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
Reply
Leave a comment