Member
Member
jadedknight   2006-07-08, 15:59
#1

It would be nice to have some code like to intergrate the photo script into an existing site, Like into a or table.

Member
Member
Marelo   2006-10-05, 20:03
#2

that would be nice... i tried to include the index.php this way but no success:

I called throgh Smarty... Anyone know what can it be?

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in DrojetosViniciusDaCostaWWWgaleriazenfunctions.php on line 32

Developer
Developer
trisweb   2006-10-07, 08:19
#3

Yep, zenphoto does not like being "included" into other pages. Not designed for it, frankly.

Much much easier to make a theme out of the pages you wanted to include instead. It's so easy to modify the theme to fit into a design that I wouldn't do it any other way.

Member
Member
Marelo   2006-10-09, 16:35
#4

I get it. In fact, minutes after reading this post I found another topic where you give the same explanation. Well, it's a pitty you have to rewrite your template always twice...

You think this may be a future change? To let ZP be more flexible?

I would suggest SMARTY template system... It's pretty easy to use and very powerful...

Keep up with the good work...

Developer
Developer
trisweb   2006-10-10, 05:44
#5

Yes, it could be a future change, it shouldn't be that hard to be able to include the program into other areas. It raises problems with keeping variables unique, stylesheets messing up (with the default theme) and many other things yet unforseen.

Like I say, my [i]belief[/i] is that it is much easier and simpler to go around the other way around and put ZP function calls into your design. You can even use your own includes in a ZP theme if that makes it simpler.

Any way you slice it or try to get around it, just calling "include" on any web app is going to be messy. Sorry ;-)

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