Am I asking too much?

Jun 29, 2006 11:02

Hi there. I've recently started using the Quite Lickable layout for a secondary LJ, and I like it a lot. So much so that I'm considering switching to it for my main journal. However, if you look at my layout (I'm currently using Component for this one) you'll see that I have it rather heavily customized, with the components on both sides and ( Read more... )

Leave a comment

ems June 29 2006, 18:12:19 UTC
You can change the order using the code mart posted to me:

function Page::lay_print_paraphernalia() {
$this->lay_print_journalinfo();
$this->lay_print_viewsel();
$this->lay_print_viewspec();
$this->lay_print_userlinks();
$this->lay_print_custom_paraphernalia();
}

(obviously adding whatever layers you've created).

I think they'll alwyas be chained together, though, although I guess there might be a way of modifying the CSS to create some kind of divider, possibly...

Can't help with the two sidebars I'm afraid.

Reply

mart June 29 2006, 18:33:43 UTC

If you're desperate to mix custom boxes and builtin boxes, one solution would be to make Page::lay_print_paraphernalia only call $this->lay_print_custom_paraphernalia();, and then do the other calls in the custom function. Something like this:

function Page::lay_print_paraphernalia() {
$this->lay_print_custom_paraphernalia();
}
function Page::lay_print_custom_paraphernalia() {

$this->lay_print_journalinfo();
$this->lay_print_viewsel();
$this->lay_print_viewspec();

paraphernalia_box_open("blurb","Blurb");
print "
Blah blah blah!
";
paraphernalia_box_close("blurb","Blurb");

$this->lay_print_userlinks();

}

My usual caveats apply about the possibility that future changes to the layout might break this or misbehave, since this is using the layout functions in a way that wasn't intended.

Reply

quingawaga June 29 2006, 18:39:43 UTC
Ooooh, neat. I'll try that. Thanks.

Reply

quingawaga June 29 2006, 19:08:19 UTC
Hrmmm, it's not letting me put an image in one of my custom boxes.

Compile error: line 30, column 20: Unexpected token found. Expecting: [TokenPunct] = ;
Got: [TokenIdent] = http
Is this an impossibility, then?

Reply

mart June 30 2006, 18:19:04 UTC

Remember that when you're writing stuff in a quoted string you can't include other quotes without escaping them or you'll confuse the compiler into thinking it's the end of your string. The easiest solution is to use single quotes instead of double quotes, like this:

"
... )

Reply

quingawaga June 30 2006, 19:03:08 UTC
Yeah, I discovered the problem was with the quotes, and then some programmer-friends of mine helped me with the solution this morning. :) (I'm a scientist, not a programmer, heh.)

I've got my new layout up now, if anyone's interested.

Reply


Leave a comment

Up