Support » Plugins and Hacks » New Plugin: xGallery

New Plugin: xGallery

Viewing 15 replies - 31 through 45 (of 70 total)
  • pls deleted


    sorry double posted…pls deleted.

    Ill go debug some more, can you try putting photos.php in your main dir and see if it runs off that? Shouldnt make a dif tho

    been there, done that 🙁

    Ok do this, search for:

    if (!is_dir($dir_path_abs))
    gallery_error(“Unable to access the specified directory”);

    and right before gallery_error, add “echo $dir_path_abs;” and show me what that outputs

    the results:

    if (!is_numeric(strpos(realpath($dir_path_abs), realpath($_SERVER['DOCUMENT_ROOT'].'/'.$root_path))))
    gallery_error("Unable to access the specified directory");
    echo $dir_path_abs;


    There was an error with your request
    Error Message: Unable to access the specified directory

    oki.. got xgallery working by changin the default gallery path to: /main/wp-content/gallery/

    That did the trick…thank you for your fast resspons, it was a great help for me.. Great gallery! David Keep up the good work!

    How to scale an image down and add clickable link to fullsize pic. if it’s too wide and it would break the horizontal layout..Let’s say no image can be wider than 400px.

    Set the maximum page width to 400px, and click the box for “Show link to original file” or whatever under Image Options

    Page width makes it so the thumbsnails as well as resizing dont break your design 🙂

    I’ll probably add a note about the directory for later versions 😀

    great thanks 🙂


    hey zeeg! thank’s a lot for this very very cool plugin. i just installed v0.4 for wp 1.5.
    i think, i ran into four minor bugs but i got it working now. i’d like to share my ugly hacks with you:

    all bugs are in the xgallery.php

    navigation counter:

    #261 if ($page == ($key+1))
    bug: causes not actual, bun next image to be in “active” state

    #261 if ($page == ($key))

    thumbnail table start:

    #399 echo “<table id=\”gallery_area\”>\n”;
    bug: no tr is opened, the loop afterwards starts right with a td

    #399 echo “<table id=\”gallery_area\”>\n <tr>\n”;

    thumbnail check:

    #418 if (($error = create_thumbnail($file)) == false)
    bug: check might return “false” even if a thumbnail is created

    dunno. error message was “1” – not very usefull. i couldn’t figure out what caused it. i just commented it out.

    thumbnail table end:

    #456 }
    #457 echo “</tr>\n</table>\n”;
    bug: table closes outside the “display thumbnail” if-case. it gets echoed even if no table was opened..

    #456 echo “</tr>\n</table>\n”;
    #457 }

    that’s it. thank’s again for your work. keep it up.
    all the best, roman

    I am having the same problem as the member, noname.

    There was an error with your request
    Error Message: Unable to access the specified directory

    Go to netmix.com/wordpress/example-photos.php and you will see the error message.

    Although I can understand a little PHP, I am not familiar with how to change the code to get it working. If you can give me step by step instructions, that would be greatly appreciated.

    I have created a folder in “/wp-content/” called “gallery”

    Now the path is “/wp-content/gallery/” just like it is stated in the path field the WordPress Options section.

    I put a .jpg image in the folder. It doesn’t display. What should I do?

    Also, I want to change the file name from “examples-photos.php to just “photos.php” like you have on your site. When I change the file name, what line in the PHP code do I change?

    Please let me know. Thanks.

    Tony Z.


    change the path “/wp-content/gallery/” to “/wordpress/wp-content/gallery/”

    #photos.php (copy or make new file to wordpress folder)

    /* Don’t remove this line. */
    <div id=”content”>
    <?php gallery_show_photos(); ?>
    <?php get_footer(); ?>

    Thank you, I will try it and let you know how it works…much appreciated for your quick response!


    Worked great, but I have to change the CSS code, I think, because the gallery is falling outside the WP 1.5 template.

    Take a look at netmix.com/wordpress/photos.php

    By the way…this is great work. It amazes me that people just jump in and contribute new plug-ins all the time. I really appreciate your efforts, it makes life easier for everyone else. Thanks so much!


Viewing 15 replies - 31 through 45 (of 70 total)
  • The topic ‘New Plugin: xGallery’ is closed to new replies.