Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:25 am EDT

Geeklog Forums

A Very Simple Block


Anonymous

Anonymous
I am a newcomer to PHP and Geeklog. To help me get started can someone give me the code for a very simple block. A good example would be the "supported by" block on this page.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The "supported by" block is just a "normal" block, i.e. just a piece of HTML. I assume what you're really looking for is a PHP block? Have a look at the file system/lib-custom.php. It has the code for two simple PHP blocks: phpblock_getBent(), which is the code for the "Are you secure?" block on fresh installations, and phpblock_showrights() which displays the access rights of the current user (you need to create a block calling this function first). Hope this helps. bye, Dirk
 Quote

Anonymous

Anonymous
Thankyou Dirk. I couldn't find anywhere what a "normal" block was. I wonder why it's not called Plain HTML? How simple - Geeklog never stops amazing me on its simplicity once you know what the words mean.
 Quote

Anonymous

Anonymous
Thank you, I to was interested in this subject. I think I am really really starting to like the community here and the advice, help, and the program is just great!
 Quote

zdog898

Anonymous
I agree. Everyone I have ever interacted with in this community has been nothing by nice and helpful. Geeklog itself is great, but feeling comfortable asking questions and sharing ideas is what makes it even better.------ "I'll be sober tomorrow, but you'll alwys be ugly."
 Quote

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