![]() |
|
include specifc folder - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: include specifc folder (/thread-2172.html) |
include specifc folder - benzrecordings - 2008-01-30 I really love zenphoto. theres one thing I can not solve. I want to include a specific gallery/folder from zengalley in another webpage of me. it is very hard to change the template or to fit it to my needs. so is there any way to include a the folder in my webpage. I´m really bad in php, so any help woukd be appreciated. thanks include specifc folder - sbillard - 2008-01-31 See http://www.zenphoto.org/trac/wiki/ZenphotoHacks#zenphotoasaplug-in include specifc folder - benzrecordings - 2008-01-31 thanks for your reply. i allready read this hack but it does not work. I put the following code into my page: `` and for loading the gallery: `` but i get the error: Zenphoto Error: Zenphoto Error: `the requested object was not found. Please go back and try again. Fatal error: Call to undefined function: zp_load_gallery() in /www/htdocs/v074071/fangallery/index.php on line 5` include specifc folder - sbillard - 2008-01-31 Your define for WEBPATH is incorrect. It should be You did read the example, didn't you? include specifc folder - benzrecordings - 2008-01-31 oh thank you, i did read the example. now there is no error anymor, but the gallere isn´t loaded as well. just an empty page... is this right? `` include specifc folder - acrylian - 2008-01-31 No, it should be `` include specifc folder - sbillard - 2008-01-31 Also, you will have to display the items you want on your page. If what you really want is the zenphoto gallery you will have to copy the functionality of your theme's index.php file. include specifc folder - benzrecordings - 2008-01-31 ok, i see. thanks... for explanation, i have the folder "zenphoto" on my server an d the folder "fangallery" with the index.php. in that file i included the gallery. when i click on the album name wich is called "fangallery" too, i get to www.domain.com/fangallery/zenphoto/fangallery instead of www.domain.com/zenphoto/fangallery... so there must be one path wrong. i have no ideo where to change it... thanks again for your help! include specifc folder - sbillard - 2008-01-31 It would help if you put the real URL in your post, then we can take a look at the site. Anyway, the typical installation has a structure like the following: htdocs/(the root folder of the site) So, if you want to include zenphoto content in root site's pages you have to put the zenphoto plugin code, etc. in one of those pages php files. If you want gallery album links on you "home" page you would put the code in The code you need to insert is the "album loop" part from your theme's If you only want the zenphoto gallery to be available for viewing, just put a link in your "home" page to |