![]() |
|
MODx and Zenphoto integration - 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: MODx and Zenphoto integration (/thread-3623.html) |
MODx and Zenphoto integration - itough - 2008-08-28 I am hoping to integrate some Zenphoto galleries and images into a MODx site, but am having some problems. If anyone has any ideas about what could be causing this I would be very grateful for any feedback. I will post this on the MODx and Zenphoto forums. The following two bits of php code are intended to:
MODx and Zenphoto are both sharing the same MySQL database. The Zenphoto tables have a prefix of zp_ to keep them separate from the MODx ones. I did originally have a separate database for Zenphoto but had the same problem. MODx is running from within the root of the site /. Zenphoto is in a folder called /zenphoto. I don't think there is a problem with the paths described as MODx appears to be reading the zenphoto 'template-functions.php' file OK. The correct user name and password are entered in the zenphoto config file. I thought that it might be a problem accessing the zenphoto config file so I added I am using Zenphoto 1.2 and MODx 0.9.6.1 I should mention that the display of a random image is not all I wish to achieve by integrating Zenphoto! It just seemed like a good starting point for experimentation. Andy ` MODx and Zenphoto integration - acrylian - 2008-08-28 I only know MODx by name but the point might be that you run it as a snippet (I assume that is code posted in a section or so) . MODx and Zenphoto integration - itough - 2008-08-28 Thanks for the response. It looks like I have to use "MODx snippets" for php functionality to be invoked. Placing all the code directly into the template file results in the following output on the rendered page: MODx and Zenphoto integration - Andis - 2008-08-28 Have you ever tried to run zenphoto as a plugin (not a snippet) with the OnWebPagePrerender event activated? MODx and Zenphoto integration - itough - 2008-08-28 The technical support guys from ICDSoft.com who host my domain have come up with a solution to this problem. Instead of placing the: [code][/code] as a snippet in a template it needs to be placed into the MODx index.php file. The other code: [code] |