Status: offline

ferlo

Forum User
Newbie
Registered: 08/07/03
Posts: 5
unfocused
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'Wink;
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 ?

Cheers, Ferlo!

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
This might help forum post

Status: offline

ferlo

Forum User
Newbie
Registered: 08/07/03
Posts: 5
Not really helped a lot.
I've already searched the forum, but it seems I'm the only one with this problem... Frown
Cheers, Ferlo!

Status: offline

Dirk

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

Status: offline

ferlo

Forum User
Newbie
Registered: 08/07/03
Posts: 5
too difficult for me. I\'ll try something else. thanks anyway.
Cheers, Ferlo!

Status: offline

ferlo

Forum User
Newbie
Registered: 08/07/03
Posts: 5
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;
Cheers, Ferlo!