Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:58 pm EST

Geeklog Forums

Static pages


Status: offline

Bebo

Forum User
Junior
Registered: 08/18/03
Posts: 20
i am trying to put a photo album in my geeklog site

im using spmg and trying to include it in a static page using

<?php require("spgm/spgm.php"); ?>

when i view the page i get this error

Parse error: parse error in /path_to_geeklog/staticpages/index.php(78) : eval()'d code on line 1

any ideas??
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
To start off you don't need
 Quote

Status: offline

Bebo

Forum User
Junior
Registered: 08/18/03
Posts: 20
your post is missing something

i dont need what?

the require statement?

that is the suggested method in the photo album docs to include it in a template driven website

i also tried the "include" statement instead of "require"

should i try to cut and paste the spgm.php file into the static page? (this would be the same as using "include" right?)

then edit any url references to be relative from "staticpages/index.php" ??

OR

is there a plug in for a photo album I can get?
 Quote

Status: offline

exaurdon

Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
I would suggest you read the documentation on the static pages plugin under the static pages link. There are very specific limits set on how you can use PHP within a static pages. (Start by reading the FAQ on the static pages plugin)

If you need to prot a lot of existing php code to geeklog, you may benefit by using my staticpages 1.3.2 hack in the downloads section, but only use this if you are sure you need to use PHP in that way.

Alex~
 Quote

Status: offline

DTrumbower

Forum User
Moderator
Registered: 01/08/03
Posts: 507
i dont need what?


The &lt;?php tags and everything needs to display as from a RETURN. No echo or print statement.

 Quote

All times are EST. The time is now 11:58 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