?

Log in

No account? Create an account

Previous Entry | Next Entry

Scribe Layout Alterations-SOS--SOLVED

  • Dec. 3rd, 2007 at 6:15 AM
I have a few items I want to change on the new layout I chose. And naturally, since I'm so not adept at this, I came back here for some help. I listed what I wanted to change, and pasted the code bits that I had gathered from this collections of tidbits. Of course it didn't work when I hit 'send and compile'.
Could one of you wonderful and knowledgeable people look at the code behind the cut, and tell me what's wrong? The sort of help I need is that someone fixes it so that all I have to do it paste the entire thing in the layer thingie. I don't have the proper skills to surmise and put it together myself and reading the tutorials has not helped.
I don't know if I'm still supposed to go to the S2 create a layer thing, or what the problem is. Thank you in advance for your patience and know-how.

These are the things I want changed (in case it’s not evident or it’s incorrect in the code mess to follow):

1.)    Add sitemeter code
2.)    Change body (content I would add by making an entry) font to PMingLiU, 12 pt
3.)    Add separator bar (margin bottom: 15px, border bottom: 1px #999)
4.)    Add border up and down the content box, to separate it crisply from the brown textured background. Black, about 2 px.
5.)    “Previous 30” link at very top of entries right under the header-deleted.

I have inserted text changes and color codes that I want, so those should remain as is.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Code below:
layerinfo "type" = "theme";
layerinfo "name" = "scribe";
layerinfo source_viewable = 1;

set page_day_sortorder = "reverse";
set text_read_comments_friends = "1 Hath Spoke // # Hath Spaketh";
set text_tell_friend = "Spread the Word";
set seventh_item = "customtext";
set first_item = "none";
set fourth_item = "none";
set text_mem_add = "";
set text_view_archive = "Filing Cabinet";
set text_meta_mood = "Grey Matter Status";
set text_post_comment = "Speak Up";
set second_item = "none";
set text_edit_tags = "";
set text_view_memories = "Nebulous Images";
set fifth_item = "none";
set text_multiform_opt_delete = "Eradicate";
set text_view_friends = "Comrades";
set text_edit_entry = "Correct BooBoos";
set text_meta_music = "Elixir du'Moment";
set text_entry_next = "Next Blather";
set text_view_recent = "Latest Blather ";
set text_multiform_opt_edit = "Correct BooBoos";
set layout_type = "2CR";
set text_read_comments = "1 Hath Spoke // # Hath Spaketh";
set page_year_sortorder = "reverse";
set text_meta_location = "";
set text_entry_prev = "Previous Blather";
set page_recent_items = 30;
set text_post_comment_friends = "Speak Up";
set text_view_userinfo = "Not Much About Moi";



function print_module_syndicate(string title) {
    var Page p = get_page();
    if ((size $p.data_links_order) < 1) { return; }
    open_module("syndicate", $title, "");

    foreach var string k ($p.data_links_order) {
        print " $p.data_link{$k} ";
    }

   “””<!-- Site Meter -->

<a href="http://s26.sitemeter.com/stats.asp?site=s26rloonatic" target="_top">

<img src="http://s26.sitemeter.com/meter.asp?site=s26rloonatic" alt="Site Meter" border="0"/></a>

<!-- Copyright (c)2006 Site Meter -->”””;

    close_module();

}



.asset-content {
font-size: 12px PMingLiU;
}


#container-inner {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}



/* Colour of links in the sidebar */

.widget-content a:link,
.widget-content a:visited {
color : #443c68;
}
.widget-content a:hover {
color : #9292C9;
}

/* Colour of links at the end of entry */

.asset-meta-list a:link,
.asset-meta-list a:visited {
color : #004000;
}
.asset-meta-list a:hover {
color : #11ff11;
}

/* Colour of links within body of entry */
.asset-body a:link,
.asset-body a:visited {
color : #530053;
}
.asset-body a:hover {
color : #ff86c2;
}

/* Separator Bar */

.asset-footer {
margin-bottom : 15px;
border-bottom : 1px solid #999;
}


Comments

( 9 comments — Leave a comment )
av8rmike
Dec. 3rd, 2007 01:19 pm (UTC)
I have a whole tutorial that explains how to use CSS in a theme layer. If it was unclear, can you point to some places that I can maybe clarify? That's problem #1 I see with the code. #2 is: I don't know what
layerinfo "type" = "RLIT";
means. Was this producing an error?
#3 is FAQ #14: Why can't I use HTML embedding tags, JavaScript, or Flash on LiveJournal?
raginglunatic
Dec. 4th, 2007 04:58 am (UTC)
Hello av8mike, thanks for the reply.
Firstly, I changed the sitemeter code to the non-java version.
Secoond: your tutorial was very helpful and easy to understand.
Thirdly: This is the error that I get when I hit 'save and compile'"

