WordPress.org

Ready to get started?Download WordPress

Forums

xGallery [Updated] (35 posts)

  1. zeeg
    Member
    Posted 9 years ago #

    Old thread was too annoying w/ BB Press (hard to see what's new and such).

    xGallery is a Multimedia solution for WP. It's exactly what it should be, a plugin, plug it in and it works :D

    You can view it in action here: http://www.evilcoder.net/album.php

    There's also an administration backend via the WP Admin

    ! New home for xGallery !
    http://www.evilcoder.net/ (The sites a WIP so if it ever gets flakey check http://www.davidcramer.net/)

    You can download 0.6 from any of the following: http://www.davidcramer.net/xgallery.zip
    http://www.evilcoder.net/xgallery.zip

    // 0.6 //

    Reworked the GD functions, removed the original code (wasn't mine).
    No more borders/drop shadow etc... was more hassle then it's worth.
    Fixed many file permission problems, tags that weren't closed etc.
    The example-photos.php is not made to work with the default WP 1.5 theme
    Fixed a bug that would cause it to only generate 1 thumbnail instead of the whole batch
    -- Look for a file manager and a slideshow in the next version!

  2. zeeg
    Member
    Posted 9 years ago #

    BTW, readme's probably a bit outdated I forgot to check it

    If ANYONE receives ANY errors, tell me, you shouldn't have any unless you don't follow directions correctly.

    Don't forget to CHMOD (777) your xGallery directory.

    -- Forgot the example-photos.php, added it just in case anyone got here before I fixed the zip :D

  3. KPIZME
    Member
    Posted 9 years ago #

    DISREGARD: I posted before searching. My aplogies

  4. KPIZME
    Member
    Posted 9 years ago #

    DISREGARD: I posted before searching. My aplogies

  5. zeeg
    Member
    Posted 9 years ago #

    **The example-photos.php is now made to work with the default WP 1.5 theme

  6. zeeg
    Member
    Posted 9 years ago #

    Bump, anyone having any problems?

  7. bishop
    Member
    Posted 9 years ago #

    Yes I am!

    I get the error
    Warning: is_dir() [function.is-dir]: Unable to access in /home/www/htdocs/stefan-goehring.net/glatzopatzo/wp-content/plugins/xgallery/xgallery.php on line 184

    I don't know what could not be accessed: the directory or the function?

    The domain is http://www.glatzopatzo.de and it is forwarded wo http://www.stefan-goehring.net/glatzopatzo

    The Default Gallery Path is: /wp-content/gallery/
    I tried many other possibilities with this path but i always get the same error.

    Dirs and files set to 777:
    /wp-content/plugins/xgallery.php
    /wp-content/plugins/xgallery-options.php
    /wp-content/gallery/
    /wp-content/gallery/.modified/
    /wp-content/gallery/.thumbs/
    /wp-content/gallery/.counter (i uploaded an empty text file)

    There's a link to the renamed example-photos.php -> xgallery.php on the lower roght of the page "Bildergallerie". There you will get the above mentioned error.
    The xgallery.php is placed in the root of the blog (http://www.stefan-goehring.net/glatzopatzo)

    I don't know where i should look for the error, so please help me.

  8. zeeg
    Member
    Posted 9 years ago #

    I'm really not sure what that error means either :)

    Maybe it has something to do w/ redirecting, but I don't think that would cause that problem.

    Don't suppose anyone else can offer insight here?

    -- One thing, I'm sure your WP is like /gazdf<that long word :P>/ right?

    Try setting your gallery to <that long word>/wp-content/gallery/

  9. adb
    Member
    Posted 9 years ago #

    I'm not sure I understand your instructions. I have the plugin activated, but I don't know the purpose of the example-photos.php. Where do I upload pictures exactly? How do I make it so the gallery displays on it's own page?

  10. bishop
    Member
    Posted 9 years ago #

    morning!
    @adb: you have got to copy your files into the directory you specified in wordpress options - xgallery. the default dir is /wp-content/gallery/, thet means http://www.yourdomain.com/wp-content/gallery/ is the right one

    i used the example-photos.php this way: i renamed it to xgallery.php and copied it into the root dir of WP. then i created a link in WP to that file and i had a link to my gallery on my WP blog.

    @zeeg
    ok it's working now with the long word :-P
    it's glatzopatzo -> simple german wordplay with glatze, which means i have no hair (:-)

    but i still get the same error when i call the gallery and when i click on a picture to enlarge it.

    the gallery can be accessed by clicking on the "Bildergallerie" link on the lower right of the site http://www.glatzopatzo.de

    Warning: is_dir() [function.is-dir]: Unable to access in /home/www/htdocs/stefan-goehring.net/glatzopatzo/wp-content/plugins/xgallery/xgallery.php on line 184

  11. bishop
    Member
    Posted 9 years ago #

    ok now i have found a possibility to not getting the error, but it's just commenting out the if clause in xgallery.php line 184

    it works fine now and i sawthat the script runs only 1 time through that line. i think this is just a check if the root dir of the gallery is being correctly defined.

    when i echo() the $rootpath i get "" as result. is that normal?

  12. adb
    Member
    Posted 9 years ago #

    I get the following error when viewing the gallery page http://gldnspce.com/gallery.php

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

  13. iceman
    Member
    Posted 9 years ago #

    works great save for one little problem as far as i can tell,
    if there aren't any files in a gallery directory (like if wp-content/gallery only has folders and no files) you get an error.

    Warning: Invalid argument supplied for foreach() in /home/frozenco/public_html/wp-content/plugins/xgallery/xgallery.php on line 462

    http://frozencore.net/xgallery.php to see

  14. iceman
    Member
    Posted 9 years ago #


  15. adb
    Member
    Posted 9 years ago #

    Disregard my last post--It's now working. The page doesn't display the proper background in Firefox. And how can I get the Gallery title and footer info center? Any suggestions?

  16. adb
    Member
    Posted 9 years ago #

    Yep, disregard my last post. Thanks.

  17. zeeg
    Member
    Posted 9 years ago #

    0.61 is available, same link. it fixes everything recorded in this thread.

    Does anyone know how to create your own WP templates? Like say for example add a template to the system that would let you edit how xGallery displays and such?

  18. iceman
    Member
    Posted 9 years ago #

    echo "Mtd>No files found</td>";
    should be
    echo "<td>No files found</td>";
    .61 looks great otherwise!

  19. zeeg
    Member
    Posted 9 years ago #

    Whoops, thanks :D

  20. KPIZME
    Member
    Posted 9 years ago #

    I keep getting a "Call to undefined function: gallery_show_photos()" error.

    I activated the Plugin.
    I created a wp-content /gallery page, granted read/write permissions
    I used the default settings (note: Im on IIS server) on admin page.
    I also added the style settings to the templates sytle.css file.

    The example-photos.php file is in the main directory

    Not sure whats going on here. Eventually, I hope to have the gallery display within the template, in the body section.

  21. KPIZME
    Member
    Posted 9 years ago #

    OK. So I got the error above resolved, but now I am getting what others have hadd: Error Message: Unable to access the specified directory . Both direcotries have permissions

  22. KPIZME
    Member
    Posted 9 years ago #

    Does anyone know what was meant (in the install Instrux) by: "Windows doesnt like .folder names, so do a find replace with .modified and .thumb or something of the sorts"

    Do we need to search the code in xgallery.php for instances of ".modified" and ".thumb" or do we actually need to created folders with these names.

    This may be where my confusion and problem lies.

  23. zeeg
    Member
    Posted 9 years ago #

    Sorry, old readme, theres an option for it now. Just head over to WP admin and go to your xGallery options and you can change the folder names

    Make sure your directory is the absolute path from your www

    so if your www is C:\inetpub\www\ and your gallery is in C:\inetpub\www\wp\wp-content\gallery\ your directory should be set to \wp\wp-content\gallery

  24. KPIZME
    Member
    Posted 9 years ago #

    I dont think that is my issue. It's set to /wp-content/gallery. I hae WP1.5 in my main directory. The example-photos.php is in the main directory.

    Could it be this line from the xGallery.php script?
    define ('ICONS_DIR', get_settings('home').'/wp-content/plugins/xgallery/');

    As a reminder, I am on a IIS server.

  25. schun
    Member
    Posted 9 years ago #

    I am getting the Warning: cannot add header information error..
    I tried removing any spaces for php tags but that didnt work for me at all..

    Warning: Cannot add header information - headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin-header.php:8) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 6

    Warning: Cannot add header information - headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin-header.php:8) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 7

    Warning: Cannot add header information - headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin-header.php:8) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 8

    Warning: Cannot add header information - headers already sent by (output started at /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin-header.php:8) in /rmounts/vol0-nas/yorkweb/webs/schun/MyWebSite/blogs/wpen15/wp-admin/admin.php on line 9

    Any idea? Thanks!

  26. zeeg
    Member
    Posted 9 years ago #

    KPIZME I dont think so, that error is only shown when it can't find the gallery directory, make sure you use \ instead of /, but im not sure.

    Schun, I don't think that's an xGallery error, but I'm not certain. Dont know what to tell ya.

  27. KPIZME
    Member
    Posted 9 years ago #

    UGH! I am not sure why I am struggling with this one so much, and I am sure the resolution will be DUH! simple. I am determined as this is the best looking gallery I have seen. Lets give it one more try:

    direct path to gallery:
    C:\Inetpub\vhosts\kevla.net\httpdocs\wp-content\gallery

    WordPress address (URI):
    http://www.kevla.net

    deafult gallery path under Options:
    /wp-content/gallery/
    (I have also tried various versions with both "/" and "\")

    location of ALL xgallery files
    /wp-content/plugins/xgallery

    http://www.kevla.net/media.php (media.php=example-photo.php)

    No modifications were made to any xgallery files.

    Currently, Gallery folder is empty of media files, but has two files, thumbs and modified.

    THANKS AGAIN for trying to working through this one with me.

  28. KPIZME
    Member
    Posted 9 years ago #

    I think that I have almost got it. Now I am getting at least the folder icons to appear, albeit I am getting another error.

    Under Options/Default Gallery Path I had to put the FULL path; ie: not just '/wp-content/gallery' BUT the full path including the root. Maybe its a Windows/Plesk thing, I donno.

    I figured this out by adding the following lines of code before the error output, as you instructed in the old thread:

    echo realpath($_SERVER['document_root']);
    echo $dir_path_abs;

    Oh, should I even be seeing the modified and thumbs folders? I thought these would be consdiered "internal" and for the plugin functionality.

  29. zeeg
    Member
    Posted 9 years ago #

    I probably forgot to make them not display as the options updated, I'll fix that in .7 and whatever windows solution we come up with :D

  30. KPIZME
    Member
    Posted 9 years ago #

    Ah. I fixed the display of the thumbs and modified folder by unchecking the "display subfolders" on the Admin panel.

    Now that "chdir(): No such file or directory (errno 2) ... on line 534
    " error. I think it was a bad decsion to put the full path. I think that fixed one issue, but caused another.

    Ill play with it and let you know if I come up with anything. Thanks for the help and commitment up to now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags