Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Thursday, May 15 2008 @ 11:48 PM EDT
   

How to use the blocks

GeeklogHi guys,
First, let me say Geeklog is GREAT!

But I'm having a hard time to set up blocks. Might just be me, but it's not working to well for me right now :-(

I need to create a block that will have php and XML stuff in it, but all I see is the code, not the result. I'm using version 1.2.5-1

Can you tell me the difference with the 3 block types and how to use them please ?
Or where to get that information.

Tx guys!

Chrys
www.chrys.ca

Story Options

How to use the blocks | 3 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
No PHP Code in Blocks in 1.2.5-1
Authored by: Tony on Monday, December 10 2001 @ 07:10 AM EST
Sorry but in any version of geeklog 1.2.5-1 and prior there is no support for PHP in blocks. Why? This has always been a huge security concern for the developers. In 1.3 you will be able to create blocks that execute PHP in a way that is still secure.

The three blocks are (in 1.2.5-1 and earlier):

1) Normal - takes plain text or HTML and displays it in a block
2) Portal - imports headlines from other sites that publish RDF/RSS feeds in a block
3) Layout - HTML used to create the blocks themselves

No PHP Code in Blocks in 1.2.5-1
Authored by: laurent on Friday, December 21 2001 @ 12:01 AM EST
is there a workaround this? I cannot upgrade to geeklog 1.3 we are working on 1.2

We ABSOLUTLY need to insert in a block some PHP commands...

Is there a solution?!?!? PLease HELP!
No PHP Code in Blocks in 1.2.5-1
Authored by: Tony on Friday, December 21 2001 @ 07:21 AM EST
Yeah, you will need to check but if in the block save logic in block.php there is a strip_tags call you may need to remove it (there shouldn\'t be but I can\'t remember off had). Then when the code goes to display a block it will load the content into a variable. Assuming your variable is $foo you should be able to do something like $foo = eval($foo) which *should* execute the code in the block.

Why can\'t you upgrade to 1.3?