Hi, I am hoping someone with some better knowledge of PHP can help me here. I am trying to integrate plogger into my drupal web site. Plogger can be seen in action here: http://www.plogger.org
I have tried to work with Gallery2 but it just is horrible. Plogger is much simpler and very nice looking. I thought it would be fairly straight forward to implement, since you can include the gallery on any page with just a line of code.
Of course you need to mark the php at the top of the page with "require("gallery.php");" and in the header put "the_gallery_head();" (both of those include the php tags, which I can not include here.)
Anyway, this is where I got stuck. I fussed with the chameleon template forwards and backwards to try to get it to include these two statements in a way that makes sense, so that when I make a page that includes the php statement: php the_gallery(); it would work (yes I had the php filter set right).
I figure I need a module that would do this, but I dont have the skills to write it. Can anyone take that on? It would be very simple I think. I just dont know how.
Or can anyone tell me an easy way to do this?????
Comments
Shouldn't need a module
You shouldn't need a module to do it. Just modify the page.tpl.php file in your theme and add the needed code.
I'm curious what you found "horrible" about Gallery 2? I've been using it with two Drupal installs for some time now and it works fine. That plogger looks interesting, but G2 could be made to look like that just by creating a theme.
Michelle
Wow, that is great
its great that you have been able to use Gallery well. I find that it breaks most of my templates, with pictures hanging out over stuff. Also, in this case, I wanted to create a gallery that would only be available for people with certain access and with a different theme from most of the web site. I can't find anyway to control that in terms of the gallery module. If you could tell me how to do that with gallery with the gallery module, I would give up on plogger.
However, I would love to know how you would actually edit the template file. I am using the Chameleon theme, which does not have a page.tpl.php file, just the chameleon.theme file. It seems like it should be simple, but it is killing me! Man I wish I were a programmer and understood this stuff better.
I should be able to just include a php function like the_gallery_head(); in the head area of the php file right?
gallery2 module
Have you downloaded and activated the gallery2 module? I too use gallery and it integrates seamlessly, and I use the marvin theme as well, so there is no page.tpl.php file to alter. Perhaps the problem you are having with chameleon is not the theme but the style sheet? I've been trying to wrap Phorum into my marvin theme and I just cannot do it. I might switch to a templated theme for this reason alone.
...
The pictures hanging over is a bit of a problem. I think it's because G2 uses tables in the matrix theme. I'm working on customizing my G2 theme along with my Drupal theme so that won't be so much of an issue for me.
As far as access, you can set the permissions on albums to decide what groups can see what. I think the latest enhanced gallery module ties G2 groups into Drupal's roles as well.
As far as giving G2 a different theme, that's no problem as the themes are seperate from the Drupal themes.
Back to Drupal, that Chameleon theme must not be PHPTemplate. I only have experience modifying the PHPTemplate ones, sorry.
In PHPTemplate ones, yeah. I can't speak for the other ones as I've not worked with them.
Good luck with whichever gallery you go with,
Michelle
Still no go
its definitely more straight forward editing a template with that uses the PHPTemplate engine. However, it is still no go. No matter what I do, I get a error that reads:
"Fatal error: Call to undefined function: the_gallery() in /home/wmmead/public_html/main/includes/common.inc(1857) : eval()'d code on line 3"
Now certainly I can find this include file, but I am not inclined to mess with it. Furthermore, it seems that when the page loads it is not evaluating the PHP tags - the one that includes the gallery stuff and all. I would really love to get this to work. Maybe I should go back into looking at the gallery module. I do understand that the gallery module has its own CSS, but I really want to make it work within a drupal theme properly.
modification of page.tpl.php
MichelleC, by undertaking such modification that you refer to above, can one "integrate" other php scripts, such as Phorum? I do not mean "integrate" in the sense that gallery is integrated via a module, but rather in a way that my headers, footers, menus and blocks show up just as they do on other parts of my site.
I run a static site for the most part and do not want to use the built in Drupal forums, at least not yet, yet I would like Phorum to appear to be an integral part of the site. Altering the CSS in Marvin just does not do it. And I know next to nothing about PHP coding. Thanks for any assistance, david
Pseudointegration
Well, with that Plogger, it looks like it was designed to be easily integrated with just a few function calls. If the Phorum software can do that, then, yeah. You would just need to make a page with PHP code that calls the function to display the Phorum page. I suspect, though, that the Phorum pages can't be generated like that. Most forum software isn't designed that way.
You might want to take a look at the many threads on PHPbb to see if anything they've tried for shoehorning PHPbb into Drupal would work for Phorum as well.
Michelle