Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 09:13 am EDT

Geeklog Forums

Writing in the middle block?


Ruff_

Anonymous
I really want to write things in the centre of the page. It's not gonna be very technical stuff, just some writing, but how would i do this?
I would quite like to use HTML in it, and make it look like a story block?
Thanks, please help
 Quote

Paul Mah

Anonymous
You can either make a blank page from scratch, or make use of the staticpage plugin. If it is from scratch, you would have to put in the relevant COM_siteHeader, COM_startBlock, COM_endBlock, COM_siteFooter to generate the layout based on current theme (Quoting it from memory so I might remember wrongly). Then just insert your HTML / PHP appropriately. You might like to refer to some of the core files like calendar as reference - its not that hard actually. Alternatively, you can just use the staticpage plugin, of which v1.1 is bundled with the Geeklok-1.3.6. The main advantage over the formal method is that your HTML (or PHP) becomes searchable.
 Quote

Status: offline

etam

Forum User
Newbie
Registered: 07/17/02
Posts: 9
Hi Have you gotten anything in the middle block yet? What I did was created a block and a link to HTML page. The HTML page can looks like this: <?php require_once('lib-common.php'); echo COM_siteHeader('menu'); // use 'menu' if you want the left blocks $PostDate = date("l - F d, Y"Wink; // puts the date in the middle ?> <p> <p>Today is: <? echo "$PostDate"?> <?php echo COM_siteFooter(); // use yes if you want the right blocks echo $display; ?>
 Quote

Anonymous

Anonymous
How about... ( i hope this is related) I would like to find out how can i start my center block with a small piece of a static page, and then the little stories blocks that follow. That is that first little piece of static page always stays, in all the site. It should even be above the Featured article block thing. I don't mind php code.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Create a static page and name it "Frontpage". bye, Dirk
 Quote

Anonymous

Anonymous
k i am assuming then that this options is embedded into geeklog, now where in the code can i find this so that i can change stuff...ie, call it something other than frontpage?
 Quote

All times are EDT. The time is now 09:13 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content