![]() |
|
AndreyPhoto Theme Problem - 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: AndreyPhoto Theme Problem (/thread-926.html) |
AndreyPhoto Theme Problem - itaymesh - 2006-12-02 When I set the Andreyphoto Theme in Zenphoto and go to view it I get this Messege: MySQL Query ( SELECT DISTINCT zp_images.filename, zp_images.title, zp_albums.folder FROM zp_images INNER JOIN When I use the other themes everthing is allright Any Help? PLEASE.... Thanks Itay AndreyPhoto Theme Problem - thinkdreams - 2006-12-03 Itay- What is your database prefix. Looks like the andreyphoto theme is using a hardcoded DB prefix, which you will probably need to change to match your own, or modify it so it works with whatever prefix you have. I'll post an example shortly of what I mean. AndreyPhoto Theme Problem - itaymesh - 2006-12-03 thinkdreams - I am looking forward for your example Thanks, Itay AndreyPhoto Theme Problem - thinkdreams - 2006-12-03 Itay- OK. Here's a snippet from the show latest images script I use: $images = query_full_array("SELECT images.albumid, images.filename AS filename, images.title AS title, albums.folder AS folder FROM ".prefix('images')." AS images, ".prefix('albums')." AS albums WHERE images.albumid = albums.id AND images.show = 1 ORDER BY images.id DESC LIMIT $number"); Note the ".prefix('images')." section (quotes and periods are important!) What you'll need to do is structure your query using the prefix('images') portion I hope that helps. AndreyPhoto Theme Problem - itaymesh - 2006-12-03 Andrey Wrote me by e-mail: Do you have a prefix on your tables "zp_"? If they don't or have a Hope this works. Cheers, AndreyPhoto Theme Problem - itaymesh - 2006-12-03 thinkdreams - Itay AndreyPhoto Theme Problem - thinkdreams - 2006-12-03 Itay, could you post a link to your site so I can look at it? Also: Double check that cache and images folders are set to chmod 777 permissions. AndreyPhoto Theme Problem - itaymesh - 2006-12-03 Thing is I am working OFFLINE with xampp (http://www.xampp.com). After all that tests I Upload it and send A link to this post chain... Do I need to set permission offline too? Where can I Disable random image function? Thanks Itay AndreyPhoto Theme Problem - Andrey - 2006-12-04 Hi Itay, To temporarily disable the random image function, just comment out these two variables: // $randomImage = getRandomImage(); I'll add the auto-prefix for random image function on the TODO list. Cheers, AndreyPhoto Theme Problem - pluto459 - 2007-02-22 I had this issue with other theme as well, but I dont remember which one. It had the exact line # to change. Just delete zp_ from the random images part. Lines 18-25 in index. I think when Zen newbies start using it, the pros think we know more than we do lol. Line #'s is the easiest way for us to understand. AndreyPhoto Theme Problem - whiteflyer - 2007-09-19 I have installed the theme and changed the random image variables and all looks to be working fine. I have a small problem in that the theme background images are not showing, ie the guitar in the description cell or the header image and the thumbnail background on the index page. Any ideas how to sort this out please. My site is at http://www.whiteflyer.f2s.com/zenphoto/ Thanks Mark AndreyPhoto Theme Problem - acrylian - 2007-09-19 Whiteflyer: ` The "%3c" and ">" seem the point that the php code is not executed. And I think there is a ";" missing after the $_zp_themeroot. It should read: AndreyPhoto Theme Problem - whiteflyer - 2007-09-19 Got it sorted now thanks, For some reason I had to put the full URL to the images. |