Boxer help

Mar 19, 2007 11:36

Hi guys.

I've been having major problems with my archive page and I don't know how to change it.

When I click on the links, they all change to the background colour (black), rather than staying the colour requested for visited links (pink). Anyone got an idea how to change it? I've got some code here for you to look at:


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

set text_view_friends = "friends";
set color_nav_bg = "#000000";
set nav_link = "#ED0044";
set nav_scale = "same";
set page_width = 517;
set entry_link = "#ED0044";
set entry_bg = "#000000";
set text_view_archive = "memories";
set text_view_recent = "recent";
set info_font = "#ED0044";
set my_date = "long";
set entry_font = "#ED0044";
set info_link_visited = "#ED0044";
set text_view_month = "calendar";
set entry_link_visited = "#ED0044";
set links_divider = "♥";
set info_bg = "#000000";
set links_name = "places";
set info_link = "#ED0044";
set bg_color = "#000000";
set font_size = "small";
set font_family = "verdana";
set page_background_pattern = "";
set page_background_image ="http://img.photobucket.com/albums/v297/troubion/More%20Layouts/heartdotsbg2.png";
set page_friends_items = 25;
set page_recent_items = 5;
set text_meta_music = "hearing";
set text_meta_mood = "feeling";
set text_meta_location = "place";
set show_mini_calendar = false;
set show_entry_userpic = true;
set linklist_support = true;
set lineheight = 15;
set tags_aware = true;
set lang_fmt_date_long = "%%dayord%% %%month%% %%yyyy%%";

function Page::print_custom_head() {
"""
i forget the names and faces, but the feelings still remain


""";
}

function Page::print_linklist() {

"""



internet

bbc

gmail

amazon

photohost

google

more

95.4

myspace

last.fm

facebook

pics

lj

update

othercomms

girlcomms

libscomms

musiccomms

uni

brookes

the su

webmail

webct

pip

""";

}

function FriendsPage::print_entry (Entry e) {
var Friend f = $.friends{$e.journal.username};
$f.bgcolor = "#000000";
$f.fgcolor = "#ED0044";
print_entry($this, $e, $f.bgcolor, $f.fgcolor, false);
}

#############################################
#
# Top Navigation
#
#############################################

function print_nav(Page p) {

# figure out the width of each table cell in the navigation based on total page width
var int blank = $*page_width - 517;
if($p.journal.website_url) {
$blank = $blank - 0;
}

"""

nowuserinfoarchivefiltermemorieshericons

""";

$p->lay_viewspec_nav();

if($blank > 0) {
"""

""";
}
"""

""";

}

#############################################
#
# Forward and back nav functions
#
#############################################

function Page::lay_viewspec_nav() {
"""

""";
}

function DayPage::lay_viewspec_nav() {
"""

""";

if ($.prev_url != "") {
""" ««""";
}

"""

""";

if ($.next_url != "") {
""" »»""";
}

"""

""";
}

function MonthPage::lay_viewspec_nav() {
"""

""";

if ($.prev_url != "") {
""" ««""";
}

"""

""";

if ($.next_url != "") {
""" »»""";
}

"""

""";
}

function RecentPage::lay_viewspec_nav() {
"""

""";

if ($.nav.backward_url != "") {
""" ««""";
}

"""

""";

if ($.nav.forward_url != "") {
""" »»""";
}

"""

""";
}

#############################################
#
# Print and Print Bodies
#
#############################################

function Page::print() {

var string title = $this->title();

"""

""";
$this->print_head();
"""
$title

""";

print_nav($this);

"""

""";

var bool linkl = false;
if(size $.linklist > 0) { $linkl = true; }
if(not $*linklist_support) { $linkl = false; }

var bool box = false;
if($.journal.default_pic) { $box = true; }
if($*show_mini_calendar) { $box = true; }
if($linkl) { $box = true; }

if($box) {
"""

""";

if($.journal.default_pic) {
"""


""";
if($linkl or $*show_mini_calendar) {
"""

""";
}
}

$this->print_linklist();
if($*show_mini_calendar) {
if($linkl) {
"""

""";
}
"""

""";

print_calendar($this);

"""

""";
}
"""

""";
}

$this->print_body();

print_nav($this);

"""

""";
}

