We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Add-on: Flickr for EE

Development and Programming

Sue Crocker's avatar
Sue Crocker
26,054 posts
15 years ago
Sue Crocker's avatar Sue Crocker

Sounds good to me! I’m also on EH with the same issue Lisa has.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Lisa and Sue, try this updated version - http://digitalwaxworks.com/expressionengine-2/flickr/DigitalWaxWorks_flickr-2.0.1.zip. It should address the issue of that missing class.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

I removed authentication from Flickr and clicked again to activate. Got:

Parse error: syntax error, unexpected T_REQUIRE_ONCE, expecting T_FUNCTION in /www/username/system/expressionengine/third_party/dww_flickr/libraries/HTTP/Request.php on line 124

Something you need to do, or do I need to recreate the app in Flickr or something?

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Nope, thats on my end. My ‘fix’ caused more problems it looks like. Easiest way to tackle it is to have you just edit that file instead of zip a new one and make you re-install.

Can you open up that file in question and change line 124 to:

require_once('Net/URL.php');

Thanks for the help in debugging this, much appreciated!

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

It’s nice to be on the receiving end of tech support occasionally. 😉

Still get the same error even with that code.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Ok, I’ve cleaned up the libraries a bit so hopefully this will work - http://digitalwaxworks.com/expressionengine-2/flickr/DigitalWaxWorks_flickr-2.0.1.zip

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

Looks like it installed that time. Now to play - thanks bdewoody. =)

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

Alright, I added a tag pair, just a simple test:

{exp:dww_flickr:photostream}
                {flickr_img}
            {/exp:dww_flickr:photostream}

and I get:

A PHP Error was encountered
Severity: Notice

Message: Undefined index: dww_flickr

Filename: dww_flickr/pi.dww_flickr.php

Line Number: 220

A PHP Error was encountered
Severity: Notice

Message: Trying to get property of non-object

Filename: dww_flickr/pi.dww_flickr.php

Line Number: 220
       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Great! Let me know if you have any questions or ideas to make it better.

One big feature I’m planning is a plugin for some of the WYSIWYG editors to pull the Flickr browser into those.

-Brett

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Wow, sorry for all the issues Lisa :( Everything seemed to be working fine on my dev site.

Looks like its not pulling the settings from the Fieldtype correctly. Can you go to the Fieldtype settings page for Flickr and send me a screenshot of the variables? Feel free to PM me the image.

Thanks again for all this help!

-Brett

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Can you add this line to pi.dww_flickr.php at Line 221

print_r($flickr_ft);

So it would appear just after these two lines:

$flickr_ft  = new EE_Fieldtype();
        $flickr_ft = $flickr_ft->EE->config->EE->api_channel_fields->field_types['dww_flickr']->settings;

That’ll spit out the settings from the fieldtype and help us figure out what the problem is. You can PM me the output if you don’t want to share you paths/settings publicly.

Thanks!

-Brett

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

like so?

function _flickr() {
        $flickr_ft  = new EE_Fieldtype();
        $flickr_ft = $flickr_ft->EE->config->EE->api_channel_fields->field_types['dww_flickr']->settings;
        print_r($flickr_ft);
        $option_api = $flickr_ft['option_api'];
        $option_secret = $flickr_ft['option_secret'];
        $option_auth = $flickr_ft['option_auth'];

Because this didn’t make anything more show up on the page than what i sent in the screenshot.

       
aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash

I’m trying to install the EE 2.0 version and after I click “click to activate”, I get this:

Notice: Use of undefined constant BASEPATH - assumed 'BASEPATH' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90

Notice: Use of undefined constant APPPATH - assumed 'APPPATH' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90

Notice: Use of undefined constant EXT - assumed 'EXT' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90

Notice: Use of undefined constant EXT - assumed 'EXT' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90

Notice: Use of undefined constant APPPATH - assumed 'APPPATH' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90

Notice: Use of undefined constant EXT - assumed 'EXT' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90

Notice: Use of undefined constant EXT - assumed 'EXT' in /path/to/system/expressionengine/third_party/dww_flickr/libraries/Phpflickr.php on line 90
Unable to locate the specified class: ExceptionsEXT

I’m running EE locally on MAMP, if it makes a difference.

Also, a suggestion: It looks like using the photosets tag pair will display my sets’ cover photos, but the only option is to link them to the set’s Flickr page. It would be great to have the option of clicking through to the set within EE (just like the photostream tag pair).

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody
I’m running EE locally on MAMP, if it makes a difference.

I’m guessing this is because you’re running it on MAMP. It looks like the needed PHP variables aren’t set on your server. Have you had any issues with other add-ons not working on your MAMP install?

Also, a suggestion: It looks like using the photosets tag pair will display my sets’ cover photos, but the only option is to link them to the set’s Flickr page. It would be great to have the option of clicking through to the set within EE (just like the photostream tag pair).

This is scheduled for down the road.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody
like so? Because this didn’t make anything more show up on the page than what i sent in the screenshot.

Yep, you did everything correctly. Weird error, its like your dww_flickr settings aren’t being saved, yet they’re appearing in the Flickr fieldtype settings.

I may need to find a better way to access the settings.

Try this - go add a Flickr fieldtype to one of your field groups. I’m guessing that once you do that the plugin tags will work. If so, that’ll confirm that I need to pull the settings a different way.

       
1 2 3 4 5 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.