S2 Compiler Output at Tue Dec 4 04:49:05 2007
Error compiling layer:

Compile error: line 54, column 1: Unknown token encountered while parsing layer: [TokenPunct] = .
S2::Layer, S2/Layer.pm, 67
S2::Compiler, S2/Compiler.pm, 27


Context

50: """;
51: close_module();
52: }
53:
54: .asset-content {
55: font-size: 12px PMingLiU;
56: }
57:
58:

Fourth: I did remember to do the viewable thing. The code in this entry is now reflects the changes (sitemeter code, layer info correction, etc.)
av8rmike
Dec. 4th, 2007 05:18 am (UTC)
OK... so, that compiler error is #1 in my "Troubleshooting" list from that tutorial: You're putting CSS directly into the theme layer, when it's expecting just S2 codes. Add it to the custom_css property like this:
set custom_css = """
.asset-content {
    font: 12px PMingLiU;
}

#container-inner {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

etc...
Make sense?
raginglunatic
Dec. 4th, 2007 06:45 am (UTC)
That worked very well--sort of. I did not get any parsing errors, but another issue arose.
After applying the theme then going to see the new changes in effect, what I saw as a complete different theme altogether. Below, the code after fixing it. Then follows two screenshots-the first is how the journal is supposed to look, the second screenshot is how it actually looks.
What. In. The. Hell. Happened?! SOS techie dude, SOS!

[Error: Irreparable invalid markup ('<lj-cut="fixed>') in entry. Owner must fix manually. Raw contents below.]

That worked very well--sort of. I did not get any parsing errors, but another issue arose.
After applying the theme then going to see the new changes in effect, what I saw as a complete different theme altogether. Below, the code after fixing it. Then follows two screenshots-the first is how the journal is supposed to look, the second screenshot is how it actually looks.
What. In. The. Hell. Happened?! SOS techie dude, SOS!

<lj-cut="Fixed Code">
layerinfo "type" = "theme";
layerinfo "name" = "scribe";
layerinfo source_viewable = 1;
set page_day_sortorder = "reverse";
set text_read_comments_friends = "1 Hath Spoke // # Hath Spaketh";
set text_tell_friend = "Spread the Word";
set seventh_item = "customtext";
set first_item = "none";
set fourth_item = "none";
set text_mem_add = "";
set text_view_archive = "Filing Cabinet";
set text_meta_mood = "Grey Matter Status";
set text_post_comment = "Speak Up";
set second_item = "none";
set text_edit_tags = "";
set text_view_memories = "Nebulous Images";
set fifth_item = "none";
set text_multiform_opt_delete = "Eradicate";
set text_view_friends = "Comrades";
set text_edit_entry = "Correct BooBoos";
set text_meta_music = "Elixir du'Moment";
set text_entry_next = "Next Blather";
set text_view_recent = "Latest Blather ";
set text_multiform_opt_edit = "Correct BooBoos";
set layout_type = "2CR";
set text_read_comments = "1 Hath Spoke // # Hath Spaketh";
set page_year_sortorder = "reverse";
set text_meta_location = "";
set text_entry_prev = "Previous Blather";
set page_recent_items = 30;
set text_post_comment_friends = "Speak Up";
set text_view_userinfo = "Not Much About Moi";



function print_module_syndicate(string title) {
var Page p = get_page();
if ((size $p.data_links_order) < 1) { return; }
open_module("syndicate", $title, "");

foreach var string k ($p.data_links_order) {
print " $p.data_link{$k} ";
}

"""<!-- Site Meter -->

<a href="http://s26.sitemeter.com/stats.asp?site=s26rloonatic" target="_top">

<img src="http://s26.sitemeter.com/meter.asp?site=s26rloonatic" alt="Site Meter" border="0"/></a>

<!-- Copyright (c)2006 Site Meter -->""";

close_module();

}

set custom_css = """
.asset-content {
font-size: 12px PMingLiU;
}""";

set custom_css = """
#container-inner {
border-left: 2px solid #000;
border-right: 2px solid #000;
}""";



