BuddyDev

Search

[Resolved] MediaPress with BuddyPress Polls

  • Participant
    Level: Enlightened
    Posts: 41
    Mic on #21664

    Hello,

    I am trying to get MediaPress to work along with BuddyPress Polls (https://wbcomdesigns.com/downloads/buddypress-polls/).

    The developer of BuddyPress Polls says:
    “Poll and Mediapress post will not work together as both are different activity types it’s like either Poll or Mediapress single activity can not be as both type at same time. We are creating Poll as Activity type poll, it will allow regular BuddyPress Activity content.”

    And in the backend if I look under Activity the Action column does indeed say “Polls Update”. So at first I’m thinking perhaps there is nothing that can be done. You simply cannot post a image and a poll together in the same Activity Post.

    However, things get interesting if I replace MediaPress with rtMedia instead. With rtMedia I am able to add a photo to an activity post along with a poll. This can be seen on my website with my “Apples vs Oranges” test https://animegirls.me/activity/

    I would really like to use MediaPress along with BuddyPress Polls and now that I have seen it working with rtMedia it gives me hope that it is possible. I would appreciate any help I could get in this matter.

    Here is my system info:

                    // Generated by the Send System Info Plugin //
    
    Multisite:                No
    
    SITE_URL:                 https://animegirls.me
    HOME_URL:                 https://animegirls.me
    
    WordPress Version:        5.1.1
    Permalink Structure:      /%postname%/
    Active Theme:             Boss. Child Theme 2.4.3
    
    Registered Post Stati:    publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, closed, spam, orphan, hidden
                              
    PHP Version:              7.0.33-5+ubuntu16.04.1+deb.sury.org+1
    MySQL Version:            5.7.25-0ubuntu0.16.04.2
    Web Server Info:          Apache/2.4.18
    
    WordPress Memory Limit:   512MB
    PHP Safe Mode:            No
    PHP Memory Limit:         512M
    PHP Upload Max Size:      200M
    PHP Post Max Size:        250M
    PHP Upload Max Filesize:  200M
    PHP Time Limit:           0
    PHP Max Input Vars:       1000
    PHP Arg Separator:        &
    PHP Allow URL File Open:  Yes
    WP_DEBUG:                 Disabled
    
    WP Table Prefix:          Length: 3 Status: Acceptable
    
    Show On Front:            page
    Page On Front:             (#1305408)
    Page For Posts:            (#0)
    
    WP Remote Post:           wp_remote_post() works
    
    Session:                  Disabled
    Session Name:             PHPSESSID
    Cookie Path:              /
    Save Path:                /home/webmaster/tmp
    Use Cookies:              On
    Use Only Cookies:         On
    
    DISPLAY ERRORS:           On (1)
    FSOCKOPEN:                Your server supports fsockopen.
    cURL:                     Your server supports cURL.
    SOAP Client:              Your server does not have the SOAP Client enabled.
    SUHOSIN:                  Your server does not have SUHOSIN installed.
    
    ACTIVE PLUGINS:
    
    bbPress: 2.5.14
    BP Simple Front End Post: 1.3.6
    BuddyBlog: 1.3.4
    BuddyBoss Products Updater: 1.2.1
    BuddyPress: 4.2.0
    BuddyPress Activity Bump: 1.0.0
    BuddyPress Avatar Moderator: 1.1.1
    BuddyPress Edit Activity: 1.0.9
    BuddyPress Global Search: 1.1.9
    BuddyPress Moderation Tools: 1.1.0
    BuddyPress Polls: 2.1.0
    Classic Editor: 1.4
    Essential Grid: 2.3.2
    Featured Image Admin Thumb: 1.5.2
    Maintenance: 3.6.1
    rtMedia for WordPress, BuddyPress and bbPress: 4.5.6
    Send System Info: 1.3
    UpdraftPlus - Backup/Restore: 2.16.5.24
    WP All Export Pro: 1.5.5
    WP All Import - User Import Add-On: 1.1.1
    WP All Import Pro: 4.5.5
    
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #21678

    Hi Mic,
    Thank you for using MediaPress.

    I am sorry but the developers of the poll plugin have explained it correctly.

    MediaPress adds new uploads as a activity type and so does poll. An activity can’t have more than 1 activity type and that’s the issue here.

    I am sorry but I don’t see any possible solution right now.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 41
    Mic on #21680

    Thank you for the response Brajesh.

    The developer of BuddyPress Poll also said:
    “Poll plugin is suppose to work standalone not as conjunction with media plugin as individual activity type.”

    Any idea how rtMedia achieves it then? It appears that MediaPress and rtMedia accomplish the same thing by allowing users to upload images (and other media) to BuddyPress through the activity feed.

    If I use rtMedia I can add an image and a poll to the same post. I would rather figure out how to use MediaPress though. Any additional information you could provide me to help figure out how to accomplish this would be helpful.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #21687

    Hi Mic,
    We are using the activity type to let BuddyPress delegate us the action string creation for activity( e.g xyz uploaded 5 photo). It helps us create the action dynamically.

    It seems RT Media is adding a meta and then filtering on the action string t add their own(I haven’t checked it and will only be able to do so after 28th as I am travelling right now).

    We can certainly use that strategy in future. It does have the side effect that we will need to filetr for each activity action.

    Since we do not use the activity type for anything critical, we can certainly replace it in future.

    I am proposing that we add 1 meta to activity updates marking it has attached media and then move forward.

    Also, MediaPress was not designed to work alone. The goal was to make it co operate with other plugins in future(it still is). We will resolve this activity issue in next major release.

    For now, you may want to look for code containing “mpp_media_upload”. The change will need to go around there.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 41
    Mic on #21688

    Thank very much!

You must be logged in to reply to this topic.

This topic is: resolved