Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: PJLawrence on December 31, 2008, 08:06:29 AM

Title: Flickr Gallery Browser
Post by: PJLawrence on December 31, 2008, 08:06:29 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1564)

*******************************
Flickr Gallery Browser Mod Version 0.3
*******************************

This mod allows you to browse public sets of a Flickr Gallery as part of your SMF forum.

Note before using this mod you'll need to obtain a Flickr API key from http://www.flickr.com/services/api/key.gne

When installed this mod places a Flickr Gallery menu item on the default forum theme.
Before you can view your selected Flickr Sets you need to go the Flickr Galley Browser admin settings which can be found...
In SMF  1.1 admin options are found in the Features and Settings admin page under "Layout and Options".
In SMF 2.0 admin options are found under Miscellaneous in Configuration, Modifications of your admin panel.

Once in the admin settings enter your Flickr API Key and user name in the relevant text boxes. Make sure that there is no spaces after the username or API Key when entering them into the relevant text boxes.

Other admin options include...
1) An optional default "Set". Leave blank if you wish, by default, to list the public sets.
2) The ability to restrict this gallery browser to display just the default "set".
3) Control over the number of images to display per a row.
4) The option to enable either database or file caching.

For more information about Flickr, check out www.flickr.com.

The Flirkr Gallery Browser should work with any theme.
However, if you're not using the default theme under SMF1 you may need to add a 'Flickr Gallery' button, index.php?action=flickrgallerybrowser, to your theme.

Disclaimer: This mod is provided "as is" without express or implied warranty.

Credits...

Changelog...
   0.1 - 14th Novement, 2008 (First release)
   0.2 - 21st Novement, 2008 (File cache option added)
   0.3 - 9th December, 2008 (Database caching option added)
   
SMF Versions: 1.1.6, 1.1.7 and 2.0 Beta 4
Title: Re: Flickr Gallery Browser
Post by: Sabreā„¢ on January 02, 2009, 05:39:03 PM
Thanks for another great mod mate :)
Would having the settings for a user to display their Flickr images in their profile, be a big job?
I was looking into options such as the gallery mod etc, and figured if the admin can do this(with this mod) why shouldnt I let users do the same in their own profile.
Having as many images for as many users from their flickr, picasa, image shack etc folders, would be pretty good. With a dropdown to select which album to view of course. It also saves them reuploading to your server if they already have it at one of the others.  Convenient.
But, I cannot even comprehend the complexity if any of such a task, and Im merely throwing an idea out there.

Cheers mate, always enjoy your additions

