(no subject)

Aug 12, 2005 02:35

User layout: ilikesidewalks
Problem areas: Comments, links list, user icons



1.

See how where the user icons are, is there anyway to make the color behind it stay the same color istead of getting darker? Also, is there anyway to get some kind of border around each comment?

2. On my links list my text always ends up size 8 & my links end up size 7. I've looked through my codes & I don't see any size 8 text anywhere. How can make all the text in the link list the same size?

3. I know there's a way to get rid of all the text around user icons, but is there a way to get it so just the bottom text goes away?

4. Is there a way to get it so my user icon for each entry shows when your just looking at one entry, but not on my main page?

5. Right now I have my comments set the old way but is there a way to do that for my friends page too?

layerinfo "type" = "theme";
layerinfo "name" = "Simple Boxer";
layerinfo author_name = "Aeval @LJ";

set text_view_friends = "friends";
set color_nav_bg = "#F4F4F4";
set nav_link = "#000000";
set nav_scale = "same";
set page_width = 600;
set entry_link = "#C2C2C2";
set entry_bg = "#FFFFFF";
set text_view_archive = "memories";
set text_view_recent = "recent";
set info_font = "#000000";
set my_date = "long";
set entry_font = "#000000";
set info_link_visited = "#F4F4F4";
set text_view_month = "calendar";
set entry_link_visited = "#F4F4F4";
set links_divider = " . ";
set info_bg = "#638A9D";
set links_name = "";
set info_link = "#F4F4F4";
set bg_color = "#C2C2C2";
set font_size = "small";
set font_family = "verdana";
set page_background_pattern = "none";
set page_background_image ="";
set page_friends_items = 25;
set page_recent_items = 10;
set text_meta_music = "music";
set text_meta_mood = "mood";
set show_mini_calendar = false;
set show_entry_userpic = false;
set linklist_support = false;
set lineheight = 17;
set view_entry_disabled = true;

function Page::print_custom_head() {
"""
D A M N___H O T

http://pictures.greatestjournal.com/userimg/4671193/561642" width="600" height="300">



""";
}

function Page::print_linklist() {
"""





ILU//test//link//link//link//link







""";
}

function FriendsPage::print_entry (Entry e) {
var Friend f = $.friends{$e.journal.username};
$f.bgcolor = "red";
$f.fgcolor = "blue";
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 - 600;
if($p.journal.website_url) {
$blank = $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();

"""
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">


""";
$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.username""";
}

"""

$e.journal.name

""";
}

"""



if($userpic_view == false) {
print """ class="new" """;
}
""">















""";

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

"""

""";

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.text
"; print "

$metadata

"; }

"""

""";

$e.comments->print();

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

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

if(defined $lnk) {
"""
Edit entry
""";
}

var Link tell;
$tell = $e->get_link("tell_friend");
if(defined $tell) {
"""
Email this entry to a friend
""";
}

"""






""";

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 = "";
}

"""$countComment""";
}

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

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

}

thanks!

comment-pages, user-icon, links-list

Previous post Next post
Up