Skip to:
Content
Pages
Categories
Search
Top
Bottom

Compatibility with Buddypress Mobile Plugin

  • Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    Today, I got a report in ja.forums.wordpress.org that “Upload picture” link disappears when accessing via buddypress mobile plugin.

    I, for the first time, use buddypress mobile plugin and ,yes, I see the problem.

    When clicking “Album”, there are a number of pictures you uploaded along with the link of “My pictures”. However, “Upload pictures” which should lies beside the “My pictures” link, is gone.

    Accessing to …/album/upload/ by inputting the url in the address bar manually takes you to the upload page, and you can properly upload the picture.

    For this reason, the problem is just only that the link of “Upload pictures” is not displayed through buddypress mobile plugin.

    I do like to fix this problem ASAP. Anybody Any Idea?

Viewing 25 replies - 1 through 25 (of 29 total)
  • Avatar of foxly
    foxly
    Participant

    @foxly

    @chestnut_jp

    The first question is “how does a mobile phone upload an image”? If most mobile phones can emulate how a conventional web browser transfers an image to the server (as opposed to using some kind of mobile-specific protocol) then it should be very easy to make our plugin work with mobile phones.

    The second question is “what does BuddyPress Mobile do to make BuddyPress compatible with mobile phones?” How is it interacting with the core and our plugin? Because, if the mobile phone’s browser is ACID compliant, the upload link should be showing up. What do you see when you examine the page’s source code in the mobile browser?

    Thanks!

    ^F^

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    @foxly

    I forgot to define what is “mobile phone” for this case.
    Well, bp mobile plugin is for smartphones such as iphone and android, so mobile phones in this case are limited to iphone and android.

    I do not have iphone but android, and when I access to my buddypress site using android via BP Mobile plugin, “Change Avatar” link is correctly shown.

    Clicking “Change Avatar” obviously takes me to the page that I can upload a photo for my avatar and properly upload a photo stored in my android, as if I were using personal computer.

    I did not know this bug because I have not used BP Mobile plugin before.

    Usually, I access to my site without any mobile-related plugin via android. The site look is just the same as when you see it with your PC. Thus, “Upload pictures” link is properly shown and android can upload a picture.

    Unfortunately, I cannot see the page source in my android browser. It could be easy for me to fix this problem for myself if android showed me the page source.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @chestnut_jp

    Not being able to see the source code is very annoying. Perhaps if you modified the main WP templates to not include the HTML header, the mobile phone would display all of the other code to screen instead of rendering it as a web page.

    If our plugin is correctly displaying the upload link when the site is not using BP Mobile, it means the problem is probably in the BP Mobile plugin. Have you been able to contact the plugin’s author and ask for their help debugging it?

    I have an iPhone we can test on.

    Thanks!

    ^F^

    Avatar of finni3
    finni3
    Participant

    @finni3

    Safari on iPhone doesn not support uploading pictures from the mobile phone. I don´t know about android though.

    Maybe BP mobile creator @modemlooper has some input?

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    @foxly
    Thank you for your suggestion. I will try that way, and I will ask the BP Mobile plugin author.

    @finni3
    Thank you for your information.
    So, you cannot see the link of “Upload pictures” nor of “Change Avatar” via BP Mobile plugin?

    Avatar of foxly
    foxly
    Participant

    @foxly

    @finni3

    Sounds like it’s time to upgrade to an Android-based platform.

    I’ll hit-up @modemlooper on Twitter.

    ^F^

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    Thank you @foxly

    Avatar of finni3
    finni3
    Participant

    @finni3

    @chestnut_jp I haven´t really checked to see if I see the upload pictures dialogue, but what I meant is that even if the dialogue would show it wouldn´t really matter as Safari on the iPhone does not support uploading.

    As for Android the first link on google is http://code.google.com/p/android/issues/detail?id=2519
    I didn´t read the whole thread but from the gist of it the bug seems to be still open. So not sure if changing to Android would fix the issue.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @finni3

    Maybe you’re getting a different version, but when I retrieved this page, it says the bug was closed in 2009 and the patch has been released to production. Also in the first message in this thread, @chestnut_jp notes that he was able to upload a file from his mobile browser when he directly accessed the upload URL.

    ^F^

    Avatar of finni3
    finni3
    Participant

    @finni3

    No, I have the same page as you. Just misread the page :/ Sorry for the misinformation.

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    Big earthquake in Japan
    I am OK, but won’t write awhile

    Avatar of foxly
    foxly
    Participant

    @foxly

    @chestnut_jp

    Glad to hear it. You’re about 35km inland from Tokyo, right?

    ^F^

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Apple has intentionally removed the ability to upload from the web so they can assure you make native apps whereby they get 30% of revenue.

    Album + is a BuddyPress add on therefore it would be up to @foxly and gang to implement uploading via Android in there plugin. I have only add formating support for the plugin and have hidden the upload link http://sites.google.com/site/androidhowto/how-to-1/upload-an-image-to-a-web-site

    Avatar of foxly
    foxly
    Participant

    @foxly

    @modemlooper

    Okay, fair enough …but it seems that Android can natively upload to Album+, as reported by @chestnut_jp “Accessing to …/album/upload/ by inputting the url in the address bar manually takes you to the upload page, and you can properly upload the picture.”

    Perhaps you could verify this on your mobile and, if correct, not hide the upload link in BP-Mobile?

    Also, since it sounds like you’re integrating with us, are there any changes we could make in 0.1.9 that would make your job easier?

    Thanks!

    ^F^

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I do not own an Android device and cannot test. Also, not sure if upload will work on all Android devices. That OS is fragmented over many devices.

    I’m only hiding upload via CSS. Not on comp at moment but will check later on the exact CSS.

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    Hi @foxly and @modemlooper

    FIrst of all, I really would like to say “Thank you” to modemlooper to participate this discussion.

    While I was away from this thread, the discussion seemed to get the point.

    I have been looking at the script of BP Mobile plugin and I, for myself, found the way how the link of “Upload pictures” is hidden bu the plugin.

    Around the line 2590 of /wp-content/plugins/buddypress-mobile/themes/default/style.css, which is part of css definitions for BP Album+ made by modemlooper, which I really appreciate because he defines css for BP Album+ plugin exclusively!

    I answered to the user in “ja.forums.wordpress.org” as following:
    [ Original ]
    `a#upload {
    display: none;
    }
    `
    [ Changed to ]
    `/*
    a#upload {
    display: none;
    }
    */
    `

    Yes, I agree with modemlooper that not all android can upload photos properly.
    For instance, I and the user who reported this issue first in “ja.forums.wordpress.org” can upload pictures if we use the default browser via our android. However, using other browsers, such as Dolphin Browser and Opera mini, disables the upload feature.

    Nevertheless, BP Mobile plugin still shows “Change Avatar” link, which is disabled by devices such as iPhone that cannot upload photos.

    So, just my opinion is that “Upload pictures” link should not be hidden by BP Mobile plugin, but, if needed, it should be done by BP Album+ plugin. For this point, as foxly said, I also think BP Album+ and BP Mobile plugins can keep in touch with each other.

    Sorry, but I do not have enough time right now. Thus, I will continue to discuss on this matter on Monday.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    One option to do mobile image adding on iOS is to email images. This would have to be a feature of Album +.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @modemlooper

    Certainly possible from a technical point of view. There could be issues with spammers abusing it though.

    How are Facebook and Flickr handling mobile uploads? I don’t think they use a dedicated app do they?

    ^F^

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    @foxly facebook gives you a certain email to send pics too. subject is caption.

    http://www.facebook.com/mobile/

    When you are logged in it gives you an upload email. This would make it really easy for any site to upload images from mobile web.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @modemlooper

    After reading Facebook’s mobile page, you’ve got me convinced.

    I have added this feature to our work queue, and also to our GSoC projects page.

    ^F^

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    @foxly Awesome! I am adding BP media support to http://buddiphone.com. Having image uploads even by email is a major plus.

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    Sorry, everyone.
    It seems hard for me to participate this discussion regularly, for the time being, due to continued earthquakes, a partial power cut, accidents in nuclear power plants, and so on.

    However, I “will” write when I can.

    @foxly
    That sounds great.
    Though it is a little bit old plugin, we can learn the way of uploading photos though email by “Ktai Entry” plugin that still can be used with WP3.1.

    The plugin can downloaded at:
    https://sourceforge.jp/projects/wppluginsj/downloads/44535/ktai_entry0811.tar.bz2/

    The plugin’s site is written in Japanese at:
    http://wppluginsj.sourceforge.jp/ktai_entry/

    Since the plugin is made befreo WordPress 3.0, it is needed to be altered to use with multi-site feature enabled.

    I have written how to fix it at http://staff.blog.bng.net/administrator/2010/09/28/784.html, which is written on in Japanese, and Japanese people use the plugin adopting my alternation. The plugin author also comments to my post that she will introduce the alternation, but the plugin has not yet been updated.

    If you should know the way of fix the plugin to use with multi-user feature enabled, I will write here in English.

    @modemlooper
    Could you please let me know why you decided to hide the “Upload pictures” link in BP Album +, while “Change Avatar” link is still displayed that is the same feature as “Upload pictures”?

    I am very glad to hear that you are adding BP media support to http://buddiphone.com.
    At the moment, is it possible for you to add to BP Mobile plugin’s readme or faq that the css definition of “display:none” can be deleted if the user wants to use “Upload pictures” link? Otherwise, users could continue to ask about the matter to us, BP Media, including BP Album+.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    It should be removed completely. I just haven’t had time to remove the entire upload dialog. The problem with this is there is no way to tell what devices uploads with work or will not. So the only option is to remove it or create a way that works across every device and that option currently is email. You can however do what you want to your own site.

    Avatar of chestnut_jp
    chestnut_jp
    Member

    @chestnut_jp

    Thanks for your comment, @modemlooper
    At present, I answered to the Japanese user to comment out the css definition in BP Mobile plugin, in order to show the “Upload pictures” link.

    Well, another option is just like:
    `
    <?php
    $agent = $_SERVER;
    if(ereg(“iPhone”, $agent) || ereg(“iPod”, $agent) || ereg(“iPad”, $agent)) {
    $agentresult = 2;} elseif (ereg(“Android”, $agent)) {
    $agentresult = 1; } else { $agentresult = 0; }
    ?>
    `
    Use the above to identify which device is accessing, and then decide to show/hide upload dialog.
    This can be useful not only for BP Mobile but also BP Album+, @foxly.

    As a member of BP Media project for Asian users, I will consider the better solution when I have time.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Problem is not all Android phones allow uploads via mobile.

Viewing 25 replies - 1 through 25 (of 29 total)

You must be logged in to reply to this topic.