regards
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on January 03, 2009, 03:00:41 PM
This was something I was thinking about doing, but I'm not sure when I'll get around to it since I don't currently require this feature for my forum. You can add a flickr/picasa link to a person's profile via the Custom Profile Field Mod (http://custom.simplemachines.org/mods/index.php?mod=319). Hence if you can add a link to a person's profile you should be able to display the contents or recently uploaded images of their flickr/picasa account as well.
Title: Re: Flickr Gallery Browser
Post by: jbernabe on January 28, 2009, 10:32:08 AM
Hi

excellent job!

but... one question... How I can use this mod for a group? Thanks
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on January 28, 2009, 12:33:05 PM
Sorry this mod does not currently support Flickr groups.
However, groups are supported by phpFlickr so in theory this mod could be extended include this functionality.
Possibly something I could add for the next release.

However, if you know a bit of PHP you can do it yourself by modifying the function  getFlickrPhotos, in flickrgallerybrowser.php, to use the groups_pools_getPhotos phpFlickr function rather than photosets_getPhotos. Also replace photosets_getInfo with groups_getInfo. Plus other code changes to pass and handle the group ID instead of a set ID.
Title: Re: Flickr Gallery Browser
Post by: jbernabe on January 28, 2009, 04:34:09 PM
thanks lawrence...

Im not very good with PHP... but I trying...

Can anyone help me with this problem? thanks
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on January 29, 2009, 06:01:15 AM
If you are looking for help in developing a new or modifying an existing mod then you can always ask in either the SMF Coding Discussion or Mod Requests boards.
I can even provide input on how to write the php function which gets the group photos from flickr. It's just that I can't see me being able to get time to develop this mod further in the next 6 months or so due to work commitments.
I find it quite easy/quick to develop new code. The problem is checking it, testing it and then doing all the other work with is required to turn it into a mod which is ready for release to the general public.

If someone wants to take one of my mods and change it and then upload it to the smf mod site that's ok with me.
Title: Re: Flickr Gallery Browser
Post by: jbernabe on January 29, 2009, 06:05:49 AM
thanks lawrence, i will to try it.
Title: Re: Flickr Gallery Browser
Post by: smldmr on February 23, 2009, 10:04:35 AM
Hello, this mod is very interessting. I would like to use it but i get this error, if i clck on the "Flickr Gallery" link.

"Fatal error: require_once() [function.require]: Failed opening required 'HTTP/Request.php' (include_path='.:') in ----phpFlickr/phpFlickr.php on line 90"

What is the problem here?

I use smf 2.0 RC1 with standard theme and no other mod is installed (is test forum). I have a Flickr-API key.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 23, 2009, 03:54:58 PM
smldmr, the Request.php file should reside in the following sub-directory Sources\phpFlickr\PEAR\HTTP of your smf installation. If it's missing you may need to re-install this mod.
Title: Re: Flickr Gallery Browser
Post by: smldmr on February 25, 2009, 12:11:04 PM
the file is there, but the mod looks for it in wrong directory (without PEAR). If i edit the phpFlickr so that it find the request.php, then i get one other error (again is some directorys missing).

I will re-install it.
Title: Re: Flickr Gallery Browser
Post by: nodent on March 10, 2009, 11:03:09 AM
How do I increase the image size?

The "Expand to actual size" don't work?

Also if the ablum has to many pictures in it, it hangs.

Thank you
Title: Re: Flickr Gallery Browser
Post by: chrishicks on March 10, 2009, 04:27:32 PM
I installed this on my test board and it installed just fine with no errors. I setup my API key/user ID in the settings but when I go to the flickr gallery it just says "no sets found". I'm sure it's something simple that I'm overlooking so can someone share what I'm missing to get this working?
Title: Re: Flickr Gallery Browser
Post by: Hiver101 on March 12, 2009, 09:13:19 AM
Quote from: chrishicks on March 10, 2009, 04:27:32 PM
I installed this on my test board and it installed just fine with no errors. I setup my API key/user ID in the settings but when I go to the flickr gallery it just says "no sets found". I'm sure it's something simple that I'm overlooking so can someone share what I'm missing to get this working?

i'm getting the same message.

i already have the key, what else should i set? i don't know what should i put in "Default Flickr Set Only" and "Default Flickr Set"

please help
Title: Re: Flickr Gallery Browser
Post by: 3wasef on March 16, 2009, 08:20:20 PM
I am getting this:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of getFlickrPhotos(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in \forum\Sources\flickrgallerybrowser.php on line 329

at top of the forum page!!! ???

any help please

note: I am using SMF 1.1.8
Title: Re: Flickr Gallery Browser
Post by: lextalionis on March 31, 2009, 06:55:30 PM
Quote from: nodent on March 10, 2009, 11:03:09 AM
How do I increase the image size?

The "Expand to actual size" don't work?

Also if the ablum has to many pictures in it, it hangs.

Thank you

This happens to me too...otherwise nice mod!

-Roy
Title: Re: Flickr Gallery Browser
Post by: spiffypix on April 01, 2009, 02:30:52 AM
I'm getting the same message as well.  Do I put a link in the set box or just the name?

help!
Title: Re: Flickr Gallery Browser
Post by: DareDevil1990 on June 01, 2009, 02:12:43 AM
can i also add multiple account? because one account can hold only 100MB of pcitures unless u upgrade it to pro :D

and when i click on any photo in gallery
this is the max size i get
http://i44.tinypic.com/34shxlj.jpg

how do we make it full size.
Title: Re: Flickr Gallery Browser
Post by: metzbgsu on June 23, 2009, 09:32:51 PM
I had to parse this mod as I'm getting some other errors while trying to install any mods via SMF.  I followed everything and double checked it all, but flickrgalleryinstall.php won't run.  The page just comes up blank when I get there.  Any advice for this?
Title: Re: Flickr Gallery Browser
Post by: metzbgsu on June 29, 2009, 09:42:26 AM
I guess I could explain what my problem is better.  After I parsed the mod, I have no options in the admin panel to enter anything.  I obtained the API key and am ready for the next step after that, but I don't know what to do next.  I tried running the flickrgalleryinstall.php directly thinking that is the next step, but it just comes up as a blank page.

Any help with this would be great!  Thanks!
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on July 01, 2009, 09:34:31 AM
Metzbgus, which version of SMF are you using?

DareDevil 1990 this mod does not support multiple accounts. However, someone else has modified my Picasa Gallery mod to handle multiple accounts by making copies of the template and php files and carrying out manual changes to the php code.
See http://www.simplemachines.org/community/index.php?topic=279640.msg2137285#msg2137285
So if you know a bit of php it should be possible.


3wasef   do you know which version of PHP your system is running?

Title: Re: Flickr Gallery Browser
Post by: metzbgsu on July 06, 2009, 02:54:10 PM
Quote from: PJLawrence on July 01, 2009, 09:34:31 AM
Metzbgus, which version of SMF are you using?

I'm using 1.1.9
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on July 10, 2009, 02:05:00 PM
Metzbus,
When you install the mod does it say that it has been installed successfully?

If it has you should have some options in the admin section of you forum, in "Layout and Options" found under the "Features and Settings" section.

Note that if you're not using the default theme under SMF1.1.9 you may need to add a 'Flickr Gallery' button, index.php?action=flickrgallerybrowser, to your theme.
Title: Re: Flickr Gallery Browser
Post by: ryanhellyer on July 12, 2009, 03:45:07 AM
Trying to get this working, but not having much luck. Seemed to install easy enough. I've entered my Flickr API Key and Flickr Account ID and a set, but it always says 'No Sets Found.'.

Is it possible that this MOD can only display images from your own stream? In which case I don't have one, which would explain the problem.

If this isn't possible with the current setup, would it be difficult to modify it to allow this?

EDIT: Here's a link to the problem in action ... http://slapshot.net.nz/index.php?action=flickrgallerybrowser
Title: Re: Flickr Gallery Browser
Post by: ryanhellyer on July 12, 2009, 03:54:21 AM
Ah, now it's working. I added some photos to my FlickR account, which didn't help. Then I created a set and specified that, which didn't help. Then I created a pretty permalink for my FlickR account and used the name from that in my account ID and then it started working :)
Title: Re: Flickr Gallery Browser
Post by: metzbgsu on July 23, 2009, 11:18:53 AM
Quote from: PJLawrence on July 10, 2009, 02:05:00 PM
Metzbus,
When you install the mod does it say that it has been installed successfully?

If it has you should have some options in the admin section of you forum, in "Layout and Options" found under the "Features and Settings" section.

Note that if you're not using the default theme under SMF1.1.9 you may need to add a 'Flickr Gallery' button, index.php?action=flickrgallerybrowser, to your theme.


I'd never done the parse thing before, but my server won't let me install it like other add-ons.  So I did the manual install, got my API code, and now what do I do?  I ran the galleryinstall.php and the page is blank.  Nothing in my admin options yet so I'm rather confused.  I double checked and I did all the files right and reuploaded them, still nothing.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on July 23, 2009, 11:29:38 AM
metzbgsu,

If you've manually installed the mod then you don't need to run galleryinstall.php.
I assume when you say you've installed the mod manually you've made the relevant changes to the correct PHP files and copied the folders required over to your source and theme directories.
If you've correctly install the mod then you should have some admin options relating to the flickr gallery browser in the Features and Settings admin page under "Layout and Options".

Running galleryinstall.php will not display anything because it simply sets up some database options within your SMF forum.
Title: Re: Flickr Gallery Browser
Post by: Mick. on August 02, 2009, 04:50:35 PM
is it me or this is confusing.

I got the API key, i created a set that includes 2 images.

...yet,in the gallery shows: "No Photos Found"

::)
Title: Re: Flickr Gallery Browser
Post by: Mick. on August 02, 2009, 04:54:30 PM
Nevermind,....i figured it out.     I was adding a set link instead of leaving it blank.
Title: Re: Flickr Gallery Browser
Post by: Mick. on August 02, 2009, 05:48:41 PM
Here's mine.  Not much but working on it.

http://www.chevyavalancheclub.com/index.php?action=flickrgallerybrowser

I also added a small Flickr logo in the template.php


In  /Themes/default/flickrgallerybrowser.template.php

Find:
$HighSlideWebPath=$settings['default_theme_url'].'/flickrhighslide';       // Web path to Highslide java code

Add After:
echo '
<center><img src="URL OF YOUR IMAGE GOES HERE" /></center>';


Replace:  URL OF YOUR IMAGE GOES HERE with the link of your image.
Title: Re: Flickr Gallery Browser
Post by: lextalionis on August 13, 2009, 09:35:00 AM
which permission setting would allow guests to see my flickr gallery on my smf forum?

Thanks
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on August 13, 2009, 11:10:58 AM
The flickr gallery can only be public. So your gallery should be visible by guests.
Title: Re: Flickr Gallery Browser
Post by: lextalionis on August 17, 2009, 08:52:11 AM
Doesn't seem to be the case with me using Tiny Portal:  http://scoutpack562.org/index.php  Clicking Pack 562 Photos in the menu doesn't resolve flickr browser unless you are logged in.

Thanks
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on August 17, 2009, 09:00:15 AM
Do you have the option for guests to brows your forum enabled?
If not this could be the problem.
Title: Re: Flickr Gallery Browser
Post by: Jojie on November 29, 2009, 04:50:38 AM
anyway to make it so that no user ID is inputted?

i meant.. that search by tag?

i'm after the a specific tag not user u see.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on December 08, 2009, 11:05:01 AM
joje. I think what you're proposing is a different mod altogether. Is what you require simply a list of photos from the flickr website that match a certain search tag?
Title: Re: Flickr Gallery Browser
Post by: haito on December 14, 2009, 11:48:42 PM
can it be installed for 1.1.11?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on December 15, 2009, 05:01:06 AM
Yes it should work for 1.1.11.
Title: Re: Flickr Gallery Browser
Post by: haito on December 15, 2009, 07:09:44 AM
work perfectly~
great mod!

thanks ^^
Title: Re: Flickr Gallery Browser
Post by: lextalionis on December 19, 2009, 09:42:05 AM
Okay I'm using this for our cubscout pack smf site and it works great because I created a set on my flickr account and dumped scouting photos there.

Now for my photography forum I would like to use this to display a public group on flickr since I'm the creator/admin of the group which is tied the the smf community.

This is the group:  http://www.flickr.com/groups/motleypixel/

This is my photography forum where I'm trying to add the group instead of one of my sets:  http://www.motleypixel.com/forum/index.php/action,flickrgallerybrowser.html

Seems that some flickrgallerybrowesr.php code would have to be update correct?

Thanks,
Roy
Title: Re: Flickr Gallery Browser
Post by: Mick. on December 23, 2009, 02:47:47 PM
Hey PJ,  will this be available for rc2?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on December 24, 2009, 04:26:54 PM
It's something I plan to look into next year.
If you know a little PHP you should be able to get it to install under RC2 yourself.
I don't think much has changed regarding mods from RC1 to RC2.
Title: Re: Flickr Gallery Browser
Post by: Mick. on December 25, 2009, 09:45:12 AM
I had this mod when i was using smf 1.1.

Pretty much everything was still intact even after i upgraded to RC2.   Only 3 files needs to be edited manually,

./index.php
./Themes/default/index.template.php
./Themes/default/languages/Modifications.english.php

One file in particular i cant find this code for the admin area,

./Themes/default/index.template.php

Find:
$current_action = 'admin';
if (in_array($context['current_action'], array(


Add After:
'flickrgallerybrowser',

It works fine just dont have the admin access.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on December 26, 2009, 04:47:00 PM
OK I've updated this mod for SMF 2.0 RC 2, see version 0.4
Title: Re: Flickr Gallery Browser
Post by: Mick. on December 26, 2009, 05:10:23 PM
Thanx, you rock dude!
Title: Re: Flickr Gallery Browser
Post by: clothahump on February 18, 2010, 09:44:50 AM
Any way to make this work with Groups instead of a personal gallery?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 18, 2010, 10:10:37 AM
Sorry currently no, that's unless you want to modify the mod yourself.
Instructions for displaying groups can be found on the phpflickr site.
see http://phpflickr.com/examples/a-users-groups/
Title: Re: Flickr Gallery Browser
Post by: clothahump on February 18, 2010, 10:57:33 AM
Thanks, will probably leave it well alone then, not very good with messing with code.
Title: Re: Flickr Gallery Browser
Post by: aw06 on March 29, 2010, 12:09:00 PM
this coming to rc3 anytime soon ?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on March 29, 2010, 12:57:16 PM
In theory it should already work with RC 3.
I've just not had the time to check this. It's something on my to list.
If you got your own test installation of RC 3 by all means try and install this mod and let me know.
Title: Re: Flickr Gallery Browser
Post by: aw06 on March 29, 2010, 12:59:20 PM
Ok kool, i just see where it does not support groups, i needed that most..
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on October 25, 2010, 11:52:38 AM
I've had a number of requests asking me whether this mod would support groups.
Since it's something I'll not be using myself it would be difficult for me to support.
However, a discussion has opened up on another thread discussing how to modify this mod to support this feature.
If this might be of interest to you please see /community/index.php?topic=405892.0 (http://www.simplemachines.org/community/index.php?topic=405892.0)
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 08, 2011, 02:02:41 AM
I just installed this as I saw that the ability to view groups had been added. However all I get is "no groups found" when I try to use this mod.

question - in the mod settings what is used for the default flickr set/group? is this the name of the group? the http of the pool? I'm not finding good instructions for this.

thanks
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 10, 2011, 01:40:50 PM
For Sets it is the set ID, which is a long number which looks like this 72157623403236797.
However, in your case, it is reporting "no groups found" therefore the mod cannot find any sets for the account specified.
Hence, maybe check your flickr account to see if any sets have be setup correctly.

Title: Re: Flickr Gallery Browser
Post by: lakelady on May 10, 2011, 10:54:52 PM
ok this is confusing - Sets are not available in flickr groups, only a group pool of photos
so there must be another setting I'm missing or have wrong
or the group option isn't working right
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 11, 2011, 12:15:15 PM
Note this mod only allows the access to sets or groups associated with a user (flickr account).
Are you trying to access a group without provide a flickr account?
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 11, 2011, 09:00:41 PM
yes I have provided it with a flickr account and the appropriate (I think) account ID. In fact I created a new flickr account specifically for this purpose. This account is the admin of the flickr group and I populated the group pool with a few photos from my previously existing private account as a test so the group pool wouldn't be empty. Still no luck. Next question?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 12, 2011, 05:13:43 AM
Sometimes a service provider will block the ability of a php application to open sockets to outside servers.
In the home admin screen of your smf form does the  live news feed work.
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 12, 2011, 12:10:38 PM
yes (though nothing new is there since Feb) - next question?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 13, 2011, 04:56:11 PM
What happens when you try this id defekto with the sets options?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 13, 2011, 06:53:19 PM
Just been checking the code out and yes there does seem to be a problem with the group functionality.
Attached is (I hope) a fixed version. Simply un-install version 0.6 and install this version 0.7

26th May attachment removed since 0.7 can now be downloaded from the main flickr mod page.
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 13, 2011, 08:49:21 PM
hrm still not working

a question about the settings - should the flicker account ID be the name on the account or the number, and if the number should it include the @xx ?  Same question for the default flickr set/group.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 14, 2011, 05:02:39 AM
The account ID is the name of the account.
The group id is the number which is associated with the group i.e. 1 for their first group 2 for their second and so on.
The set id is the name or id of the the set.
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 14, 2011, 12:26:22 PM
I'm wondering if there's something wrong with my API key. I've entered the key correctly, but have done nothing with the secret. Should I be using that as well and if so how?

re: group ID - this account only has one group associated with it, the one I created to use with this mod. I've tried using 1, leaving blank, and entering a longer number found in the group pool url both with and without the @xx after the longer number.

still stumped.

thanks for helping and answering my questions. Fingers crossed we can get this working.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 15, 2011, 02:41:59 PM
You can check if you have the correct account ID by going to the phpflickr website and enter your ID into this webs page and it should display the ID groups, see http://phpflickr.com/examples/a-users-groups/
As for your API key you can check this by logging into your flickr account.
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 15, 2011, 03:07:59 PM
hrm - I enter my personal account name and one of my groups appear - but not the one created for my forum. I enter my forum flickr account name and I get nothing. Sooo, seems something is amiss with the group on the flickr end.

Question - I've been using my google ID as the login for the problem account, not a yahoo ID - could this be a problem?
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 16, 2011, 09:42:41 AM
The Account ID is your screen name, this is the name flickr displays when you login.
Look for the words "sign in as" in the top right hand of the web page when you next log into flickr.
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 16, 2011, 01:40:55 PM
that's what I thought and it's what I've been using - still not working :-(
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 16, 2011, 03:42:12 PM
Even when used with the phpFlickr web page?
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 16, 2011, 04:39:02 PM
yes - when I entered the username on the phpflickr page I got nothing. This group also does not show up when I try with my personal account (which is a member of this group), but other groups do.

here's something that may help - the group is set to public, invitation only. Does it need to be completely open? I hope not because then there'd be no control over what gets posted to it. Non-members can see photos and discussion. Only joining the group is by invitation only.

Title: Re: Flickr Gallery Browser
Post by: PJLawrence on May 24, 2011, 06:48:56 AM
Just letting you know I'm still researching this...
However when I search the flickr site for the info on the function "flickr.people.getPublicGroups" and  "invitation only groups"
I found the following info..
If you belong to a public group that asked you for a permission to join in, that group will not appear on profile group list, you can see that but not others.
Hence this seems to be a known problem, which I not currently sure of a solution for yet.
Title: Re: Flickr Gallery Browser
Post by: lakelady on May 25, 2011, 10:41:56 PM
thanks for the update. Odd that this is happening even though I am the administrator of the group. Fingers crossed that you can find a solution.
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 06, 2013, 04:47:23 AM
Is this app no longer supported? 

It doesn't seem to work with the latest version of SMF.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 06, 2013, 06:05:32 AM
I believe this app is kind of fading away since there is a number of alternative methods of including flicker related images.
Are you having problems with 2.04? Since in theory it should still work. What error messages are you getting?
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 06, 2013, 06:29:55 AM
Now getting the following text display above certain admin pages-  have uninstalled the mod, but this makes no difference: 

// PJL : Start of Flickr Gallery Mod. $helptxt['gallery_flickr_API_Key'] = 'Enter your Flickr web API Key
'; $helptxt['gallery_flickr_account'] = 'Enter your Flickr User ID
This is your Flickr user account name.
'; $helptxt['gallery_flickr_mode'] = 'Enter whether you want to display flickr groups or sets.
'; $helptxt['gallery_flickr_fixed_setgroup'] = 'Only allows the viewing of the default set/group'; $helptxt['gallery_flickr_default_setgroup'] = 'The default set/group to display.
If not set displays all the user\'s public sets.'; $helptxt['gallery_flickr_columns'] = 'Enter the number of columns to use in the Flickr Gallery table.
'; $helptxt['gallery_flickr_rows'] = 'Enter the number of rows to use in the Flickr Gallery table.
'; $helptxt['gallery_flickr_enable_db_catch']= 'To enable database caching, check this option.
Caching can be very important to a project. Just a few calls to the Flickr API can take long enough to bore your average web user (depending on the calls you are making).
Database caching will probably be faster than file caching.
Supports all SMF databases types MySQL,PostgreSQL and SQLite, plus many more!
Note that if both database and file caching are both enabled then database caching will take priority.'; $helptxt['gallery_flickr_enable_file_catch']= 'To enable file caching, check this option.
Caching can be very important to a project. Just a few calls to the Flickr API can take long enough to bore your average web user (depending on the calls you are making).
Filesystem caching will probably be slower than database caching.
Note that if both database and file caching are both enabled then database caching will take priority.'; $helptxt['gallery_flickr_cache_folder'] = 'If you enable file caching, you\'ll need to supply a folder where the web server has write access.
Note the default folder specified here will probably work.
You may not want to allow the world to view the files that are created during caching. If you want to hide this information, either make sure that your permissions are set correctly, or disable the webserver from displaying *.cache files. In Apache, you can specify this in the configuration files or in an .htaccess file with the following directives:
<FilesMatch "\.cache$">
Deny from all
</FilesMatch>

Alternatively, you can specify a directory that is outside of the web server\'s document root. '; // End Mod.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 06, 2013, 06:56:32 AM
Hi, This seems to be a problem with the Help.english.php  file(or Help.english-utf8.php etc depending on system), which is located in Themes\default\languages
Does uninstalling the app solve the problem?
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 06, 2013, 08:31:42 AM
Hi there,

No the problems remains even after uninstalling the app.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 06, 2013, 08:43:14 AM
Hi, Could you take a look at your Help.english.php (or Help.english-utf8.php etc depending on system) and see if there is ?> at the end of the file. If is not there maybe move the ?> to the end of the file or post a "snip-it" of the last few lines of the file on this forum for me to see.
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 06, 2013, 08:56:52 AM
Please can you advise me on where to find this.  Cheers.
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 06, 2013, 11:39:53 AM
Hi, The file is found in folder Themes\default\languages below where you've installed smf forum.
One common problem with mods is the result of a conflict with an installation processes.

Without any modes install the tail end of this files looks something like this

               ^ - Start of string.<br />
$ - End of string.<br />
\ - Escapes the next character.<br />
</div><br /><br />
More information and advanced techniques may be found on the internet.';

?>


However in yours you seem to have the following extra data..


<FilesMatch "\.cache$">
Deny from all
</FilesMatch>


which looks like it has been added by another mod, which could be confusing the installation of this mod.
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 07, 2013, 02:55:33 AM
Ok, thanks, so how should I go about fixing it? 
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 07, 2013, 04:56:05 AM
It's a tricky one. If you know which mod installed these last few lines. You could try un-installing that mod, then installing the Flickr mod and then re-installing the mod you previously un-installed.
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 07, 2013, 07:22:07 AM
Have no idea at all! 
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 07, 2013, 07:31:16 AM
Maybe post a list of installed mods and we might be able to work it out.
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 07, 2013, 11:08:23 AM
ok-  will post the list in a mo-  do not know if it is any use, but I got the following errors displayed when I installed and then tried to uninstall the mod: 

1.   Execute Modification   ./index.php   Test successful
   2.   Execute Modification   ./Sources/Subs.php   Test failed
   1.   Replace   ./Sources/Subs.php   Test failed
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 07, 2013, 11:09:32 AM
My mods: 

1.   Google Translate for SMF 2.0   1.4   [ Uninstall ]
2.   SMFPacks Likes Lite Mod   1.0-2   [ Uninstall ]
3.   PM Auto Responder Lite   1.0   [ Uninstall ]
4.   Board Icons   1.0   [ Uninstall ]
5.   Tapatalk SMF 2.0 RC5/Final Plugin   3.4.0   [ Uninstall ]
6.   SimpleDesk - Integrated Helpdesk for Simple Machines Forum   2.0   [ Uninstall ]
7.   ENotify   2.0.2   [ Uninstall ]
8.   Stop Spammer   2.3.9   [ Uninstall ]
9.   Smart Pagination   0.8.2   [ Uninstall ]
10.   SMF 2.0.4 Update   1.0   [ Uninstall ]
11.   Treasury   2.11   [ Uninstall ]
12.   SMF Links   2.5.3   [ Uninstall ]
13.   Quick Reply on Top   1.1   [ Uninstall ]
14.   BK-SMF Sub-Board   1.5   [ Uninstall ]
15.   Move recent to the top   2.7   [ Uninstall ]
16.   Ad Managment   3.0.1   [ Uninstall ]
17.   SMF Gallery Lite   3.1.4   [ Uninstall ]
18.   Optimus Brave   1.8.5   [ Uninstall ]
19.   SA Facebook   2.0.2   [ Uninstall ]
20.   New Topic Button on Board Index   1.51   [ Uninstall ]
21.   Add Facebook Like to Posts   1.1   [ Uninstall ]
22.   Contact Page   3.0   [ Uninstall ]
23.   Social Buttons   2.0   [ Uninstall ]
24.   Admin Ban Button in Post   3.0   [ Uninstall ]
25.   Add IP2Location to Track IP   1.3   [ Uninstall ]
26.   Online status on login   1.7
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 07, 2013, 12:35:13 PM
Looking at the errors..
Execute Modification   ./index.php   Test successful
Execute Modification   ./Sources/Subs.php   Test failed
It looks like the problem is more than just the Help.english.php

So I'm not sure we are going to fix this issue easily.
However, if you have time I'm still interested in seeing the tail section of the Help.english.php file found in Themes\default\languages folder, since it may help but I can't guarantee anything.


Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 07, 2013, 01:19:21 PM
Is this what you are after? 

The menu options you refer to do not exist in what I am looking at. 

<?php

$txt['blu_twitter'] = 'Twitter link';
$txt['blu_twitter_desc'] = 'Enter your Twitter address to enable Twitter link in the header area. Leave blank if you do not want Twitter icon to appear.';
$txt['blu_twitter_alt'] = 'Visit our Twitter page';

$txt['blu_fb'] = 'Facebook link';
$txt['blu_fb_desc'] = 'Enter your Facebook user/fanpage address to enable Facebook link in the header area. Leave blank if you do not want Facebook icon to appear.';
$txt['blu_fb_alt'] = 'Visit our Facebook page';

$txt['blu_rss'] = 'Custom RSS handler';
$txt['blu_rss_desc'] = 'Change if you are using custom RSS handler (i.e. Feedburner). Leave empty to link to default RSS.';
$txt['blu_rss_alt'] = 'View RSS feed';


?>

Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 07, 2013, 01:37:37 PM
Need to get this problem sorted rapidly- 

I am getting reports that users of the forum can now see it when for example they click on the help user mark next to things, such as Username in Registration. 
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 08, 2013, 05:03:41 AM
Hi, Which file is this? Please note that the file I'm referring to is the Help.english.php since it could be a missing quote or something in that file resulting in the problem.
Do you have this problem even when this mod is not installed?
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 08, 2013, 11:12:21 AM
Problem fixed- 

Was an issue with >? in the language files.  Deleting and then re inputting sorted the problem. 

Cheers. 
Title: Re: Flickr Gallery Browser
Post by: markeefarmer on February 08, 2013, 11:12:56 AM
Shame that I cannot get the mod to work  :(
Title: Re: Flickr Gallery Browser
Post by: PJLawrence on February 08, 2013, 01:33:06 PM
The Flickr site provides many means of including images in websites, which I think is the reason why this mod is little used.
Most users find that there's lots of example html/php code which can be used to incorporate flickr albums in their forum via one of the portal systems.  In the past I've given some examples..
http://www.simplemachines.org/community/index.php?topic=274558.msg1814677#msg1814677

Also there are html generators, for example this slide show one..
http://www.flickrslideshow.com/