Welcome to Geeklog, Anonymous Saturday, June 22 2024 @ 02:43 am EDT

Geeklog Forums

Creating custom blocks

Status: offline


Forum User
Registered: 01/30/04
Posts: 5
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.

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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


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!


All times are EDT. The time is now 02:43 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