Plogger Support Forum - How can I modify &lt;?php the_plogger_gallery(); ?&gt; to include specific album/collection? Fri, 29 Mar 2024 12:03:43 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 How can I modify <?php the_plogger_gallery(); ?> to include specific album/collection? http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=11805#Comment_11805 http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=11805#Comment_11805 Sat, 21 Nov 2009 17:40:34 +0000 Bewitched <?php
require('gallery.php');
if ($GLOBAL['plogger_level']=='collections' || $GLOBAL['plogger_level']=='collection' ) {
$GLOBALS['plogger_level'] = 'album';
$GLOBALS['plogger_id'] = #; // Enter the id# of the album here
}
?>

[more code goes here]

<?php the_gallery_head(); ?>

[more code goes here]

<?php the_gallery(); ?>

But my web site is getting confused with "if ($GLOBAL['plogger_level']=='collections' || $GLOBAL['plogger_level']=='collection' ) {" and doesn't work with it properly. I've tried this too:
<?php include('www.mywebsite/plogger/?level=album&id=1');?>
It worked but after I click on the thumbnail it "leaves" my design and appears in the blank page. I've tried to modify header and footer of my skin, but this ruined my design somehow (and I couldn't fix it).

I have figured out that <?php the_plogger_gallery(); ?> works perfectly but doesn't allow me to include specific album or collection. So is there any possibility to modify this peace of code to do this thing?

Thanks]]>
How can I modify <?php the_plogger_gallery(); ?> to include specific album/collection? http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=11816#Comment_11816 http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=11816#Comment_11816 Tue, 24 Nov 2009 12:23:42 +0000 sidtheduck
It should be:
if ($GLOBALS['plogger_level']=='collections' || $GLOBALS['plogger_level']=='collection' ) {
note the 'S' on the end of $GLOBALS. Sorry if that was posted somewhere and you copied and pasted incorrect code (let me know if you did find it somewhere and I can edit the post).]]>
How can I modify <?php the_plogger_gallery(); ?> to include specific album/collection? http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=13336#Comment_13336 http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=13336#Comment_13336 Tue, 28 Sep 2010 00:24:16 +0000 AJ28 embedding-a-single-collection-or-album and tearing my hair out cause it would not work, this makes it much better.

I am however now getting:


No Albums

Sorry, but there are no images or albums in this collection yet.


Any helpful pointer would be much appreciated.
--
Thanks
AJ]]>
How can I modify <?php the_plogger_gallery(); ?> to include specific album/collection? http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=13625#Comment_13625 http://www.plogger.org/forum/comments.php?DiscussionID=2959&Focus=13625#Comment_13625 Sun, 27 Feb 2011 00:40:57 +0000 metafarion
Instead, I see the "No Images" "Sorry, but there are no images in this album yet." messages when there are certainly images in the album. Is there another variable that needs setting to make this work?]]>