Member
Member
more-zenphoto   2008-12-22, 12:37
#1

I am new to Zenphoto. I have the gallery setup just fine in a directory placed in the root of the web server. I just want to add a few thumbnails from an album on the homepage. Is there a snippet of code that I can place in the html of the homepage that will allow me to do this.

Administrator
Administrator
acrylian   2008-12-22, 12:56
#2

If you use something like Wordpress there is a plugin called Zenphotopress and several others available: http://www.zenphoto.org/2008/01/wordpress-plugins/

If don't use Wordpress you need to try this way: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin
Search the forum for details about this, there are already several threads about integrating into a website

Member
Member
more-zenphoto   2008-12-22, 19:29
#3

acrylian, thanks for this link:

http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin

some useful stuff there. Not php noob friendly but I was able to manage by adding the php tags and making sure that the file was a .php file and not .html. Thank you.

Member
Member
more-zenphoto   2008-12-23, 01:54
#4

I tested the first hack and was able to get it to work even though there was some sort of header error. that was the only one remotely related to what I am trying to do. I am trying to add 4 or 6 thumbnails from an album to the front page. That is all I am trying to do. Place 6 thumbnails linking to the images in the gallery in the sidebar or section of the front page. If anyone can help me achieve this I will be very grateful. The server is running on windows and I am not sharing the mysql database with anyone else. Just need to know what code to put where?

Member
Member
more-zenphoto   2008-12-23, 02:27
#5

There must have been a change in the code since this soultion:

http://www.zenphoto.org/support/topic.php?id=4493

because it returns an error.

Administrator
Administrator
acrylian   2008-12-23, 11:31
#6

What error do you exactly get and where did you add the plugin code?

Administrator
Administrator
fretzl   2008-12-24, 12:20
#7

Actually, your first post suggests to me that you are running a "normal" Zenphoto site and that you want to change the homepage(index.php) a bit.
Am I right?

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