Gallery Random Photo Block w/ Gallery 2 working for anyone?

Creating and modifying plugins.
Post Reply
Gagtech

Gallery Random Photo Block w/ Gallery 2 working for anyone?

Post by Gagtech »

I've been trying to install the Gallery Random Photo Block and trying to get it to work with Gallery 2, but I have not been having any luck, has anyone got this to work?

I tried modifying the code to include the

Code: Select all

 <?php @readfile('http://www.fileshed.net/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?> 
suggested by the gallery 2 Image Block settings, but I can't seem to get it working.

Can anyone give me any suggestions?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery Random Photo Block w/ Gallery 2 working for anyo

Post by garvinhicking »

The plugin only works on hosts that support URL fopen wrappers; your host might not support this.

Replace the @readfile() command with readfile() and you should see an error message!

I've also just committed version 1.4 of the plugin which outputs that error ino this case.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Gagtech
Regular
Posts: 8
Joined: Thu Oct 27, 2005 2:04 am
Contact:

Post by Gagtech »

mmm, my host must have noticed some errors coming from my site last night, because last night I went to bed and it wasn't working, and I woke up this morning and checked my site, and it was working... heh
Gagtech
Regular
Posts: 8
Joined: Thu Oct 27, 2005 2:04 am
Contact:

Post by Gagtech »

Actually, it only seems to work in IE. Does not seem to work in Firefox...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

That is strange. What's your URL? It must be a CSS issue.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Gagtech
Regular
Posts: 8
Joined: Thu Oct 27, 2005 2:04 am
Contact:

Post by Gagtech »

Well, its been functioning the last couple days, and I havent changed anything since I installed it, and it wasn't working initially. I guess my webhost noticed the error messages or whatever it was generating and fixed it on the back end.

http://www.fileshed.net
Post Reply