aLUKEonLIFE 2.0

SPG integration

I’ve had a couple of emails recently about how I got the gallery to work in wordpress.

Probably about time I posted the method here!

in your sp_index file, you need to add the following code:

< ?php
/* Don't remove this line. */
require('../wp-blog-header.php');
?>

< ?php get_header();?>

then everything inside the div id="spg" that is the guts of SPG.

For my theme, I amended the footer to include a mention to spg and calls for sidebar and footer.

Hope this helps. If you need more help, leave a comment.

10.10.2005 //
              

2 Comments »

  1. I would need some help… I get this error:
    Fatal error: main(): Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/local/lib/php’) in …/Gallery/sp_index.php on line 3
    Any suggestions? Grateful for help.

    Comment by Erik — October 12, 2005 @ 5:50 pm

  2. I’m assuming you’ve been round in circles on wordpress.org help? This error, means that the php server cant find that file, so check your path.

    mine is ../ because gallery is inside my blog folder, if yours is elsewhere, you may need to change this.

    Comment by Luke — October 13, 2005 @ 1:50 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

luke dubyah

hear my mixes

listen to my show

Luke Dubyah on FIRE 107.6FM

currently on

humanism

Linked In Profile

blogs I read

yourereallynicebut.co.uk

  • phase 2
    I'll be making some big changes to this site, expect intermittent downtime and lots of new features and things. Also - v...

the shane life

  • The Dragon Stumbles
    Isn’t it kind of sad that despite China’s best efforts at coming out on top in the total metal count it came...

Funandjames.com

  • Happy Yorkshire Day!
    I had planned to have a photograph of my rose bush in here, but sadly due to neither weeding the flower bed or watering ...

theruthoftheworld

  • Onwards and Upwards
    What with realising the weddings only 6 months off, getting a new hamster and actually loosing a couple of punds I&rsquo...

Sarah in Lusaka

  • National Mourning
    Despite the country being in mourning, I had a nice weekend. It’s so quiet because all celebrations/ recreational acti...

ClickRich

All About P - The Marky P Blog

  • Water Death…
    I had just knocked a glass of water over my MacBook. The water landed in the perfect position so it could run straight i...

Chanology News