I have spoken about plogger before. It is what I am currently using for my gallery area.
I am now going to go over some simple instructions on how to make plogger look like your WordPress theme, like I have.
Step 1
Download Plogger and extract the files.
Step 2
Upload files to a folder on your site, I put mine in /gallery to make things easy.
Step 3
Install Plogger as is given in the instructions that come with the software.
To install, upload all of the files in the Plogger distribution to your Web server. Then, run the _install.php script from the Web browser of your choice. That script should guide you through the rest of the installation process.
Step 4
Open Plogger’s index.php file.
Inside you should find some basic code. We are only really concerned with three important lines.
require("gallery.php");
the_gallery_head(); ?>
the_gallery();
These lines are what runs Plogger and these are what need to be integrated into a new index.php file.
Step 5
With whatever theme you are currently running, copy/download and then open the head.php and index.php files. These are going to be merged into the index.php file for Plogger.
For the theme I use, blix, I went to /wp-content/themes/blix/ and copied the head.php and index.php files to my computer.
Step 6
Create a new file. We are going to name this index.php. This will be our new Plogger index that we are going to make.
Step 7
On the first line put:
<?php require('../wp-blog-header.php');
This will tell the new index.php file to head up one folder to grab wp-blog-header.php, a very important file.
If for some reason you installed Plogger somewhere else you will need to have the relative path so that the require will work. i.e. if Plogger was installed in /images/gallery you would need to change the code to:
<?php require('../../wp-blog-header.php');
So that it would go up two directories and grab wp-blog-header.php.
Step 8
On line two put:
require("gallery.php"); ?>
This is one of three files needed to run Plogger.
Step 9
After those two lines, copy in your header.php file from your template.
Step 10
Before the </head> put:
<?php the_gallery_head(); ?>
This is the second of the three files needed to run Plogger.
Step 11
Now after where you copied in your header file, copy in your theme’s index.php file.
Step 12
In a section that has your post information (usually contained in a div that might be div class=”entry” or div class=”post”) delete all of what is contained in that div and replace it with:
<?php the_gallery(); ?>
This is the final part of the Plogger code.
Step 13
Save your new index.php and upload it to where you installed Plogger. So for me, I uploaded it to /gallery.
Step 14
Take a look and see if it worked.
The main overview of this tutorial is to basically make a template file to replace index.php in Plogger that has the same code as your current theme, and includes the three files for Plogger to run, where Plogger needs them to be.
If you have any problems or questions, let me know. Also, if I have made any errors let me know. This tutorial was made based on my personal experiences integrating plogger into a variety of sites.
Vish Said,
September 24, 2005 @ 8:31 pm
gr8.
thanks
vamsi Said,
October 4, 2005 @ 6:58 am
Excellent man
Just excellent.
jack Said,
October 4, 2005 @ 11:23 am
I haven’t tried it yet
but I noticed your sidebar dissapears when calling the gallery. Is it not possible to leave it there? I mean, when wp-blog-header is used, all the template tags should be working?
David Said,
October 4, 2005 @ 4:55 pm
Hey, yeah, I could, and probably should though the way it makes the links, it’d probably show up as www.phoenixrealm.com/gallery/category which would not work of course.
Leen Said,
October 5, 2005 @ 7:37 am
What if you open up the index.php’s and find no code at all? I’ve been trying to integrate my plogger with my word press template and so far i’ve only achieved in messing up my entire plogger site–and reinstalling and uploading pictures at least 3 times.
Can anyone suggest anything, besides waiting for the plugin?
Prim3r PHUSiON » Image gallery Said,
October 10, 2005 @ 5:24 pm
[…] I recently found This tutorial on a google search. Sound easy….but not for a php n00b for me. […]
world.of.unknown Said,
October 11, 2005 @ 3:44 am
Integrating WordPress with Plogger
Plogger is the Open Source photo gallery system. Here is the instruction on how to integrate the Plogger with WordPress. Good luck!
Step 1
Download Plogger and extract the files.
Step 2
Upload files to a folder on your site, I put mine in /gallery t…
Gio Said,
October 14, 2005 @ 10:27 pm
Hey great tutorial! Found this link inWordpress Support btw. Seamless integration you have here, looks great. Sadly, i don’t see the possibility of viewers making comments to the photos. Other than that, Plogger is almost all i can ask for, for my wordpress gallery. Cheers.
David Said,
October 15, 2005 @ 5:31 pm
Actually you can put comments on, but I dont want comments on my images… don’t see the need. ![]()
Thanks for commenting. ![]()
Croila Said,
October 21, 2005 @ 8:42 am
What great instructions! Thank you - they were really, really easy to follow and extremely clear. I’ve finally managed to integrate Plogger into my WP theme after hours of tinkering and cursing!
Only one wee problem though - I just can NOT get the the “show details” exif toggle link to display in the right place in Firefox. It’s in the right place in I.E. - underneath the photo where it should be, but in FF the “show details” link is way over the right hand side of the screen and I can’t for the life of me fix it.
This is more likely a template problem of mine rather than a Plogger fault but oh how I would love it if someone could help me fix this!
Anyway, thanks again for your explanations on how to integrate. Plogger should be used much more widely, it’s such a great application!
October 22, 2005 @ 4:34 pm
[…] As I mentioned earlier today, I’ve wanted to (re)install a photo gallery on this site in order to post the loads of bits and bytes spewed forth by my digital camera. Plogger seems a perfect match, and having followed these simple directions posted by David Peralty , I have integrated Plogger and WordPress. […]
Jordan Said,
November 4, 2005 @ 5:26 pm
This is very cool that you wrote this all up, but I’m stuck on step 12. I’m using the k2 theme, and I don’t see anything like ‘div class=”entry”’ or ‘div class=”post”’. The only div class anything I see is ‘div class=”primary”. Is that it?
Thank you!
Jordan Said,
November 4, 2005 @ 6:15 pm
I did try replacing the stuff in div class=”primary”, but when I went to see if it worked, I got the following errors:
Fatal error: Cannot redeclare stupid_hack() (previously declared in /home/httpd/vhosts/jordanyaruss.com/httpdocs/plogger/index.php:71) in /home/httpd/vhosts/jordanyaruss.com/httpdocs/wp-content/themes/k2/header.php on line 68
Maybe k2 + my lack of expertise = not the best choice of gallery for me?
David Said,
November 4, 2005 @ 6:47 pm
Hey, not too sure…as I have not tried to use K2 with this gallery software. If I find the time, I will go ahead and make a K2/Plogger integration tutorial because no doubt with K2 many things are different.
Jordan Said,
November 5, 2005 @ 11:52 pm
Thanks David. If you do that and can spare a moment to shoot me an email, that would be really excellent.
szehau @ blog » Blog Archive » Wordpress with Plogger Said,
November 6, 2005 @ 12:24 pm
[…] Integrating Plogger […]
the *better* photoblog | GriffinSmithy.com Said,
November 12, 2005 @ 5:34 pm
[…] and a page about integrating or skinning Plogger into Wordpress. Permalink | Comment | Print | Trackback url |BlogPulse […]
Maza Said,
November 14, 2005 @ 8:46 am
Hello David
Just like you I use the Blix theme. I would like to use Plogger also together with the theme Blix. So I did exactly what you said on your post but I got a lost of errors : there to much errors to copy in this comment, but perhaps you could have a look at my plogger site and give me some advise.
Greetings Maza
Zorzal Said,
November 16, 2005 @ 11:24 am
Thanks for yout time… I am in the process of integrating zenPhoto as opposed to Plogger, and follow the same process as you describe.
The problem starts when I try to also add a sidebar: as soon as I do that, I get “DB not found” error messages which indicate that te script is looking for my wp tables inside the zp database. That is, the path to the DB has somehow “stuck” after the gallery part…
I assume you experimented with the sidebar as well. Did you find a similar problem?
Cheers
syamsul’s domain » a switch to Plogger Said,
November 22, 2005 @ 7:08 pm
[…] I was just about to give up the search for the time being when a chance visit to opensourcecms.com lead me to Plogger. Its simple and elegant interface really hooked me. And within half an hour, thanks to this excellent guide, I finally have a photo gallery integrated into my blog! […]
informity » Page Archive » Plogger Said,
November 27, 2005 @ 2:26 am
[…] Additional Information » Plogger » Plogger Forum » Plogger WordPress Integration Tutorial This entry was posted on Saturday, November 26th, 2005 at 11:26 pm and is filed under Assorted, Open Source, Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment, or trackback from your own site. Leave a Comment […]
Robby Colvin » My Gallery Said,
November 30, 2005 @ 1:30 pm
[…] I’ve been trying to decide what type of photo gallery to start using for my website, and it’s been a hard decision. There are so many options: Zenphoto, PhotoStack, WPG2, Plogger, and eSPG. I installed all of them and started to test them out. I liked all of them a lot–it’s just finding the right one to work with my blog perfectly. Well, I decided to use Plogger in the end because it was fairly small, it looks nice, and it works perfectly with my site. It took me a while to work it into the site, but I found an article called Integrating Plogger that helped my put into Wordpress. I don’t have any pictures put up yet except for some random ones of Angee as a test. So my new photo gallery can be found at photos. […]
frankie Said,
January 2, 2006 @ 12:23 pm
Hi,
found your info on integration and have been playing with plogger just recently and decided to have a go at integration.
Your method did not work for me at all and so I started from scratch with the ” Connections ” template/style.
Very very simple ( thanks to you in part ). This is very simply how I did it:
1: took the html output from the wordpress index.php page ( as viewed source from your browser window ) and put it in a new file.
2: added the code to the top of the file.
3: added the code before .
4: went down to and then removed all text and links between there and the tag but left all the in place.
5: added the code between and
And hey presto a working integration for the wordpress and plogger.
The only obvious down side appears to be that XHTML validation does not work now, but I’m on the case
cheers for the motivation and tips
David Said,
January 2, 2006 @ 1:02 pm
Happy to hear that others have been motivated to integrate it into WordPress themes. There should almost be a website on how to do it for various themes. After I wrote it, I realized that different themes need very different “merging” techniques.
Brad Said,
January 25, 2006 @ 1:26 pm
Great instructions, thanks!!
Timy Said,
January 30, 2006 @ 2:37 pm
im trying to integrate Plogger Beta 2.1 into my WP 2.0. It works well, only this Problem with Database:
WordPress database error: [Table ‘gallery.wp_posts’ doesn’t exist]
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_date
Timy Said,
January 30, 2006 @ 2:39 pm
Problem:
WordPress database error: [Table ‘gallery.wp_posts’ doesn’t exist]
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_posts WHERE post_date
David Said,
January 30, 2006 @ 2:43 pm
Hi,
I have not used 2.1, nor have I tried to integrate it with WP 2.0. The error you are getting though is because it is trying to look for posts, which means something is being coded differently.
I wish I could help you more, but I don’t have time to delve into two pieces of software that don’t want to play nice all the time, especially since a version of Plogger caused me over two hours of downtime thanks to security holes.
Timy Said,
February 2, 2006 @ 4:51 pm
i got it
my Photo is ready with Plogger Beta 2
Thx for community….and David…
see Plogger on my Site: http://www.timyvision.com/gallery/
Olga Said,
February 26, 2006 @ 1:54 am
hey thanks so much for the wonderful tutorial. i have tried this and it did work for the most part. however for some reason it is including my header graphics twice… i’m using the daisy rae gemini skin which i have modified (you can see it here: http://rocketfueldesigns.com/plogger/) is there any reason why it’s doing that and what can i do to get rid of it? i’m just afraid to try deleting lines of code without fully knowing what i’m doing… thanks!
Olga Said,
February 26, 2006 @ 2:06 am
oops, nevermind, i seem to have fixed it, hehe. thanks again for the great tutorial, this was super helpful!
Emacle Said,
March 2, 2006 @ 5:45 pm
Why do I get double headers like this: www.urbanskaters.com/beta/plogger
i’ve followed your instructions to the letter!
Lee
David Said,
March 2, 2006 @ 6:30 pm
Did you also copy in the include header statement from your index file? You probably have your header code and then include header right after it don’t ya?
Emacle Said,
March 3, 2006 @ 11:23 am
Aha!! it works now.. not sure, I checked for that line but it wasn’t in my original index file. So anyway, I tried a different theme and followed your instructions, remembering to remove that extra header code and it works a treat ![]()
Emacle Said,
March 4, 2006 @ 6:33 pm
Hey guys.. can anyone tell me why this works:
http://www.skatefresh.com/photogallery/index.php
But this doesn’t:
ak Said,
March 27, 2006 @ 2:52 am
Hi. Running into some problems with the integration. I think it is because I have the wordpress directory like this: “www.example.com/blog/” and the plogger like this “www.example.com/plogger”. What do I have to change in the code to get the right line to wp-blog-header.php?
Mikael Said,
April 18, 2006 @ 1:51 am
Help! My gallery is displayed like many posts in a row. What have I done wrong? I’m using the daisy rae gemini theme.
http://mikaelulstrup.com/galleri/index2.php
Kyrre Said,
April 18, 2006 @ 4:09 pm
Mikael: I think I solved your problem. I had the same one (only my postings only repeated three times), but when I removed these strings it worked out for me:
and..
I don’t know much about PHP, so I don’t know if this is the way to do it, but it works now..
So now i looks like this:
Hope this helped you. If not, you can contact me through Arne Kristian.
Kyrre
Mikael Said,
April 26, 2006 @ 1:28 pm
Thanks Kyrre! Problem solved. But i have a lots of errors in the “xhtml-validation”(?)
http://mikaelulstrup.com/galleri
TheDA Said,
May 16, 2006 @ 2:44 am
there are skins like antique modern that have body wrappers. i followed your instructions but the gallery seems too big to fit in the wrapper.
Terry Said,
June 15, 2006 @ 12:55 pm
First off, I’d like to say thanks a lot for helping me get this far with the plogger integration. If I didn’t find this site, I would have pulled all of my hair out by now.
Now, I am having a problem that I can’t seem to figure out.
The albums display correctly on the gallery collections page ( www.seven40.com/blog/gallery) , but as soon as you open an album to view its contents, the page displays the album 5 times on one page.
To see what I mean, click on the above link and then open the Armstrong Mountain album. I know this is something in the gallery’s index.php file, but I don’t really know what to look for. If anyone needs to look at my code, email me at terryit3 at yahoo.com and I will send it to you.
Thanks for any help,
Terry
Terry Said,
June 15, 2006 @ 1:05 pm
Ignore my last post, I figured it out.
Instead of having:
I had:
I switched them and it worked.
dave Said,
June 29, 2006 @ 9:44 pm
I am testing this out with the default Kubrick theme for WP 2.0.2. It works like a charm, but the albums and photos appear 6 times. What do I need to change? Thanks!
schlawinski Said,
July 11, 2006 @ 12:16 pm
good job. helped very much! *thumbsup*
elias Said,
July 24, 2006 @ 7:50 am
hi,
Hope ure doing fine yaself, im currently trying to follow the step and im stuck at one fatal error msg –> Fatal error: Unknown function: the_gallery_head() in /home/esdeux/public_html/elias/wp-content/themes/ambiru with WIDGET/header.php on line 16 which i dun really understands why.. any idea of a solution.
Regards
elias Z
Yngve Stein Said,
July 30, 2006 @ 8:10 am
Have anyone the url rewrite working? Doesn’t seem to work that well for me. The main categories work fine ( 2004, 2005, 2006 etc). But when I try to select an album inside, I get a 404 error, plus an “Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request” as an extra bonus ![]()
Have the gallery under “yngve.de/bilder”, and the blog under “yngve.de”.
Could also be the webhost. Using B-one
Thanks in advance
Todd Said,
July 31, 2006 @ 1:24 pm
Hi. Could you take a look at my Plogger gallery (www.iscramla.com/plogger). I’ve got header, sidebar, and footer all working correctly. I have the majority of the Plogger layout, except the following:
-galleries and images (respectively on their own pages) are showing as list (1 below the next)
-can’t figure out how to get rid of the “show details” link on the image page
-can’t figure out how to center the image on the image page
Any help you can offer would be great!!
thanks
Harrison Said,
August 8, 2006 @ 3:15 am
Thanks for this excellent tutorial. I did in half an hour what took me three days with gallery2!
I’m using the ism theme by headset options http://www.headsetoptions.org/play/
Both my theme header and index had code to call the header - so I just took out that request from the index code and it worked. sweet!
I didnt wan’t the sidebar either, so I simply stripped that out. Then I used the http://txfx.net/code/wordpress/page-links-to/ plugin to link to a page I’d created.
See the result on www.harrisonmitchell.com/photo
The one problem I’m having is with the text size on the page. Its different than those on the other pages. I think this is due to refering to plogger’s text sizes rather than my themes text size. Is there a quick way of refering the text to my theme’s size. or should I simply clone the relevant parts of my theme’s stylesheet and insert those into plogger’s style sheet? Any ideas?
One other thing - as I use a wide wordpress theme, is there any way to make the integrated plogger gallery go across 100% of the page?
thanks again
Keith Said,
August 26, 2006 @ 1:35 pm
This tutorial worked great. Been trying to seamlessly integrate a gallery into my wordpress for a while. This was increadibly simple and liiks great. thank you!
Robert Power Said,
September 1, 2006 @ 1:16 am
Thx for the tutorial. I am trying it now but running into a few issues. I have a WP page created called “galleryphp” using a template that is based on my theme, minus the posts, comments, etc and will only have the theme’s header and footer, with Plogger content in the center. I will create a button on the WP index page to link to this Plogger WP page.
gallery.php page sits in themes/newtheme/ next to the WP index.php page. Do you think its possible pull the plogger data into gallery.php? Should I install Plogger in the same themes folder or will it matter? Any thoughts would be great.
Thx
Rob
harkspace Said,
January 29, 2007 @ 5:23 am
confusing u said as if visitors already know how to do fr nobs like me it is useless sorry bye
RSS feed for comments on this post · TrackBack URI