![]() |
|
adding gallery link to homepage - 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: adding gallery link to homepage (/thread-10546.html) |
adding gallery link to homepage - alan.hunt79 - 2012-10-29 I am building a site for a friend who is a model, they want a open access part to the site with the usual features, bio, blog, links etc and then a secure side with all of there photography on. I have done this before, using ZP in the secure section to handle the gallery needs, but this time this person wants the most recent say 3-5 galleries to appear on the home page of the open side of the site, is there a way to do this easily or is it a lot of php coding involved? I was hoping there'd be an easy way that when they update the galleries with new content it could automatically keep the open home page updated if you understand what i mean. adding gallery link to homepage - acrylian - 2012-10-29 [i]3-5 galleries[/i] If that home page is outside Zenphoto you have to do some coding following this way: But Zenphoto could manage the full site requirements actually using the Zenpage CMS plugin, btw. adding gallery link to homepage - alan.hunt79 - 2012-10-30 thanks alot for the reply, I have tried to make it work with limited success. adding gallery link to homepage - sbillard - 2012-10-31 Moderator's note: This posting got trapped by our spam filter. Probably because the html above was not encased in the code defining peck-marks. It is fortunate that I did see the posting. We get over 90 spam postings an hour, so it is quite easy for a legitimate posting to be missed. So the caution is:
BTW, if the filter does "catch" you you are automatically marked as "blocked" and will not be able to post until a moderator discovers and un-blocks you. adding gallery link to homepage - alan.hunt79 - 2012-10-31 Thanks for that I emailed also as I didn't know what else to do. so anyone with any advice appreciated. will admit php isn't my strong point. adding gallery link to homepage - sbillard - 2012-10-31 Since your script is in the ROOT of your WEB site the define for adding gallery link to homepage - alan.hunt79 - 2012-10-31 thats got the link working aiming towards the gallery, but its still leaving the serverpath not doing its job, still no theme and no picture adding gallery link to homepage - alan.hunt79 - 2012-10-31 have tried using location and absolte url, and a few other things, but I'm pretty sure its the server path thats letting me down just don't know how to aim it in the right place, annoying thing is I know it will be something simple :/ adding gallery link to homepage - sbillard - 2012-10-31 The server path should be correct. Do you get an error on the adding gallery link to homepage - alan.hunt79 - 2012-10-31 this is what I have "define('SERVERPATH',str_replace('\','/',dirname(FILE)).'/members');" like I said, not getting any errors, but it won't find the picture or the theme? adding gallery link to homepage - acrylian - 2012-10-31 If that page is really a html page (.html) you might need to configure your server to accept php code within that. By default most servers requires .php to execute php code. adding gallery link to homepage - alan.hunt79 - 2012-10-31 server is set up for php, zenphoto is installed and fully working on the site in the members folder, and the file I'm on is"tester.php" so have the basics covered, but still can't get it to work, can't be that dificult surely but I can't see where I'm going wrong. adding gallery link to homepage - alan.hunt79 - 2012-10-31 I see someones taken an interest as the example caode has been altered at some point yesterday, the thing is that still doesn't work. what next. adding gallery link to homepage - sbillard - 2012-10-31 You will have to do some debugging. First of all set your php to display errors on the web pages so that you know all the errors you may be gettins. Then put some debugging statements into your script. For instance echo out the SERVER PATH and WEB PATH to be sure they are correct. Try calling some simple functions, for instance adding gallery link to homepage - alan.hunt79 - 2012-11-06 Finally got the picture to work thanks for the advice. now for my next question, is there a way of displaying the latest say 3 galleries in boxes rather than just a single image as in the tutorial? this way I wouldn't need to manually update the homepage it would be automated whenever I uplaod new galleries so new visitors can see there is new content? adding gallery link to homepage - acrylian - 2012-11-06 You mean of course "albums" (http://www.zenphoto.org/news/zenphoto-glossary) A thumb for each album? Try including the image_album_statistics plugin additionally. Or use the object model directly: http://www.zenphoto.org/news/zenphotos-object-model-framework |