Welcome to Geeklog, Anonymous Friday, November 08 2024 @ 09:16 pm 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!
12
11
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
This might help forum post
9
15
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
8
10
Quote
All times are EST. The time is now 09:16 pm.
- 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