Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 10:41 am EST
Geeklog Forums
Static Pages
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 ?
Cheers, Ferlo!
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 ?
Cheers, Ferlo!
14
11
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
This might help forum post
10
17
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
10
12
Quote
All times are EST. The time is now 10:41 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