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

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

I’m using LikEE, but that does not have a publish page component that I’m aware of so should not be interfering. I am also using Matrix, which most definitely has a publish page component.

I use absolute URLs and paths. =)

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

Can you open up an error console and see if it throws any javascript errors? Thanks again for taking the time to figure this out with me. Super frustrating since I can’t replicate it. Might have to signup for an EngineHosting account….

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

Ok, on Safari 5. I had to do some find and replaces to keep this secure replacing the API and Secret with just “string”. I hope you get the idea

lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00Failed to load resource: cancelled
7Unsafe JavaScript attempt to access frame with URL http://www.lisajill.net/admin.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=4 from frame with URL http://lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00. Domains, protocols and ports must match.
lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00:32TypeError: Result of expression 'parent.top.$' [undefined] is not a function.
7Unsafe JavaScript attempt to access frame with URL http://www.lisajill.net/admin.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=4 from frame with URL http://lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00. Domains, protocols and ports must match.
lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00:32TypeError: Result of expression 'parent.top.$' [undefined] is not a function.
7Unsafe JavaScript attempt to access frame with URL http://www.lisajill.net/admin.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=4 from frame with URL http://lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00. Domains, protocols and ports must match.
lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00:32TypeError: Result of expression 'parent.top.$' [undefined] is not a function.
7Unsafe JavaScript attempt to access frame with URL http://www.lisajill.net/admin.php?S=0&D=cp&C=content_publish&M=entry_form&channel_id=4 from frame with URL http://lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00. Domains, protocols and ports must match.
lisajill.net/themes/eehive_flickr/views/browser.php?v=Main&apppath;=/www/username/system/expressionengine/&themeurl=http://lisajill.net/themes/eehive_flickr/&fn=field_id_17&photourl=http://www.flickr.com/photos/namrah/&api=string&secret=string&token=72157623938359221-fa3a1cd840bc11d6&nsid=37717977@N00:32TypeError: Result of expression 'parent.top.$' [undefined] is not a function.
       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

I’ve tried to setup my system exactly like yours but I’m still not able to replicate. I’m starting to think this is a javascript conflict issue.

Any chance you can create a new channel with its own custom field group consisting of only a Flickr field? If that works we’ll know for sure.

Related, I started this thread (http://ellislab.com/forums/viewthread/157210/) to discuss the issue of javascript conflicts between add-ons. Instead of loading the same javascript/jquery plugins over and over it would make more sense to have an API add-ons could intelligently load these jquery plugins from.

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

Brett, that error console came from the exact setup you requested. Channel “test” wihh its own custom field group containing one field: a Flickr field. I can set you up publishing rights to that channel to test if you’d like to see it in action.

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

That would be great! PM the login info whenever you get a chance!

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

le sigh.

It’s working. In both test and in my primary channel. I tried this for hours on the 7th and nothing, today it works in Safari. I have made exactly 0 changes to the site and am not aware of any server changes.

In any case, it all seems to be working except the pagelink:

{if dem_flickr != ""}{dem_flickr}
View on <a href="http://{dem_flickr:pagelink}">flickr</a>{/if}

gives me:

A PHP Error was encountered
Severity: Warning

Message: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Eehive_flickr_ft::replace_pagelink' was given

Filename: api/Api_channel_fields.php

Line Number: 318

which only started after I added the dem_flickr:pagelink variable.

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

WAAAAAHOOOOOO!!!!!!!!!

Definitely strange, but glad its finally working for you. Maybe a caching issue?? Just don’t try to add more than one Flickr field as I think it’ll cause a javascript conflict. I’m working on that issue.

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

I cleared caches - EE and Browser during the testing several times. I honestly have no idea what was going on. I mean, I even upgraded browsers in between and it didn’t fix it (Safari 4 to 5) then leave it for 2 days and voila.

Sometimes computers are infuriating. =)

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

… weird. Well, at least its working.

Regarding your error, try {dem_flickr:link} instead 😊 I’ve updated the beta documentation.

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

Does this work with Matrix now, Brett? I don’t see mention of it in your post with the changes.

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

It doesn’t :( I started work on that but it hasn’t made the cut yet. That’ll be a top priority on the next list as it would super useful for creating galleries.

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

Awesome. Thanks Brett! Great work on this and really looking forward to the Matrix stuff now.

Need to dig into some of the extra variables for my lightbox, but not until the weekend, hehe. =)

       
Ed Hall's avatar
Ed Hall
17 posts
15 years ago
Ed Hall's avatar Ed Hall

I keep getting a error with this script and I’m baffled as to what’s causing it.

Severity: Warning

Message: Unknown: open(/var/php_sessions/sess_b9d4d8029374cd95471f9045cd374b4a, O_RDWR) failed: No such file or directory (2)

Filename: Unknown

Line Number: 0

A PHP Error was encountered

Severity: Warning

Message: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/php_sessions)

Filename: Unknown

Line Number: 0

This is the EE Code I’m using

{exp:dww_flickr:photostream size="medium" num="1"}<a href="http://{flickr_url}">{flickr_img}</a>{/exp:dww_flickr:photostream}

I’ve tried uninstalling it and the error went away. Uploaded the files again and the error returned.

       
heaversm's avatar
heaversm
197 posts
15 years ago
heaversm's avatar heaversm

I get this error not on activation, but in the publish screen when attempting to add a photo:

Invalid argument supplied for foreach() digitalwaxworks_flickr/includes/photostream.php

How do I fix?

       
First 8 9 10 11

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.