Member
Member
zucye   2007-12-28, 17:36
#1
I just upgraded my zenphoto gallery yesterday and some of the parameters I used in the past are causing conflict with the new version (ex. <?php if (zp_conf('website_title') != '') { echo zp_conf('website_title') . '» '; } ?>)

I would like to know if there is a list of parameter to be used like for example: How do I add the search form or a link to my home site? In some of the themes there are statistics like "visited # of time" .. How do I use that?

Sorry if I the questions sound stupid, I am just an amateur!
Administrator
Administrator
acrylian   2007-12-28, 17:57
#2
You need to update your theme. Here is a short tutorial how to do it: http://mitcho.com/blog/2007/11/04/updating-your-zenphoto-theme-for-zenphoto-11/
You could take a look at the included themes and/or the ones on our themes page http://www.zenphoto.org/zp/theme/ how it is done there.

zp_conf() is no longer in use, instead you need to use getOption().
Member
Member
zucye   2007-12-30, 02:56
#3
Thanks acrylian, I needed the gallery to match the rest of my site, so I updated my theme with the following changes:
(Hope it can be of help to someone with similar issues).

ADDED TO ALL PAGES
==========================================
php adming Tool box:
<?php printAdminToolbox(); ?>

Search Form
<?php if (getOption('Allow_search')) { printSearchForm(''); } ?>

**Not to album.php and image.php:
| <?php printRSSLink('Gallery','','Gallery RSS', ' | '); ?> <?php printRSSLink('Comments','','Comnt. RSS', ' | '); ?>ARCHIVE |

**Only to album.php and image.php:
| <?php printRSSLink('Gallery','','Gallery RSS', ' | '); ?><?php printRSSLink('Album','','Album RSS', ' | '); ?> <?php printRSSLink('Comments','','Comnt. RSS', ' | '); ?>ARCHIVE |

ADDED TO index.php
==========================================
Index breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> <a>" title="Back"><?php echo getOption('website_title'); ?></a> » <?php } ?><?php echo getGalleryTitle();?>

ADDED TO archive.php
==========================================
Archive breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> <a>" title="Back"><?php echo getOption('website_title'); ?></a> » <?php } ?><a>" title="Gallery Index"><?php echo getGalleryTitle();?></a> » Archive

ADDED TO album.php
==========================================
Album breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> <a>" title="Back"><?php echo getOption('website_title'); ?></a> » <?php } ?> <a>" title="Gallery Index"><?php echo getGalleryTitle();?></a> » Archivo » <?php echo getAlbumTitle();?>

Album hits and place:
Hits:
<?php
$h = hitcounter('album');
if ($h == 1) {
$h .= ' hit';
} else {
$h .= ' hits';
}
echo "$h on this album";
?>

Place:
<?php echo getAlbumPlace(); ?>

ADDED TO image.php
==========================================
Images breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> <a>" title="Back"><?php echo getOption('website_title'); ?></a> » <?php } ?> <a>" title="Gallery Index"><?php echo getGalleryTitle();?></a> » <a>" title="<?php echo getAlbumTitle();?> Gallery"><?php echo getAlbumTitle();?></a> » <a>" title="<?php echo getImageTitle();?>: Full View" class="active"><?php printImageTitle(false); ?></a>

Image Hits, date and Place
Hits:
<?php
$h = hitcounter('image');
if ($h == 1) {
$h .= ' hit';
} else {
$h .= ' hits';
}
echo "$h on this image";
?>

<?php printImageDate(); ?>

Place
<?php echo getAlbumPlace(); ?>

ADDED TO search.php
==========================================
Search breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> <a>" title="Back"><?php echo getOption('website_title'); ?></a> » <?php } ?><a>" title="Gallery Index"><?php echo getGalleryTitle();?></a> » Search Results
Administrator
Administrator
acrylian   2007-12-30, 11:12
#4
Good roundup! I have added a link on our user guide section to your post.
Member
Member
zucye   2007-12-31, 02:09
#5
Glad to be of help Big Grin
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.