|
From: Jason H. <jc...@ey...> - 2002-07-29 17:34:23
|
David Nex wrote:
> I d like to make 2 sites with nearly the sames struture, here i make a
> scheme :
>
> ----------------------------------------------
> | Here header for both sites (static) |
> ----------------------------------------------
> | Here | Here special header for |
> | Left | site |
> | Blocks | With drawsearch ... |
> | F_Blo. | |
> | (dyn) | (dyn) |
> ----------------------------------------------
> | Here page space (static or dyn) |
> ---------------------------------------------
> | Footer for both sites (static/dyn) |
> ----------------------------------------------
>
> I m based on phpweblog 053.
> Judging from the API file, we usually make new page with this struture :
>
> <?
> include("./include/common.inc.php");
> include("./include/header.inc.php");
> // here page space
> include("./include/fotter.inc.php");
> ?>
> I want to respect this API, which is good i think.
>
> If I keep default header/footer, I remark that weblog page space is
> encroached by left / rigth blocks drawing.
> I dont want it it's so ugly.
> In my struture it can encroach the "Special header" only, in order to have
> max palce for page space.
What you want to do is a bit out of the design scope for phpWebLog.
Though possible, you're looking at quite a task.
> I think I need to change header/footer.inc, but which html tags must remain
> in this file ?
>
> LeftBlocks drawing and special header are dynamic, so I had to make it goes
> into php code, espcecially into drawheader functions ?
>
> I cant manage to achieve what I want to do, can u help me doing simple
> template, drawheader function from a little nude weblog 053.
>
> I think it difficult to change the default organisation of <table> in weblog
> 053, I m losing my hairs.
>
> Thanks.
You're on the right track. It's laid out similar to:
+------------------+
| header |
+----+-------+-----+
|left| main |right|
| | | |
| | | |
| | | |
+----+-------+-----+
| footer |
+------------------+
header.php opens the table, outputs header, outputs the left column
blocks, opens the main table.
footer.php closes the main table, outputs the right column blocks,
closes the table.
I doubt this will be of much help to you, but hopefully it will be.
good luck =]
jason
|