Please help a Noob with some questions

Hi,

I've just started to use Zenphoto and I'm very impressed so far, it's the best one I've come across :)

Anywhoo.. onto my questions.

1) Is it possible to totally disable comments across my whole gallery, albums and images? Currently I have to keep disabling them for each album etc

2) I would like to be able to add the thumbnails from an Album page onto my blog/site. Is this possible? I know I can cut and paste the code but is there a simple way to provide the embed code under an album and/or individual photo?

3) I'd like to grant upload privilages to a number of my staff. Does Zenphoto support the idea of Security Groups? or do I need to create each user separately and then assign the correct roles?

Thanks in advance for any help/advice

Comments

  • acrylian Administrator, Developer
    1. Yes, disable the comments_form plugin.
    2. Not really, but if you are using Wordpress there are some 3rd party tools available.
    Or use the built-in blog (news section) provided by the Zenpage CMS plugin.
    3. Yes, please see the user guide.
  • Thanks for getting back to me so quickly.

    Do you think there will ever be the ability to provide the thumbnail embed codes as an option. We don't use wordpress and it would be a feature that would save us hrs of time in getting the raw html so that we can post onto our site.

    I'm happy to pay for this development if it's not too much cost.
  • acrylian Administrator, Developer
    Well, it is already possible to do this right now but you will have to do changes your theme.
    Look at the file comments on top of the file `zp-core/i.php`. That is the image processor for the sized images (see the troubleshooting about the difference between full images uploaded vs. cached thumbs/sized images and how image caching works). You can built code for this using the object model to generate the link.

    You can of couse also link to the full image or the cached images. But you should use i.php for it because if the file has not already been cached there is of course no such file yet.
  • Thanks again, I'm afraid I'm not much of a programmer and I've never coded in php only javascript, so the file contents of i.php and the abilty to use it are a bit out of my league.

    Would the team be willing to take on the development work. As I said I'm willing to pay for this development.
  • acrylian Administrator, Developer
    Sorry, my fault, i.php is not needed at all (That happens if you answer typing to fast inbetween).

    If you really only want the normal thumb image as defined it is quite easy and requires no real development. Add this to your theme's`image.php` (even if you don't know php reading the theming tutorial helps to understand the basics of theme structure).
    `


    image" />


    `
    That is basic and lacks the img tag height and width setting. There are also normal template functions to get the default sized image or even custom sizes (all use i.php internally)
  • Thank you so much, I really appreciate it.

    I'll give it a go :)
  • Ok, that works great :)

    Can a similar approach be made to the Album View of which has all the thumbnails? ie the embed code would have the code for all the images.

    If you can point me in the right direct I can probably do this myself.
  • Of course similar is possible. But now you are getting into coding. If you are comfortable with that you should start reading the Zenphoto documentation. Start with the themeing guide.
  • Thanks, I'm willing to give it a go :)

    Is there a list/description anywhere of all the various variables/functions like

    FULLWEBPATH.getImageThumb()

    I'd like to have a look through them all as I'd need the ones for image link so the embed code I display will link back to the image page etc.
  • Sorry for all the questions, in addition to getting a list of the functions/variables etc. When I use

    <?php echo FULLWEBPATH.getImageThumb(); ?>

    I get this as an example

    http://spoilertv.co.uk/images/images/cache/castle/season-3/promotional-photos/Fringe-Episode-3.17-Promotional-Photos/123649_0410_pre_100_cw85_ch85_thumb.jpg

    This image does not display, give mes an error.

    However on the album view I see this as the Image Thumbnail which works

    http://spoilertv.co.uk/images/cache/castle/season-3/promotional-photos/Fringe-Episode-3.17-Promotional-Photos/123649_0410_pre_100_cw85_ch85_thumb.jpg

    What am I doing wrong?
  • acrylian Administrator, Developer
    1. You find the theming tutorial on our user guide sections. There is also a link to the separate function documentation. Look for the template-functions.php file there for the easy to use theme functions (most of the others are more or less for advanced usage).

    2. You didn't do anything wrong. My fault actually. As the function already gets partly what the FULLWEBPATH constant does as well (this the doubled "images");
    Quick change would be `image" />`
  • There is a function guide as part of the user guide (http://www.zenphoto.org/category/User-Guide/).

    Am I correct in understanding that you wish to display thumb images, etc. from outside the scope of your web album? How you would do this would depend partly on the technology of the rest of your Website. But a start would be to look at the http://www.zenphoto.org/category/extensions/integration/
  • Brilliant!

    Thank you so much for all your great help so far.

    Very impressive.
  • Ok, I'm getting there but I have an actual php question.

    I've decided that I need to loop through the images to build up the embed code. I'm doing this by trying to append the link/image info to a string and then outputting that string.

    However, php is not my first language and I can't quite seem to get the syntax right.

    Here is my code
    http://pastebin.com/ZM7i27GY
  • acrylian Administrator, Developer
    `$str .=` is not within the php enclosure. You have to put the whole link generation into that. Please understand that this is forum not the place for basic php questions.
  • Thanks and understood.
Sign In or Register to comment.