##############
# recent page
##############

function RecentPage::print_body {
foreach var Entry e ($.entries) {
$this->print_entry($e);
}
}

#############################################
#
# Print Entries
#
#############################################

function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) {

var int entry_page_width = $*page_width;
var int entry_half_width = $entry_page_width / 2;
var bool userpic_view = false;

if($p.view == "friends" or $p.journal_type == "C" or $e.poster.username != $e.journal.username or $*show_entry_userpic) {
$userpic_view = true;
}

if($p.view != "friends" and $*show_entry_userpic) {
$bgcolor = $*entry_bg;
$fgcolor = $*entry_font;
}

if($userpic_view) {
var string url = $e.journal->base_url();
var string url2 = $e.poster->base_url();
$entry_page_width = $*page_width - 122;
$entry_half_width = $entry_page_width / 2;

"""

""";
if($e.journal.username != $e.poster.username) {
""" $e.poster.username:
""";
}
"""
$e.journal.username
""";

if($e.userpic) {
"""

""";
}

"""

$e.journal.name


""";
}

"""

""";

if ($e.security) { print "friends"; }

"""

""";

print $e.time->date_format($*my_date);
print " " + $e.time->time_format();

"""

""";

if($e.subject) {
"""

$e.subject

""";
}

var string metadata;

if ($e.metadata) {
foreach var string k ($e.metadata) {
var string text = $k;
var string val = $e.metadata{$k};
if ($k == "mood") { $text = $*text_meta_mood; }
if ($k == "music") { $text = $*text_meta_music; }
if ($k == "mood" and defined $e.mood_icon) {
var Image i = $e.mood_icon;
$val = "
$val";
}
$metadata = $metadata + """$text: $val
""";
}
}

if (not $hide_text) { print "
"; $e->print_text(); "";

$e->print_metadata(); }

"""
""";

$e.comments->print();

var Link mem;
$mem = $e->get_link("mem_add");
if(defined $mem) {
"""


""";
}

var Link lnk;
$lnk = $e->get_link("edit_entry");

if(defined $lnk) {
"""


""";
}

var Link tell;
$tell = $e->get_link("tell_friend");
if(defined $tell) {
"""


""";
}

"""

""";

if($userpic_view) {
"""

""";
}
}

function Page::print_entry (Entry e)
{
print_entry($this, $e, null Color, null Color, false);
}

function FriendsPage::print_entry (Entry e) {
var Friend f = $.friends{$e.journal.username};
print_entry($this, $e, $f.bgcolor, $f.fgcolor, false);
}

#############################################
#
# Comment Links
#
#############################################

function CommentInfo::print_readlink {
var Page p = get_page();
var string count;
if($.count > 0) {
$count = "" + $.count;
} else {
$count = "";
}

""" $count
""";
}

function CommentInfo::print_postlink() {
var Page p = get_page();
"""
""";
}

function CommentInfo::print()
{
if (not $.enabled) { return; }
$this->print_postlink();
$this->print_readlink();

}

function Entry::print_metadata() {
var string tags_header = "shorts";
var string tags_joiner = ":";
var Link edit_tags = $this->get_link("edit_tags");
if ((size $.metadata > 0) or ((size $.tags > 0) and ($*tags_aware))){
var string currents = "";
$currents = """
""";
foreach var string k ($.metadata){
var string text = $k;
var string val = $.metadata{$k};
if ($k == "mood"){
$text = $*text_meta_mood;
}
elseif ($k == "music") {
$text = $*text_meta_music;
}
if ($k == "mood" and defined $.mood_icon){
var Image i = $.mood_icon;
$val = "
$val";
}
$currents = $currents + """$text: $val
""";
}
if ((size $.tags > 0) and $*tags_aware) {
var int tcount = 0;
if($edit_tags.url != "") {
$tags_header = """ $tags_header""";
}
$currents = $currents + """$tags_header$tags_joiner """;
foreach var Tag t ($.tags) {
$currents = $currents + """ $t.name""";
$tcount++;
if ($tcount != size $.tags) { $currents = $currents + ", "; }
}
}
$currents = $currents + "
";
println "$currents";
}
}

Thanks in advance!
Previous post Next post
Up