1. Create a new theme layer. (Follow the steps
in this post to create a theme layer.) If you have already created a theme layer for the style, just add the following code to it.
2. Copy the following and modify the parts in red as you see fit. Paste it in the theme layer and compile.
(
code )
Comments 192
Any help would be great. Thanks!
Reply
Reply
Reply
Reply
var string extra1_title ="";
var string extra1_content ="";
var string extra2_title ="";
var string extra2_content ="";
var string extra3_title ="";
var string extra3_content ="";
and so on. You didn't have the lines in red.That's why it's saying that the variable is unknown.
Reply
Reply
(The comment has been removed)
Insert the following code into your print_custom_head() (refer to this tutorial on using print_custom_head() if needed):
.sbarbody{
text-align:center;
}
.sbarbody2{
text-align: center;
}
.sbarbody2 controls how the blurb/freetext is displayed. .sbarbody controls how everything else in the sidebar is displayed :)
Reply
(The comment has been removed)
If you can give me a few more details, I might be able to figure out how to accomplish it. Thanks :)
Reply
Reply
function util::print_sidebar(string summary)
{
var string extra1_title ="";
var string extra1_content ="";
var string extra2_title ="";
var string extra2_content ="";
$extra1_title = """
$extra1_content = """
print_userpic();
print_sidebar_blurb();
if($summary != ""){
print_sidebar_box("
}
print_sidebar_linklist();
print_sidebar_box($extra1_title, $extra1_content);
print_sidebar_box($extra2_title, $extra2_content);
print_sidebar_calendar();
}
Reply
Reply
S2 Compiler Output at Wed Oct 12 11:15:10 2005
Error compiling layer:
Compile error: line 182, column 1: Can't declare function util::print_sidebar(string) for non-existent class 'util'
S2::NodeFunction, S2/NodeFunction.pm, 159
S2::Checker, S2/Checker.pm, 339
S2::Compiler, S2/Compiler.pm, 34
Context
178: print """ | """;
179: $this->print_postlink();
180: }
181:
182: function util::print_sidebar(string summary)
183: {
184: var string extra1_title ="";
185: var string extra1_content ="";
186: var string extra2_title ="";
Reply
38: var string extra9_content ="";
39:
40: $extra1_title = """
41: $extra1_content = """
LJ PORTAL
42:
I-R-L
when i try and compile. can you tell me what is the matter, and how to fix it?
Reply
Also, could you tell us the exact text of the error (should be the top line), as well as which line the error is in? (that line should be in red, or else the line number will be mentioned within the first two-three lines). Thanks ;)
Reply
Leave a comment