set custom_css = """
.widget-content a:link,
.widget-content a:visited {
color : #443c68;
}""";

set custom_css = """
.widget-content a:hover {
color : #9292C9;
}""";



set custom_css = """
.asset-meta-list a:link,
.asset-meta-list a:visited {
color : #004000;
}""";

set custom_css = """
.asset-meta-list a:hover {
color : #11ff11;
}""";



set custom_css = """
.asset-body a:link,
.asset-body a:visited {
color : #530053;
}""";

set custom_css = """
.asset-body a:hover {
color : #ff86c2;
}""";



set custom_css = """
.asset-footer {
margin-bottom : 15px;
border-bottom : 1px solid #999;
}""";
</lj-cut>

<lj-cut="First: Desired Theme, Second: Actual Theme Displayed">

Apparently the html was disabled for the comments, at this url you can see the different themes.
http://raginglunatic.livejournal.com/

With the not-desired theme, some of the changes were enacted, the ones that were not are:
The link colors didn't change. The spacing above and below the separator bar is way too small. The font is not what I wanted, nor the size. It supposed to be 12pt, and it looks like 8.

I also wanted the 'previous 30' removed from the very top, but don't think any code was entered for that task.



Edited at 2007-12-04 07:03 am (UTC)
av8rmike
Dec. 4th, 2007 01:24 pm (UTC)
I'm sorry, I guess I'm still not being very clear. You only need one line that starts
set custom_css = """
then comes all of the CSS you want to implement, followed by one closing """;
That section for this community looks something like this:
set custom_css = """
.categories-widget .widget-list .item {margin: 0 0 0 20px;}
#header-text {width: 400px;}
.lj-view-entry #beta {display: none;}
.lj-view-entry #alpha {float: left;}
.lj-view-entry #alpha-inner {width: 900px; overflow: visible;}
.calendar-widget a {text-decoration: underline;}
.calendar-widget a:hover {text-decoration: none;}""";


Also, lj-cuts don't work in comments. As far as the other changes, we'll get these working first, because right now the compiler's results are unpredictable.

Edited at 2007-12-04 01:24 pm (UTC)
raginglunatic
Dec. 4th, 2007 06:38 pm (UTC)
Ok...did I put the set custom_css = """ in the right places?

layerinfo "type" = "theme";
layerinfo "name" = "scribe";
layerinfo source_viewable = 1;

set custom_css = """
set page_day_sortorder = "reverse";
set text_read_comments_friends = "1 Hath Spoke // # Hath Spaketh";
set text_tell_friend = "Spread the Word";
set seventh_item = "customtext";
set first_item = "none";
set fourth_item = "none";
set text_mem_add = "";
set text_view_archive = "Filing Cabinet";
set text_meta_mood = "Grey Matter Status";
set text_post_comment = "Speak Up";
set second_item = "none";
set text_edit_tags = "";
set text_view_memories = "Nebulous Images";
set fifth_item = "none";
set text_multiform_opt_delete = "Eradicate";
set text_view_friends = "Comrades";
set text_edit_entry = "Correct BooBoos";
set text_meta_music = "Elixir du'Moment";
set text_entry_next = "Next Blather";
set text_view_recent = "Latest Blather ";
set text_multiform_opt_edit = "Correct BooBoos";
set layout_type = "2CR";
set text_read_comments = "1 Hath Spoke // # Hath Spaketh";
set page_year_sortorder = "reverse";
set text_meta_location = "";
set text_entry_prev = "Previous Blather";
set page_recent_items = 30;
set text_post_comment_friends = "Speak Up";
set text_view_userinfo = "Not Much About Moi";



function print_module_syndicate(string title) {
var Page p = get_page();
if ((size $p.data_links_order) < 1) { return; }
open_module("syndicate", $title, "");

foreach var string k ($p.data_links_order) {
print " $p.data_link{$k} ";
}





Site Meter




close_module();

}

.asset-content {
font-size: 12px PMingLiU;
}

#container-inner {
border-left: 2px solid #000;
border-right: 2px solid #000;
}

.widget-content a:link,
.widget-content a:visited {
color : #443c68;
}


.widget-content a:hover {
color : #9292C9;
}

.asset-meta-list a:link,
.asset-meta-list a:visited {
color : #004000;
}

.asset-meta-list a:hover {
color : #11ff11;
}


.asset-body a:link,
.asset-body a:visited {
color : #530053;
}


.asset-body a:hover {
color : #ff86c2;
}

