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!
Comments
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().
(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') != '') { ?> " title="Back"><?php echo getOption('website_title'); ?> » <?php } ?><?php echo getGalleryTitle();?>
ADDED TO archive.php
==========================================
Archive breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> " title="Back"><?php echo getOption('website_title'); ?> » <?php } ?>" title="Gallery Index"><?php echo getGalleryTitle();?> » Archive
ADDED TO album.php
==========================================
Album breadcrumb - with link back to your website:
<?php if (getOption('website_url') != '') { ?> " title="Back"><?php echo getOption('website_title'); ?> » <?php } ?> " title="Gallery Index"><?php echo getGalleryTitle();?> » 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') != '') { ?> " title="Back"><?php echo getOption('website_title'); ?> » <?php } ?> " title="Gallery Index"><?php echo getGalleryTitle();?> » " title="<?php echo getAlbumTitle();?> Gallery"><?php echo getAlbumTitle();?> » " title="<?php echo getImageTitle();?>: Full View" class="active"><?php printImageTitle(false); ?>
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') != '') { ?> " title="Back"><?php echo getOption('website_title'); ?> » <?php } ?>" title="Gallery Index"><?php echo getGalleryTitle();?> » Search Results