Posted on: 08/07/03 09:52am
By: ferlo
Fellows,
I'm new in geeklog, I installed it without problems, made some customization, but I've got a problem using the Static Pages Plugin.
BTW: I've installed the latest GL 1.3.8
The problem is this: I want to include in the page a toplist generated with another script. well, I'm able to include it with:
require ('/home/marco/xxxxxx.com/st/pages/index_it.tpl'
;
enabling the PHP, but when I reload the home page, this include is _not_ placed into the appropriate box with the title I selected. It is displayed _before_ it.
Any suggestion ?
Re:Static Pages
Posted on: 08/07/03 10:01am
By: DTrumbower
Re:Static Pages
Posted on: 08/07/03 10:04am
By: ferlo
Not really helped a lot.
I've already searched the forum, but it seems I'm the only one with this problem...
Re:Static Pages
Posted on: 08/07/03 10:08am
By: Dirk
No, you\'re not the only one with that problem. You only didn\'t understand the problem yet.
PHP code in a static page should not use print or echo to output stuff. Instead, it has to return the output to Geeklog (as
explained in the documentation).
The post Dwight pointed you to has a solution to this.
bye, Dirk
Re:Static Pages
Posted on: 08/07/03 10:37am
By: ferlo
too difficult for me. I\'ll try something else.
thanks anyway.
Re:Static Pages
Posted on: 08/09/03 04:32am
By: ferlo
Fixed. This could be help someone else.
$s=\'\';
$fp=fopen( \'/home/marco/xxxxxxx.com/st/pages/index_it_gl.tpl\',\'r\' );
while( !feof($fp) ) {
$s.=fgets( $fp );
}
fclose($fp);
return $s;