compilerbitch: That's me, that is! (f_hungry)
[personal profile] compilerbitch
You are hereby invited to check out my new-look journal, user icon(s), etc.

All at the usual place, [livejournal.com profile] compilerbitch.

(Many thanks are due to [livejournal.com profile] mageboltrat, whose Industrial Nippon style got lightly hacked as the basis of this style!)

Now for some food...

(no subject)

Date: 2004-01-30 07:36 am (UTC)
From: [identity profile] mageboltrat.livejournal.com
Try putting this into your layer it should fix the little diary

function Page::lay_diary()
{
	var YearMonth m = $this->get_latest_month();
	"""
	<tr>
		<td class="Control"><font class="subhead">$*Diary_name</font>
		</td>
	</tr>
	<tr>
		<td align=center><BR><font class="active">"""; 	print $m->month_format(); """</font><BR>
			<table cellpadding="0" cellspacing="0" border="0" width="175" align=center>
				<tr>""";
		foreach var int d (weekdays()) 
		{
		"<td align=\"center\" width=25
		>"; 
                print $*lang_dayname_short[$d];
		"</td>";
		}
	"""
				</tr>
""";
	foreach var YearWeek w ($m.weeks) {
"<tr valign='top'>";
    if ($w.pre_empty) 
    { "<td colspan='$w.pre_empty'></td>"; }
    foreach var YearDay d ($w.days)
    {
			if ($d.num_entries) 
			{
			 "<td width=25 height=25 align=center valign=middle class=SmallDayCell><a href=\"$d.url\">$d.day</a>";
      }
      else 
      {
        "<td width=25 height=25 align=center valign=middle class=SmallDayCell>$d.day";
      }
      "</td>";
    }
    if ($w.post_empty) { "<td colspan='$w.post_empty'></td>"; }
"</tr>";
	}"""
			</table><BR>
		</td>
	</tr>""";
}  

Re:

Date: 2004-01-30 07:44 am (UTC)
From: [identity profile] mageboltrat.livejournal.com
Ah I also noticed that I should have put in a variable instead of a set color on the Archive page... the correct tag should be

<table width="358" bgcolor="$*centerpage_back" cellpadding="0" cellspacing="1" border="0" summary="" align="center">

Not

<table width="358" bgcolor=#000000 cellpadding="0" cellspacing="1" border="0" summary="" align="center">

I've now changed it on my main layout.

(no subject)

Date: 2004-01-30 08:53 am (UTC)
From: [identity profile] compilerbitch.livejournal.com
Quick question: how is the number of entries per page set? I just want to try to speed up page loading for people with slower machines.

Ta,
Sarah

Re:

Date: 2004-01-30 08:58 am (UTC)
From: [identity profile] mageboltrat.livejournal.com
It's in the properties section of edit customisation it's a system variable which is used in creating the Entries and so can't be altered inside S2.

(no subject)

Date: 2004-01-30 09:09 am (UTC)
From: [identity profile] compilerbitch.livejournal.com
Thanks -- that worked fine. I've dropped the count to 20, so hopefully there will be less complainage about load times now!

Re:

Date: 2004-01-30 09:04 am (UTC)
From: [identity profile] mageboltrat.livejournal.com
Change the line for the day name to
   "<td align=\"center\" width=25 class=SmallDayCell
   >"; 
     print $*lang_dayname_short[$d];
   "<";


It will make the text slightly more readable.

Profile

compilerbitch: That's me, that is! (Default)
compilerbitch

January 2016

S M T W T F S
     12
3 45 6789
10111213 141516
17181920212223
24 252627282930
31      
Page generated Mar. 22nd, 2026 10:34 pm

Style Credit

Expand Cut Tags

No cut tags