How to show images from gallery without any login in Wordpress?

Ender27182818

Joined: 2008-11-03
Posts: 2
Posted: Mon, 2008-11-03 15:34

My gallery information:

Gallery version = 2.2.6 core 1.2.0.8
PHP version = 4.4.9 cgi-fcgi
Webserver = Apache/2.2.9 (Unix) PHP/4.4.7 mod_ssl/2.2.9 OpenSSL/0.9.8c mod_fastcgi/2.4.6 Phusion_Passenger/2.0.3 DAV/2 SVN/1.4.2
Database = mysqlt 5.0.67-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, ImageMagick, SquareThumb
Acceleration = none, none
Operating system = Linux trafficante 2.6.24.5-serf-xeon-c6.1-grsec #1 SMP Tue Oct 7 06:18:04 PDT 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3
Rows in GalleryAccessMap table = 18
Rows in GalleryAccessSubscriberMap table = 563
Rows in GalleryUser table = 5
Rows in GalleryItem table = 549
Rows in GalleryAlbumItem table = 23
Rows in GalleryCacheMap table = 0

Wordpress is version 2.6. WPG2 is version 2.3.0.7

What I'm trying to do is pull pictures from my gallery2 install and show them on my blog without requiring a login. Currently, the only users to log in to wordpress are the users who actually write blogs. I have a large album of pictures I'd like them to pull from to add to their blogs. However, when they do that now, the picture is shown as a broken link on the blog. If they click on the picture, they are asked to log in to wordpress. If one of the blog authors looks at the blog, everything looks fine. Does anyone know of a way to set things up so that gallery2 images can be fed into a blog post without requiring a Wordpress login?

-Ender

 
Ender27182818

Joined: 2008-11-03
Posts: 2
Posted: Tue, 2008-11-04 18:36

Well, I figured out how to do it. The secret lies in the fact that WordPress uses the 'guest' user to access Gallery2 whenever a user is not logged in to WordPress. In order to allow users who are not logged in, you just have to give the 'guest' user view permissions on a particular album. In my case, I created a sub-album called 'Blog' and allowed guest users to view all versions of the images there. Then, whenever I wanted to put a picture on the blog, I made sure it was in that album. If a user clicks on the image in WordPress, it takes them to my gallery, but they can only navigate around within the 'Blog' album. Pretty handy!

-Ender