Glowing Chrystal

An sNews version 1.5 template

Integrating Plogger

I post this in this section as I have integrated Plogger to this site...Ok, the question popped up. How to integrate the Plogger gallery into sNews CMS script. Well, I guess the majority of the sNews user possibly knows this, but for those who do not, I'll do a swift "howto" as to how I did this. Might not be the only way, but its the way I did it.

First download and install Plogger ;), of course.

Note 1 ! - Make it part of the same database as sNews, but with another prefix, or else it will produce error messages.
Note 2 ! - To avoid unnessecary dilemmas, aslo install Plogger in a subfolder to sNews, that is inside the sNews install.

Then I simply copied the layout and design of my sNews index.php and overwrote the existing index.php in the plogger folder.

In this new index.php in the plogger folder there need to be some changes made in order to show the gallery. So open up the Plogger index.php (which should be an exact copy of your original snews index.php) and add at the top:

You also need to edit the snews session_start by adding a "../" (without the qotationmarks) since you copied the file and put it in a subfolder, like this.

Then in the head tag, you put:

And finally, you need to actually show off the gallery. Scroll down to where you put the center function in this snews file. Change that for:

And your done. You might want to do some changes to the script in order to behave and look the way you want it and to fit your design. But that's another story, hehe... I made the most of my changes to get it the way I wanted the script in the gallery.php file.

Patric.

02.01.2007. 12:20

This article hasn't been commented yet.

Write a comment

:

:

: