Sidebar/User Icon issues

Feb 10, 2007 19:32

Oh, people. Someone help me, because I am confused and useless ( Read more... )

sidebar:profile:user icon, $acct level:paid or perm, sidebar:placement

Leave a comment

mygothangel February 10 2007, 20:33:10 UTC
Question 2:

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

oh_mumble February 10 2007, 20:53:56 UTC
Yay, got the sidebar switched! Thank you!!!

Hum. I've c/p'ed the code, but the links are still there.

Reply

mygothangel February 10 2007, 21:01:37 UTC
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];

Reply

mygothangel February 10 2007, 21:13:24 UTC
only wild guessing now, because the way I did it worked on two journals...

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

oh_mumble February 10 2007, 22:16:35 UTC
Oh, wait, confusion. What's this bit of coding for?

Thank you for all the help, by the way, I'm really appreciating it :)

Reply

mygothangel February 10 2007, 22:29:09 UTC
actually, you can forget it, it doesn't change anything

still don't understand why the link to your user pics wouldn't work... :(

Reply

oh_mumble February 10 2007, 23:08:39 UTC
Yeah, it's so weird. There's no errors, and I even cleared the cache just in case, but nada :(

Reply


Leave a comment

Up