News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Picasa Gallery Browser

Started by PJLawrence, December 10, 2008, 01:58:02 PM

Previous topic - Next topic

b4pjoe

Is this mod going to be updated for SMF 2.0 RC2?

PJLawrence

Yes it's something I'll be looking into.
However very busy at the moment so wont be done soon. Sorry.

PJLawrence

Update to SMF2.0 RC 2, see version 0.5

T-Mart

Dear Forum users,

I have recently set up my SMF forum (I'm running SMF 2.0 RC2) and am very pleased so far.

I have installed several mods, including the Picasa Gallery Browser. However, I cannot get it to display any images. It just says "no albums found". I cannot figure it out, have tried every setting I can think of. I have multiple picasa accounts, all with public albums, but none of them work.

I have another issue which might be related: in the home admin screen, I can never connect live to smf for news, etc. Could it be my (hosted) server can't make outgoing connections?

Please help!

PJLawrence

#44
T-Mart,

This mod uses the php command fsockopen.
This function is sometimes blocked by service providers so you may need to check this.

As for the connect live to smf for news not working maybe try this mod..
http://custom.simplemachines.org/mods/index.php?mod=1569
Regards

T-Mart

Hi PJLawrence,

Thanks for the quick reply. It seems you're spot on with the fsockopen command. My hosting provider does not allow it. Is there anyway you know to bypass this problem? I'm willing to mod, but switching to another provider is a bridge too far.

Thanks,

T

PJLawrence

Not easily. Does the cURL mod fix the smf news problem? If it does you could modify this mod to use the cURL function instead. However, if you talk to your service provider they may enable fsockopen.

I chose to use fsockopen in this mod since that's what SMF currently uses.

Anpu

Hi, I must say your mod is excellent. I ve been using it for some time already!
Yesterday, we moved to a new server, and your mod started to fill out Forum Error Log with following:
8192: Function split() is deprecated
SOME-SERVER-PATH/Sources/rss-functions-mod.php
Line: 173

It seems that function is dropped in recent PHP release, if I understood good. Is there a way to fix it?
Gallery still works, but it makes every day 94 pages in error log, which is a little problem and time consuming when you need to check whole log and see if any other error on forum appeared.

PJLawrence

You could either change this function to use the preg_split function instead, or you could place an @ symbol before the function, on line 173, to suppress errors.
i.e. change line 173 to
list($ns, $el) = @split( ':', $element, 2);
or change it to
list($ns, $el) = preg_split( ':', $element, 2);

Note I've not tested the above so let me know how you get on.

When I update this mod I will probably change the split function to preg_split, which hopefully should be straight forward  change.

Anpu

Thanks, I used first option (@) to mute errors.
I tried first your second suggestion as it looked like long term solution, and I thought it worked for a second. But then I visited gallery and then checked error log to find out 53 pages generated during my use of gallery. Error was this time pointed on file picasagallerybrowser.php, line 101.

For now this first option will do the trick. ;)

I am looking forward to new version of this great mod of yours.
Keep up the good work!

PJLawrence

What was the error at line  101 on the file picasagallerybrowser.php
Thanks

Anpu

I just tried it today and here is a result:
first, all pictures are "broken", means they cannot be viewed. 165 pages of errors generated during my 10 second visit to Gallery.
About error log, it generated many errors, I ll try to pick all without repeating:
2: preg_split(): No ending delimiter ':' found
File: SERVER-PATH/Sources/rss-functions-mod.php
Line: 173

8: Undefined index: media
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 44

8: Undefined index: media
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 103

8: Undefined index: media
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 102

8: Undefined index: media
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 101

8: Undefined index: gphoto
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 92

8: Undefined index: gphoto
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 89

8: Undefined index: gphoto
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 88

8: Undefined index: gphoto
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 87

8: Undefined index: gphoto
File: SERVER-PATH/Sources/picasagallerybrowser.php
Line: 85

PJLawrence

Thanks for the feedback.
So it seems like preg_split is not a straightforward replacement for the old php function split.
I think I need to do some more research.

PJLawrence

ok this seems to work with preg_split
list($ns, $el) = preg_split( '/:/', $element, 2);
Note the / / around the colon.

Anpu

Yup, that solved the problem.
Gallery works normally, no errors reported in log and function is supported by the latest PHP which makes this "fix" useful in long term.

Thank a lot for help!

Anpu

Hi, do you plan making it for RC 5?

PJLawrence

Yes will be looking into checking this mod under RC5 as soon as time permits.
However, I feel it should work without modification.

hellbent64


snooks

Quote from: T-Mart on March 03, 2010, 06:47:11 AM


I have installed several mods, including the Picasa Gallery Browser. However, I cannot get it to display any images. It just says "no albums found". I cannot figure it out, have tried every setting I can think of. I have multiple picasa accounts, all with public albums, but none of them work.


Please help!

Hi,
I am kinda in the same boat as this poster, i have created a picasa account and added some images and a public album too but cannot for the life in me get any albums or images to show on my SMF2 forum
I have checked with my host for
QuoteThis mod uses the php command fsockopen.
This function is sometimes blocked by service providers so you may need to check this.
and its enabled by default on all servers so thats not my problem

I am not quit sure how to get images to show...
In the Enter Picasa Server URL do i add https://picasaweb.google.com or do i add the link with all the numbers after google.com/ ?
also the Enter Picasa Account ID i presume is the user name of the account ?

Please help i would love this to work

thank you

PJLawrence

In the home admin screen of your smf form does the  live news feed work.
If that works then check your error logs, for example see  Reply #51 on: April 16, 2010, 11:28:26 AM of this thread.

Advertisement: