Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    When one drills down and clicks on the final picture I get a 404 error and this is the url

    http://domain.com/photogallery.phpimages/alex_bay/pirate_day/pirate_day_4.jpg

    and I presume it should be domain.com/plogger/images/alex_bay....

    I am integrating plogger using include php functions and <?php the_gallery(); ?>

    Why is the path to the file wrong now??
    • CommentAuthorgaladan
    • CommentTimeMay 2nd 2008 edited
     
    I'm getting a very similar error. I'm customizing my install as well, and for some reason the script is interjecting "index.php" in the generated URL.

    /intranet/gallery/index.phpimages/08_product_line/rugged_life/mz-133_woodsman_blackmocha.jpg

    It should be:
    /intranet/gallery/images/08_product_line/rugged_life/mz-133_woodsman_blackmocha.jpg

    Anyone have any ideas?
  2.  
    I changed the following method in plog-functions.php:

    function plogger_get_source_picture_url() {
    global $config;
    return (!empty($config['allow_fullpic'])) ? $config['gallery_url'].'images/'.SmartStripSlashes($GLOBALS["current_picture"]["path"]) : "#";
    }

    and mine now works - hope that helps.

    Mark
    Thankful People: Drakkim
    • CommentAuthorgaladan
    • CommentTimeMay 2nd 2008
     
    I'll give that a try, Mark. Thanks very much!
    • CommentAuthorgaladan
    • CommentTimeMay 2nd 2008
     
    Just tried it...works great. Thanks again.
  3.  
    version 3.0 beta has wierd URLS when you click on the picture.
    http://www.hackettsonline.com/gallery.phpimages/gallery_1/gallery/0011.jpg
    why is this still in the code?
  4.  
    the fix mentioned above DOES NOT work with this version 3.0 beta
  5.  
    wrong function.
    I changed the correct fucntion to

    return (!empty($config['allow_fullpic'])) ? $config['gallery_url'].'images/'.SmartStripSlashes($GLOBALS["current_picture"]["path"]) : "#";
    and it did work..
    • CommentAuthorheenke
    • CommentTimeApr 15th 2009
     
    this does not work on lightbox2. when having gallery intergrated in my page it tries to open the picture with the wrong url. With this fix it sorts the problem, but it disables the "lightbox" pictureview. it just opens the picture in a new window, doesnt popup and make everything else grey. hum :( Any fix? =)
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 15th 2009
     
    heenke,

    What's the code in your album.php or picture.php theme file for lightbox popups?
    • CommentAuthorheenke
    • CommentTimeApr 15th 2009 edited
     
    i put those 2 files in a rar. hope it was ok?

    I linked to them instead of pasting alot of code in this thread. Do you think there could be a error in any of those files? But it works when i dont intergrate the gallery. If i use the gallery index.php it works =)

    Check out the gallery: gallery_url

    You see the url where it tries to open the picture is litlebit incorrect ? Also having that other problem with the colelctions hehe. But need to focus on 1 thing at the time :P those 2 errors left, then its all good i think =)
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 15th 2009
     
    heenke,

    It looks like your /gallery/index.php uses Lightbox1 and your Plogger theme gallery uses Lightbox2. Also, with the Lightbox2 setup, you do not have an image path set for the variable fileLoadingImage (it looks like it's missing from your lightbox.js file in the theme folder), so the javascript is throwing an error and not loading all the way, thus your Lightbox effect is not working correctly. So, you either need to go with the Lightbox1 javascript that is working on your site, or define the fileLoadingImage path (and probably the fileBottomNavCloseImage variable as well) in your theme directory for Lightbox2 to get it to work correctly.
    • CommentAuthorheenke
    • CommentTimeApr 15th 2009 edited
     
    Yes correct i use both 1 and 2, using lightbox1 for those 5 pictures in frontpage (index.php) i will try to define those 2 variables and see if it works. Cool thx :) you rock

    edit: i wonder 1 thing, why does this work when im using the plogger index.php file? but not when i intergrate. (now i dont mean my homepages index.php with lightbox1.) :/
    edit2: check out plogger_index.php use the gallery from there and you see all works fine. :/
    • CommentAuthorheenke
    • CommentTimeApr 18th 2009
     
    blaeh :( why cant it just work :(
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 18th 2009
     
    heenke,

    It looks like you're almost there. You just need to complete the fix outlined above and it should work just fine. If you're still having troubles, you may need to clear your browser cache in order to reload the javascript file.
    • CommentAuthorheenke
    • CommentTimeApr 18th 2009 edited
     
    I tested it again now: check the out the gallery now, and try press a picture. YouŽll see that it doesnt open the picture correct :/
    And ive tried reset all the stuff in both firefox and explorer. same same :P
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 18th 2009
     
    I see it opening the correct picture on this page
    • CommentAuthorheenke
    • CommentTimeApr 19th 2009
     
    Hi, yes it does. But thats not when plogger is intergrated in my page. this page is the same but when plogger is intergrated. :)
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 20th 2009
     
    heenke,

    You're still missing the code where the fileLoadingImage and fileBottomNavCloseImage are defined.
    It's this code that is missing:
    <script type="text/javascript">
    // <![CDATA[
    var fileLoadingImage = "http://folkrace.org/gallery/themes/lightbox_classic/images/loading.gif";
    var fileBottomNavCloseImage = "http://folkrace.org/gallery/themes/lightbox_classic/images/closelabel.gif";
    // ]]>
    </script>

    I'm guessing that it is located in http://folkrace.org/gallery.index.php.

    You either need to move this information:var fileLoadingImage = "http://folkrace.org/gallery/themes/lightbox_classic/images/loading.gif";
    var fileBottomNavCloseImage = "http://folkrace.org/gallery/themes/lightbox_classic/images/closelabel.gif"
    within the http://folkrace.org/gallery/themes/lightbox_classic/js/lightbox.js file (most likely right before the line "var overlayOpacity = 0.8;")
    OR
    you need to add the exact script above into your http://folkrace.org/gallery/galleri.php page before the_gallery() is called.

    That should get it to work for you.
    • CommentAuthorheenke
    • CommentTimeApr 20th 2009
     
    hi. you know what sidtheduck. You are the master =) That solved it. was looking and looking when jyou said something about that first time. but i couldnt find anything hehe. But now i added the javascript in galleri.php like you said :) wiiie. Now there are only 2 things left :P to get the Collections look better in the design. Dunno why they are behaving like that hehe, in explorer it looks litlebit better than firefox, but not correct :P And where i can rename the "collections" in the breadcrumb. instead of it saying like Collections/Album/bla i want ex Folder/Album/bla hehe. have looked everywhere, but need to check out the forum litlebit more. Guess i need to start a new thread about it :P Litlebit off topic in here :P thx again.