Subject: Creating custom blocks

Posted on: 31/01/04 05:58pm
By: Pikoshi

I just recently installed Geeklog onto my server. I love it. My only question is, can someone help me figure out how to make a new PHP block for links? I do not quite understand the whole concept of making custom PHP blocks.

Creating custom blocks

Posted on: 31/01/04 06:26pm
By: Dirk

The idea is that you write a PHP function that creates the content of the block and then create a PHP block to call that function.

See the FAQ for details.

bye, Dirk

Creating custom blocks

Posted on: 22/02/04 12:10am
By: Anonymous

I just started using it myself, and I don't know if it's because this time around, I know more about what I'm doing (that always helps!) or a lightbulb just came on in my head this time, but I've been able to create just about every feature that I want on my site using either blocks or static pages.

If you want links, all you need to do is create a block which serves as a category for those links. For example, if you have a bunch of administrative stuff, you create a block -- I called mine "Home" -- mine has a link to Contact Us (which points to a static page), About Us (which points to another static page), Legal Notices (which points to a static page). I have created another block that contains links to causes we support and also our Amazon Wish List link, a link to our Allposters.com store (a static page), and a click thru to PayPal.

You can view it all here (I'm working on it as we speak). If you have any questions, just hit the "Contact" button!

My New Geeklog Site

When you create your static pages, you can pretty much drop the code in from an existing HTML/PHP page if you already have it. My old pages were *.html pages. I don't know enough about PHP to really advise you there.

When you create the static page, you'll see that Geeklog assigns it a unique URL. Use that URL in your block when referring to that static page. When you start creating your static pages, it should all start making sense.

Hope this helps!

Joni

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=29942