#1392 - Adding images from Photobucket, Flickr and Perhaps Facebook

Post

Posted
Rating:
#10603

Comment: #catalogue_entry_1853

"I am getting an error when I click add topic.
It appears at the top of the page.
I am on an iPhone 5 with iOS 7.

If I carry on and tick the photobucket box under upload I get the same error from them."

What error do you see?

The attachment will reference the remote file if you don't have a quota. You can confirm this by taking a look in the attachments table - you should see the a_url field as remote.

Post

Posted
Rating:
#10604
I attached a pic of the error.

Ah ok so I have a quota - does that mean that anyone with a quota cannot syndicate out then ? It did syndicate out for me, I could see the images on Photobucket but when I look at the post thread it was not the linked image but an attachment.
I would want to be able to choose the option as to whether I syndicate or not for users that have a quota please.

Post

Posted
Rating:
#10605
Oh, it will syndicate, it just won't delete the local file (replace with a remote link) if you have a quota. I could make it auto-delete for all if you prefer.

I think that error you saw happens if oAuth is not confirmed initially. It would be good to see if other users are getting it and when.
Because Photobucket doesn't do the callback style of oAuth, we have to store a temporary authorisation request, rather than only storing the final authorisation only once it has been confirmed.

Post

Posted
Rating:
#10606
I would prefer to have the option to choose if you have a quota.

It worked fine for me once I had logged into photobucket in another window.

Will get a few people to try it out and let you know.

Cheers
Ade

Post

Posted
Rating:
#10607
Okay, "Reference remotely (delete locally)" option added.

Post

Posted
Rating:
#10608
Thanks for that.

Just tried submitting on my iPad with a remote reference and got a bail out:


Fatal error: Call to undefined function sort_maps_by() in /home/vwgolfm/public_html/sources/upload_syndication.php on line 236
Critical error – bailing out

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP NOTICE [8] Undefined variable: param in sources/failure.php on line 945 (version: 9.0.5, PHP version: 5.3.20, URL: /forum/index.php?page=topics&type=_edit_post)
Details here are intended only for the website/system-administrator, not for regular website users.
» If you are a regular website user, please let the website staff deal with this problem.

Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

ocProducts maintains full documentation for all procedures and tools. These may be found on the Composr website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.

Composr is a CMS for building websites, developed by ocProducts.

Post

Posted
Rating:
#10609
If I uncheck reference remotely it does not bail out.

Post

Posted
Rating:
#10610
Ah, sorry about that (back-porting error) - fixed.

Post

Posted
Rating:
#10611
Hey no worries - works now.

I have just tried to use it with account that has zero attachment quota and nothing gets uploaded to photobucket and there is a quota error returned:

"You would be over your daily upload quota of 0 MB (you are currently using 0.00 MB)."

http://vwgolfmk1.org.uk/forum/index.php?page=topicview&id=general-chat_3%2Ftest_24&redirected=1#post_1345370

Does there need to be an artificial limit to allow say up to a certain photo size to be uploaded ?


Also I found that the only way to get the integration to setup is to first login to photobucket in the same browser. Then try and add an attachment, then you just get asked to verify that the app is allowed to do that.

Post

Posted
Rating:
#10612
Also is it possible to do what you did for the pop up attachment property window for the iphone to work the same on a tablet as well please ?

Cheers
Ade

Post

Posted
Rating:
#10613
"I have just tried to use it with account that has zero attachment quota and nothing gets uploaded to photobucket and there is a quota error returned:"

Did you authorise that account? The quota check is bypassed if it knows it can syndicate then delete locally.

The authorisation is stored against account (an oAuth access token), not via a cookie. You can authorise as many accounts as you like against a single Photobucket account, each would get a different token.

I think there may be a timeout issue. If you don't finish making your post within a certain time, the access token request may time out before it is converted into an actual access token. It may therefore help to do the checkbox first (before adding an attachment or writing a post), approve oauth, refresh (rather than just closing the overlay), and then continue. That only needs doing once, then the token is saved forever.

--

I have just made overlays scroll with the page on iPads as per iPhones (due to the lack of easy independent frame scrolling on iOS devices). I thought I'd actually done this for you before, as it was done in Composr quite a while back and I thought due to work on your site.

Post

Posted
Rating:
#10614
Hi Chris,

It does seem to matter which way I spin it, I cannot get it to work for a user with no quota.

The test case is:
cms user = hisboss (wifes account)

She has a valid photobucket account with a username of flashred - she can upload photos to this account.

I authorised the account using the same method, ie logged separately in to Photobucket as flashred and then ticked the box on the attachment area, it threw the authorisation dialogue up.

How do I de authorise an account from Photobucket ?

Thanks for the ipad fix

Cheers
Ade

Post

Posted
Rating:
#10615
Hi Chris,

Just got back from Bristol and I thought that I would try again.

I don't know if you have tweaked anything but the error is now a different one:

"An error has occurred - there are too many attachments in your post"

It would be useful to know how to disconnect an account from photobucket as well, so that I can understand which photobucket account the Composr one is connected to.

Cheers
Ade

Post

Posted
Rating:
#10616
Hi Chris,

Doing some more tests !

If I turn on the "Exceed quota/file limit" for the newbies (which hisboss is a member) group then the image uploads to photo bucket and gets stored as an attachment in cop - so the integration is working to photobucket.

It appears that your new code is not respecting the zero attachment size entitlement and is blocking the upload due to the quota being exceeded.

Can you take another look at this please.

Cheers
Ade

Post

Posted
Rating:
#10619
Hi,

Sorry about that, I can see the issue now. It is probably a backporting mistake.

Regarding deauthorisation. There's no method I'm aware of. With Facebook, they provide privacy controls to deauthorise sites. Maybe photobucket has the same. There's no mechanism built into Composr for it, but I can tell you the keys are stored into the long_values table, along with some other photobucket data. Photobucket things can be safely purged from there.

Post

Posted
Rating:
#10620
Fixed now :). It was indeed a backporting bug related to the quota bypass.

Btw, to confirm to yourself something is hosted on Photobucket, you can open an attachment's view link into a new window. You'll see the browser URL redirects from attachment.php to a remotely hosted URL (which is the normally attachment.php behaviour for when an attachment is remote).

Post

Posted
Rating:
#10627
Thanks for all the info Chris.
I have tested it all now and launched the feature on the masses.

One thing that appears to of regressed though. If a user has a quota and the reference remotely delete locally box is ticked, it does not seem to have any effect now. The photo is uploaded but still referenced locally.

For example I uploaded to this thread
http://vwgolfmk1.org.uk/forum/index.php?page=topicview&id=chat%2Fgeneral-chat_3%2Fnew-forum-feature&redirected=1#post_1346117
With the box ticked.


On another note, is this new feature packaged so that Kenno could have it on his bulldog owners site as well - would there be a cost implication to him?

Many thanks
Ade

Post

Posted
Rating:
#10629
Sorry Chris, this has not regressed - it was just the way I was checking the link.

Post

Posted
Rating:
#10630
"On another note, is this new feature packaged so that Kenno could have it on his bulldog owners site as well - would there be a cost implication to him?"

I back-ported it direct to your site, first uploading new files, then all at once editing all the existing files that needed new code. There's no problem sharing it, but if I was to repackage it for a stock v9 I'd need to charge another hour.

Post

Posted
Rating:
#10681
Hi Chris,

I have just tried to upload more than one image in the same post and it throws an error

"File storage directly on The Mk1 Golf Owners Club is not currently available. You must select at least one valid syndication target. "

Was it designed to allow multiple images to upload ?

Cheers
Ade
3 guests and 0 members have recently viewed this.