About this topic

  • Posted by Pagal 1 year ago. There are 10 posts. The latest reply is from Pagal.
  • This topic is not resolved

No tags yet.

  1. Dear Developer,
    First of all thanks from my side for such a nice plugin, and also best of luck for your success.
    Dear, I don't know where to start, anyway
    I need to customise the layout of my gallery. I need a categories based gallery, where users can submit photos in selected categories.

    First I want to show the recent photos added by all users in all categories. then right below the list of my all categories where users are able to send pictures.

    One thing more important...when a user add photo then during it the wp uploader must ask to that in which categories you want to add photo...then user can choose a category from drop down for picture submission.

    Same as the users and guest can view my gallery categories bases.
    I hope you can understand my question what I want to say.

    For better understanding.... I'm sending you screenshots of my requirements.

    **** for Custom layout and categories ***
    http://img696.imageshack.us/img696/3757/usergallery.png

    *** for chose category during upload **
    http://img231.imageshack.us/img231/5945/gallerycats.png

    Second..is this gallery plugin is secure?
    I mean I'm afraid if a hacker can tease us by sending virus from gallery by sending picx... please make sure us..
    or a user can attack on site by sending picx repeatedly.. I mean is there any place for capcha code or scan picture or pictures limitation for users???

    I'll really thankful to you I you provide smart support...
    Thanks for everything and best of luck again :)

  2. any support? any assistance?

  3. Hi Pagal,

    Sorry for the delayed response...it's been a busy week.

    1) Categorized galleries

    I've been trying to figure out how to do this for you, but PhotoSmash really doesn't do what you're wanting the way you want to do it, but there are a couple of things you can do to get close. Here is a way you could try it:

    Method #1) You could create separate galleries to represent each category you want (name the gallery with the category name you want). Then you would add a image to each galler, then display them in a Gallery Viewer. Clickin the gallery image from the gallery viewer would show the gallery and a link to upload images to it. Here are the shortcodes that you would need to accomplish this after you get the galleries created:

    [photosmash gallery_type=recent images=12] --- this would show the most recent images across all of your galleries, and it wouldn't show a form

    [photosmash gallery_viewer=true] --- this would show an image for each of your galleries and the # of images in the gallery...if the user clicks on it, it will take them to the gallery. <b>There has to be a image in the gallery for it to show up in this index, so be sure to add one through Photo Manager (select the gallery from the dropdown, click Edit, then Add Images).</b>

    2) As far as security goes, I have been very concerned about security throughout this project because it allows unknown people to load files and data to your system. I cannot guarantee that it is 100%, but I have tried my best. Security is one reason that I use the built-in WordPress file/image handling routines, to insure that images are uploaded. I also clean all the strings that are uploaded using the WordPress wp_kses() function and the other sanitizing functions esc_url, esc_attr, wpdb->prepare, etc.

    So, obviously, I wouldn't put out something I didn't think was secure, but neither would Apple, Microsoft, Linux, WordPress, or any of the other people who have had major security issues in their software. I wish someone would hire Mark Jaquith to do a security audit of the code, but I have the feeling that it would be incredibly expensive.

    Cheers,
    Byron

  4. Really thanks BB..
    I'll definitely try it and then tell you what happened...stay connect
    but one thing you've forget to tell me is about select dropdown categories... wow today I've found that you did it.. :)
    http://stlouie.com/add-photos/
    I'm talking about Image categories..how to get it?

    Thanks
    P.

  5. And please also tell me how to add extra fields in add-photos page..
    like, License, Attribution, Tags,Caption, Tell us about it... like what you did on http://stlouie.com/add-photos/.. how can i achieve same as this..? I'm not a technical person please guide me in easy way

    Thanks,
    P.

  6. Pagal,

    Unfortunately, the Category dropdown that you see is not for the images themselves, but for the New Posts that are created for each image upload (part of the PhotoSmash Extend add-on). The selected category(s) are added to the new post. The Tags are related to the images, and you can use a dropdown for tags that you specify in a custom form, and you can view tag galleries by clicking on tags in a Tag cloud. But this will not really give you the effect that you're looking for either. The best way to accomplish what you've outlined is the process I described above.

    In order to add more fields, there are some additional standard fields you can add, and you can also create custom fields. Here's how:

    <b>Add standard fields</b>
    For URL, license, and attribution, go to PhotoSmash Settings / Uploading, then check "Include Attribution and License fields:" and check "Include URL field for alternate Caption link:", then save the settings. This will add those fields to the standard form.

    <b>Add Custom Fields</b>
    You must first turn on the Advanced menu items...go to PhotoSmash Settings / Advanced, and check "Show Advanced Menu Items:" and check "Show Custom Fields in Default Form:" then save the settings. You should now see menu options for Custom Forms | Custom Fields | Layouts Editor in addition to the standard menu items. Go to the Custom Fields page, and it should be fairly self-explanatory from there.

    Hope that helps,
    Byron

  7. Hi BB, hope you'll be fine... :)
    I'm almost near to my idea.. now I've decided to make a static page where I'll paste all galleries statistics and summaries manually and link them to their original galleries.
    One more thing i want to ask if it is possible..
    How can I count the total pictures just for gallery (A). I don't want to show the gallery photo.. I just want to show the no. of pictures in gallery (A).
    like
    football gallery = 500 photos
    hockey gallery = 100 photos
    cricket gallery = 450 photos
    I hope you'll guide me again...thank

    Regards,
    P.

  8. Wow! I had written a reply to tell you that it wasn't available, but it actually is! You will need to use a Custom Layout (either one of the Prepackaged ones or one you make up yourself). But all you need to do is add: [gallery_image_count] to a custom layout.

    I put together a quick page to get you started: http://smashly.net/photosmash-galleries/how-to/create-custom-layouts/

    UPDATE...oh, just realized you don't want to show a gallery. Well the above only works if you're showing a gallery, even if it's just one image from a gallery ( add images=1 ) to your shortcode. You'd have to code up a PHP function to get the count of images in a Gallery, otherwise. Let me think on it...I may be able to give you a little function that you could stick in your theme's functions.php and use it as a template tag.

    Cheers,
    Byron

  9. Pagal,

    Try adding this as a template tag to your theme's functions.php file...then you can call it like:

    <?php
         // This is the template tag to display the image count for gallery ID = 2
         $gal_id = 2;
         echo photosmash_img_count($gal_id);
    ?>

    Here's the function

    function photosmash_img_count($gal_id){
       global $wpdb;
    
      $gid = (int)$gal_id;
    
      if($gid){
         return $wpdb->get_var( $wpdb->prepare("SELECT img_count FROM " . $wpdb->prefix . "bwbps_galleries WHERE gallery_id = %d", $gid) );
      } else {
        return 0;
      }
    
    }

    Hope that helps!
    Byron

  10. Hi BB,
    I'll do it then I'll tell you what happed..
    But One thing more...what will be the short code to display the no. of total pictures from gallery ID 2 something like [gallery_image_count_id=2...]??

    Meet later
    And Thanks
    P.

RSS feed for this topic