.asset-footer {
margin-bottom : 15px;
border-bottom : 1px solid #999;
}""";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

And the subsequent parsing error message:

S2 Compiler Output at Tue Dec 4 18:32:35 2007
Error compiling layer:

Compile error: line 40, column 36: Can't reference a variable outside of a function.
S2::NodeTerm, S2/NodeTerm.pm, 159
S2::NodeTerm, S2/NodeTerm.pm, 66
S2::NodeSum, S2/NodeSum.pm, 65
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeTerm, S2/NodeTerm.pm, 76
S2::NodeTerm, S2/NodeTerm.pm, 66
S2::NodeExpr, S2/NodeExpr.pm, 46
S2::NodeSet, S2/NodeSet.pm, 66
S2::Checker, S2/Checker.pm, 353
S2::Compiler, S2/Compiler.pm, 34


Context

36:
37:
38: function print_module_syndicate(string title) {
39: var Page p = get_page();
40: if ((size $p.data_links_order) < 1) { return; }
41: open_module("syndicate", $title, "");
42:
43: foreach var string k ($p.data_links_order) {
44: print " $p.data_link{$k} ";


av8rmike
Dec. 4th, 2007 06:59 pm (UTC)
*sigh*
layerinfo "type" = "theme";
layerinfo "name" = "raginglunatic_scribe";
layerinfo source_viewable = 1;

set base_theme = "scribe";
set page_day_sortorder = "reverse";
set text_read_comments_friends = "1 Hath Spoke // # Hath Spaketh";
set text_tell_friend = "Spread the Word";
set seventh_item = "customtext";
set first_item = "none";
set fourth_item = "none";
set text_mem_add = "";
set text_view_archive = "Filing Cabinet";
set text_meta_mood = "Grey Matter Status";
set text_post_comment = "Speak Up";
set second_item = "none";
set text_edit_tags = "";
set text_view_memories = "Nebulous Images";
set fifth_item = "none";
set text_multiform_opt_delete = "Eradicate";
set text_view_friends = "Comrades";
set text_edit_entry = "Correct BooBoos";
set text_meta_music = "Elixir du'Moment";
set text_entry_next = "Next Blather";
set text_view_recent = "Latest Blather ";
set text_multiform_opt_edit = "Correct BooBoos";
set layout_type = "2CR";
set text_read_comments = "1 Hath Spoke // # Hath Spaketh";
set page_year_sortorder = "reverse";
set text_meta_location = "";
set text_entry_prev = "Previous Blather";
set page_recent_items = 30;
set text_post_comment_friends = "Speak Up";
set text_view_userinfo = "Not Much About Moi";

set custom_css = """
.asset-content {
    font-size: 12px;
    font-family: PMingLiU, serif;
}

#container-inner {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

/* Colour of links in the sidebar */

.widget-content a:link,
.widget-content a:visited {
    color : #443c68;
}
.widget-content a:hover {
    color : #9292C9;
}

/* Colour of links at the end of entry */
.asset-meta-list a:link,
.asset-meta-list a:visited {
    color : #004000;
}
.asset-meta-list a:hover {
    color : #11ff11;
}

/* Colour of links within body of entry */
.asset-body a:link,
.asset-body a:visited {
    color : #530053;
}
.asset-body a:hover {
    color : #ff86c2;
}

/* Separator Bar */
.asset-footer {
    margin-bottom : 15px;
    border-bottom : 1px solid #999;
}

.prevnext {
    display: none;
}""";

function print_module_syndicate(string title) {
    var Page p = get_page();
    if ((size $p.data_links_order) < 1) { return; }
    open_module("syndicate", $title, "");
    foreach var string k ($p.data_links_order) {
        print " $p.data_link{$k} ";
    }
"""<!-- Site Meter -->
<a href="http://s26.sitemeter.com/stats.asp?site=s26rloonatic" target="_top">
<img src="http://s26.sitemeter.com/meter.asp?site=s26rloonatic" alt="Site Meter" border="0"/></a>
<!-- Copyright (c)2006 Site Meter -->""";
    close_module();
}
I fixed the base theme setting, the font spec., and the skiplinks.
raginglunatic
Dec. 4th, 2007 09:27 pm (UTC)
Thank you so much for all your time and especially your patience.
This last time around it worked beautifully and I'm extremely happy with the end result.
THANKS!!!
av8rmike
Dec. 4th, 2007 09:43 pm (UTC)
You're welcome. I didn't realize how confusing I was being.
( 9 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars