3 of 9
3
New Add-on: Flickr for EE
Posted: 05 May 2010 08:45 PM   [ Ignore ]   [ # 37 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

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 indexdww_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 
 Signature 
Profile
MSG
 
 
Posted: 05 May 2010 08:49 PM   [ Ignore ]   [ # 38 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

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

Profile
 
 
Posted: 05 May 2010 09:05 PM   [ Ignore ]   [ # 39 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

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

Profile
 
 
Posted: 05 May 2010 09:44 PM   [ Ignore ]   [ # 40 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

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

Profile
 
 
Posted: 05 May 2010 10:06 PM   [ Ignore ]   [ # 41 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

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.

 Signature 
Profile
MSG
 
 
Posted: 05 May 2010 10:30 PM   [ Ignore ]   [ # 42 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  391
Joined  02-03-2005

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).

 Signature 

Artificial Memory

Profile
 
 
Posted: 05 May 2010 11:22 PM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006
aircrash - 06 May 2010 02:30 AM

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?

aircrash - 06 May 2010 02:30 AM

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.

Profile
 
 
Posted: 05 May 2010 11:26 PM   [ Ignore ]   [ # 44 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006
Lisa Wess - 06 May 2010 02:06 AM

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.

Profile
 
 
Posted: 05 May 2010 11:32 PM   [ Ignore ]   [ # 45 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  391
Joined  02-03-2005
Brett DeWoody - 06 May 2010 03:22 AM
aircrash - 06 May 2010 02:30 AM

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?

No, this is the first time I’ve been unable to get an add on to work (though I’m only using a few so far).

 Signature 

Artificial Memory

Profile
 
 
Posted: 05 May 2010 11:52 PM   [ Ignore ]   [ # 46 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004
Brett DeWoody - 06 May 2010 03:26 AM
Lisa Wess - 06 May 2010 02:06 AM

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.

After creating a Flickr custom field I still get:

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 

Moreover, the custom field itself doesn’t work, see the attached screencap, and from Safari’s Error Console

Unsafe JavaScript attempt to access frame with URL http://system_directory?S=0&D=cp&C=content_publish&M=entry_form&channel_id=1 from frame with URL http://lisajill.net/dem/thoughts/lost. Domains, protocols and ports must match.
lisajill.net/dem/thoughts/lost:236XML self-closing tag syntax used on [removed].  The tag will be closed by WebKitbut not all browsers do this.  Change to [removed][removed] instead for best cross-browser compatibility.
lisajill.net/dem/thoughts/lost:236Unmatched [removed] encountered.  Ignoring tag.
Profile "Profile 1" started

http://lisajill.net/dem/thoughts/lost

Is my 404 page.  This error, as well as the screencap, happen after I click “choose photo”

 Signature 
Profile
MSG
 
 
Posted: 06 May 2010 02:57 AM   [ Ignore ]   [ # 47 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

I guess my add-on just doesn’t work at all :( Looks like it has some issues in Safari. I’ll hopefully get around to fixing some of these problems tomorrow.

Profile
 
 
Posted: 07 May 2010 07:47 PM   [ Ignore ]   [ # 48 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

Lisa, I’ve released a new version (2.0.2) which will hopefully address some of the issues you’re having. I’ve even tested it on Safari :).

You can download it from the the page on our site (link is in the first post in this thread). 

Let me know how that works and what issues you have.

-Brett

Profile
 
 
Posted: 07 May 2010 08:23 PM   [ Ignore ]   [ # 49 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  391
Joined  02-03-2005

The new version fixed my problem, too. Thanks.

 Signature 

Artificial Memory

Profile
 
 
Posted: 07 May 2010 09:01 PM   [ Ignore ]   [ # 50 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006

Great! Totally unexpected result but glad it fixed your issue.

Profile
 
 
Posted: 07 May 2010 09:03 PM   [ Ignore ]   [ # 51 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  391
Joined  02-03-2005

I spoke too soon. When I use this tag pair: {exp:dww_flickr:photostream}{flickr_img}{/exp:dww_flickr:photostream} I get these errors:

MessageUndefined indexoption_auth
Filename
dww_flickr/pi.dww_flickr.php
Line Number
227

Message
Undefined indexoption_nsid
Filename
dww_flickr/pi.dww_flickr.php
Line Number
34

Message
Cannot modify header information headers already sent by (output started at /path/to/system/core/Exceptions.php:166)
Filenamecore/Common.php
Line Number
428 

And on the publish page I get more errors, and my photostream doesn’t show up:

MessageUndefined indexoption_auth
Filename
dww_flickr/ft.dww_flickr.php
Line Number
143

Message
Undefined indexoption_nsid
Filename
dww_flickr/ft.dww_flickr.php
Line Number
144

Message
Undefined indexoption_photourl
Filename
dww_flickr/ft.dww_flickr.php
Line Number
145

Message
Cannot modify header information headers already sent by (output started at /Applications/MAMP/htdocs/artificialmemory/admin/core/Exceptions.php:166)
Filenamecore/Common.php
Line Number
428 
 Signature 

Artificial Memory

Profile
 
 
Posted: 07 May 2010 09:07 PM   [ Ignore ]   [ # 52 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

Uninstalled the old version and reinstalled this version.  Made a new Flickr custom field and on the publish screen I get:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: option_auth
Filename: dww_flickr/ft.dww_flickr.php
Line Number: 143
A PHP Error was encountered
Severity: Notice
Message: Undefined index: option_nsid
Filename: dww_flickr/ft.dww_flickr.php
Line Number: 144
A PHP Error was encountered
Severity: Notice
Message: Undefined index: option_photourl
Filename: dww_flickr/ft.dww_flickr.php
Line Number: 145

at the top of the Publish form.  Then

         
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 13
Filename: content/publish.php
Line Number: 136
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 13
Filename: content/publish.php
Line Number: 136


A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 13
Filename: content/publish.php
Line Number: 158

at the bottom of the publish form. 

I’m using a custom publish page layout.

 Signature 
Profile
MSG
 
 
Posted: 07 May 2010 09:10 PM   [ Ignore ]   [ # 53 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

Added:

{exp:flickr:photostream size="square"}<a href="{flickr_url}"><img src="{flickr_img}" alt="{flickr_title}"/></a>{/exp:flickr:photostream} 

to a test template and got:

Error

The following tag has a syntax error:

{exp:flickr:photostream}

Please correct the syntax in your template.

the full dww_flicker folder is in the third_party folder.

 Signature 
Profile
MSG
 
 
Posted: 07 May 2010 10:14 PM   [ Ignore ]   [ # 54 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  11-20-2006
Lisa Wess - 08 May 2010 01:10 AM

Added:

{exp:flickr:photostream size="square"}<a href="{flickr_url}"><img src="{flickr_img}" alt="{flickr_title}"/></a>{/exp:flickr:photostream} 

to a test template and got:

Error

The following tag has a syntax error:

{exp:flickr:photostream}

Please correct the syntax in your template.

The template tags were changed for EE2 to be {exp:dww_flickr:function}.  If you add the “dww_” I hope it’ll work…

Profile
 
 
   
3 of 9
3