I've just changed to the Expressive theme from FlexiSquares, and it took me a good couple years to figure my way around that coding, so now I'm back at square one again as to what I'm doing.
Two current issues. I want my default user icon to link to my user icon page. I've found the code in this entry, but remembering that I am useless, I actually don't know what to change to make it apply to me. I tried putting in my journal name in some of the places, but it just errors.
Secondly, really simple. How do I get the sidebar to switch to the right of the entries, instead of the left?
Thirdly, is there any way to get rid of the 'designed by' and 'powered by' links at the bottom of the sidebar? They really annoy me, and I want them GONE.
Layer is here if you need it, but there's not much there so far.
Thank you! I appreciate any and all help. I'm feeling like an utter n00b again :(
- Current Mood:confused
Comments
anyway, the code in the entry you mentioned works (I did it, too)
just copy the whole code in the box in the first comment to your theme layer - if you don't to change anything, it will work
Hum. I've put the code into my layer and it's still not working; any ideas?
the column are defined here:
http://www.livejournal.com/customize/options.bml
under "Presentation" the first row is "Layout Type" with a drop-down field - simply choose Two column(sidebar on the Right)
Question 3:
put this code in your theme layer to switch off the "powered" and "designed" module:
function prop_init() {
# make array of modules
var string[] modules = [];
if (viewer_sees_vbox()) {
$modules = [$*first_item, $*second_item, "ads", $*third_item, $*fourth_item, $*fifth_item, $*sixth_item, $*seventh_item];
} else {
$modules = [$*first_item, $*second_item, $*third_item, $*fourth_item, $*fifth_item, $*sixth_item, $*seventh_item];
}
# Find total of modules that are actually used
var int total = 0;
var string[] used_modules = [];
foreach var string module ($modules) {
if ($module != "none") {
$used_modules[$total] = $module;
$total++;
}
}
# keep track of where we are
var int count = 0;
# figure out which module properties we're using
var string[] properties = [];
# cycle thru each module
foreach var string module ($used_modules) {
# userprofile
if ($module == "userprofile") {
$properties = ["userprofile", "Profile", "1", "1"];
# mini-calendar
} elseif ($module == "calendar") {
$properties = ["calendar", "Latest Month"];
# linklist
} elseif ($module == "links") {
$properties = ["links", "Links"];
# tags
} elseif ($module == "tags") {
$properties = ["tags", "Tags"];
# summary
} elseif ($module == "archive") {
$properties = ["archive", "Page Summary"];
# syndicate
} elseif ($module == "syndicate") {
$properties = ["syndicate", "Syndicate"];
# ads
} elseif ($module == "ads") {
$properties = ["ads", ""];
# custom text
} elseif ($module == "customtext") {
$properties = ["customtext",$*customtext_title,$*customtext_body,$*customtext_url];
}
# Divide in half to find out which sidebar to allocate module to
var int maxcount = $total / 2;
# If the total can't be divided cleanly in half, add 1
if (($maxcount * 2) != $total) {
$maxcount++;
}
# index is % $maxcount to find position for sidebar
var int index = $count % $maxcount;
$count++;
if ($count <= $maxcount) {
# if count <= $maxcount, put in primary
$*sidebar_primary[$index] = $properties;
} else {
# if count > $maxcount, put in secondary
$*sidebar_secondary[$index] = $properties;
}
}
# Put poweredby and designedby modules last
#$*sidebar_secondary[size($*sidebar_secondary)] = ["poweredby"];
#$*sidebar_secondary[size($*sidebar_secondary)] = ["designedby", $*base_theme];
# Set the control strip colors
if ($*control_strip_bgcolor.as_string == "") {
$*control_strip_bgcolor = $*theme_bgcolor;
}
if ($*control_strip_fgcolor.as_string == "") {
$*control_strip_fgcolor = $*theme_fgcolor;
}
if ($*control_strip_bordercolor.as_string == "") {
$*control_strip_bordercolor = $*theme_bordercolor;
}
if ($*control_strip_linkcolor.as_string == "") {
$*control_strip_linkcolor = $*theme_linkcolor;
}
}
I hope everything works :)
Hum. I've c/p'ed the code, but the links are still there.
# Put poweredby and designedby modules last
#$*sidebar_secondary[size($*sidebar_seco
#$*sidebar_secondary[size($*sidebar_seco
change the beginning of your layer from:
layerinfo "type" = "theme";
layerinfo "name" = "apple";
set base_theme = "endless-summer-brown";
layerinfo "source_viewable" = 1;
to:
layerinfo "source_viewable" = 1;
layerinfo "type" = "theme";
layerinfo "name" = "apple";
layerinfo "redist_uniq" = "voxhtml/endless-summer-brown";
set base_theme = "endless-summer-brown";
sorry, but I don't understand enought of it to see any reason why it shouldn't work...
Thank you for all the help, by the way, I'm really appreciating it :)
still don't understand why the link to your user pics wouldn't work... :(
.designed-widget {
display: none;
}
.powered-widget {
display: none;
}
...alarmingly simple.
after you comb the damn code for fifteen minutes.still don't understand why it works on the two journals where I did it.. LOL
S2 Compiler Output at Sat Feb 10 22:09:06 2007
Error compiling layer:
Compile error: line 134, column 1: Unexpected token parsing statement block
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 46
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27
Context
130: if ($*control_strip_linkcolor.as_string == "") {
131: $*control_strip_linkcolor = $*theme_linkcolor;
132: }
133:
134: .designed-widget {
135: display: none;
136: }
137:
138: .powered-widget {
Thing means nothing to me :(
should work no problem there.
Thank you. I am an idiot. ♥
i don't touch layers if i can help it. i don't understand a damn word of what goes in there. css is much easier.
.designed-widget {
display: none;
}
.powered-widget {
display: none;
}
goes in the custom-css here:
http://www.livejournal.com/customize/options.bml