![]() |
|
[Zenphoto hack] Random zenphoto picture('s) in Joomla - 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: [Zenphoto hack] Random zenphoto picture('s) in Joomla (/thread-8321.html) |
[Zenphoto hack] Random zenphoto picture('s) in Joomla - sanderdw - 2011-03-01 There is no good integration possible between Joomla 1.5/1.6 and Zenphoto 1.3. So i made a dirty hack to do this. This code shows a random picture from Zenphoto with a link to the gallery. Albums or pictures that are unpublished are excluded. I use the Jumi Joomla extension to execute php in a Joomla module or article. 2 problems:
Explanation: mysql_query: In the example (see code part) the zenphoto tables are stored in a different database. a href: Change it to your Joomla wrapper url width='240': Adjust this to the desired width. Code that you put in a Jumi module or article: ` |