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"];
# 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; }
for the "powered by" find those lines and delete them:
# Put poweredby and designedby modules last #$*sidebar_secondary[size($*sidebar_secondary)] = ["poweredby"]; #$*sidebar_secondary[size($*sidebar_secondary)] = ["designedby", $*base_theme];
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 :)
Reply
Hum. I've c/p'ed the code, but the links are still there.
Reply
# Put poweredby and designedby modules last
#$*sidebar_secondary[size($*sidebar_secondary)] = ["poweredby"];
#$*sidebar_secondary[size($*sidebar_secondary)] = ["designedby", $*base_theme];
Reply
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...
Reply
Thank you for all the help, by the way, I'm really appreciating it :)
Reply
still don't understand why the link to your user pics wouldn't work... :(
Reply
Reply
Leave a comment