I've looked and looked but I couldn't find anything that helped me. Hopefully someone here would be kind enough to help me out.
I'm making a website that could REALLY use ZenPhoto but it would need to be fully integrated to the current HTML design but I cannot make it work since I don't have much knowledge of PHP coding.
The site:
http://www.kr580.com/blamingjohnny/gallery.phpThere's the website and as you can see I want to make the contents of the white box at
http://www.zenphoto.org/zenphoto/ to show up in the main area where the dotted line is on my site. Is this possible?
Thanks - Kevin
Comments
Site: http://www.kr580.com/blamingjohnny/gallery1.php
The code I'm using is below. I have the gallery installed as kr580.com/blamingjohnny/gallery. I'm not sure how to work that into the $themepath.
------------------------------------------------
------------------------------------------------
` <?PHP<br />
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'gallery');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
if (!defined('ZENFOLDER')) { define('ZENFOLDER', 'zp-core'); }
if (!defined('WEBPATH')) { define('WEBPATH', 'gallery'); }
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
$themepath = 'gallery/themes';
$theme = $_zp_gallery->getCurrentTheme();
$_zp_themeroot = WEBPATH . "/$themepath/$theme";
if (!(false === ($requirePath = getPlugin('themeoptions.php', true)))) {
require_once($requirePath);
$optionHandler = new ThemeOptions(); /* prime the theme options */
}
if (isset($_GET['p'])) {
$page = str_replace(array('/','','.'), '', $_GET['p']);
if (substr($page, 0, 1) == "*") {
include ($obj = WEBPATH."/".ZENFOLDER."/".substr($page, 1) . ".php");
} else {
include($obj = "$themepath/$theme/$page.php");
}
} else if (in_context(ZP_IMAGE)) {
include($obj = "$themepath/$theme/image.php");
} else if (in_context(ZP_ALBUM)) {
if(isset($_GET['zipfile']) && is_dir(realpath('albums/' . $_GET['album']))){
createAlbumZip($_GET['album']);
} else {
$cookiepath = WEBPATH;
if (WEBPATH == '') { $cookiepath = '/'; }
setcookie("zenphoto_search_params", "", time()-368000, $cookiepath);
include($obj = "$themepath/$theme/album.php");
}
} else if (in_context(ZP_INDEX)) {
include($obj = "$themepath/$theme/index.php");
}
if (!file_exists(SERVERPATH . "/" . $obj)) {
echo "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">";
echo "nnnnnZenphoto error: missing theme page.";
echo "n";
echo "nn";
}
$a = explode("/", $obj);
echo "n";
?>`
------------------------------------------------
------------------------------------------------
Would anyone be kind enough to help me out a bit?
Then, as acrylian says, make the zenphoto album match the look and feel of the rest of your site.
As you can see I'm getting somewhere slowly but surely. http://www.kr580.com/blamingjohnny/gallery/
Thanks - Kevin