Member
Member
kr580   2008-01-13, 01:55
#1
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.php

There'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
Member
Member
kr580   2008-01-13, 03:49
#2
So I'm getting somewhere but obviously not where I want it.

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

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 "n<html>n<head>n</head>n<body>n[b]Zenphoto error:[/b] missing theme page.";

echo "n<!-- The requested page was not found: $obj -->";

echo "n</body>n</html>";

}

$a = explode("/", $obj);

echo "n<!-- zenphoto version " . getOption('version') . " Theme: " . $theme . " (" . $a[count($a)-1] . ") -->";

?>`

------------------------------------------------
------------------------------------------------

Would anyone be kind enough to help me out a bit?
Administrator
Administrator
acrylian   2008-01-13, 11:44
#3
The best and common way is to make a zenphoto theme that matches the design of your existing site. Just take the default theme for example and modify it.
Member
Member
sbillard   2008-01-13, 16:58
#4
If you want to put some zenphoto items on your main page see the article http://www.zenphoto.org/trac/wiki/ZenphotoHacks#zenphotoasaplug-in. You can use this to put a few pictures, thumbnails, etc. on you home page--for instance, you could put a picture on your home page with a link to the zenphoto index page.

Then, as acrylian says, make the zenphoto album match the look and feel of the rest of your site.
Member
Member
kr580   2008-01-14, 03:04
#5
Thanks for the replies guys.

As you can see I'm getting somewhere slowly but surely. Smile http://www.kr580.com/blamingjohnny/gallery/

Thanks - Kevin
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.