Forums

BuddyPress Activity Plus
any plans to add upload options for docs (.doc, .pdf, etc.) (20 posts)

  1. guil2250
    Member
    Posted 5 months ago #

    any plans to add additional upload options for documents (.doc, .pdf, etc.)?

    http://wordpress.org/extend/plugins/buddypress-activity-plus/

  2. Hope
    Member
    Posted 4 months ago #

    I was looking for this too... It would be a very good feature to add.
    If anybody knows how, would be great to share the solution with us.... Thanks

  3. ajamm
    Member
    Posted 4 months ago #

    Nice idea!

  4. ajamm
    Member
    Posted 4 months ago #

    Okay, have added pdf option in two files in the plugin:

    buddypress-activity-plus/js/bpfb_interface.js
    and
    buddypress-activity-plus/lib/class_bpfb_binder.php

    This now allows uploading of pdf docs...

    Just need to mod it to open pdfs in a new window... can anyone help?

  5. jeffacubed
    Member
    Posted 2 months ago #

    Hi ajamm - any chance you could share your <custom-code> for enhancing the ability of the 'BuddyPress Activity Plus' plugin to handle the uploading of .pdf's?

    Cheers,

    Jeff

  6. ajamm
    Member
    Posted 2 months ago #

    Check out these code changes...

    In buddypress-activity-plus/js/bpfb_interface.js

    var uploader = new qq.FileUploader({
    			"element": $('#bpfb_tmp_photo')[0],
    			"listElement": $('#bpfb_tmp_photo_list')[0],
    			"allowedExtensions": ['jpg', 'jpeg', 'pdf', 'png', 'gif'],

    and in buddypress-activity-plus/lib/class_bpfb_binder.php
    $uploader = new qqFileUploader(array('jpg', 'pdf', 'jpeg', 'png', 'gif'));

  7. ajamm
    Member
    Posted 2 months ago #

    Still dont know how to make them open in a new window. If you find an answer to this, please share!

  8. jeffacubed
    Member
    Posted 2 months ago #

    As a follow up I did find on WPMU

    I did find that I could add more file types by adding them in these two files:
    js/bpfb_interface.js LINE 213 "allowedExtensions": ['jpg', 'jpeg', 'png', 'gif', 'pdf'],
    and
    lib/class_bpfb_binder.php. There is LINE 163
    $uploader = new qqFileUploader(array('jpg', 'jpeg', 'png', 'gif', 'pdf'));

    Which 100% works to get .pdf's uploading to the bpfb 'media-folder' but there's no list/thumbnails for the pdf's.

    Somewhere, in the activity-plus source code, there must be a way to generate small thumbnails for attached pdf? Solving this would make this bp-plugin top notch in my books!

    Jeff

  9. jeffacubed
    Member
    Posted 2 months ago #

    Before I tackle

    Still dont know how to make them open in a new window. If you find an answer to this, please share!

    Were you able to get the attached pdf's to at least show/list in the activity stream? Using your method (ajamm) I seem the pdf's going to the bpfb folder (so that's working) - but what I don't see (quite yet) is any list of the pdf's in the activity stream. I get an activity event when I upload a pdf now (good!), but I don't see the pdf, even when I revert back to the Buddypress default theme - curious. I'll keep digging.

    I'm using WP (multisite) 3.5.1, bp 1.6.4

    -Jeff, Vancouver (Canada)

  10. ajamm
    Member
    Posted 2 months ago #

    Hello Jeff,

    I will have to go and check. I think it gave a link in the activity stream... :-S

    Can't remember...

  11. yzqiang
    Member
    Posted 2 months ago #

    Why not use buddypress group documents plugins which can be integrated with activity plus.

  12. ajamm
    Member
    Posted 2 months ago #

    Sounds interesting, not sure if I tried this one.

  13. ajamm
    Member
    Posted 2 months ago #

    What is the proper name for it, I cant find it?

  14. yzqiang
    Member
    Posted 2 months ago #

  15. yzqiang
    Member
    Posted 2 months ago #

  16. jeffacubed
    Member
    Posted 2 months ago #

    Whoa - great catch/call yzqlang - I'd forgotten abou the buddypress group documents plugin, as support for buddypress 1.5+ had dropped off some time ago. Another developer has picked up the plugin, which you can find the most recent (15/5/2012) version here

    Ajamm - I've tested the above group-documents w/ buddypress 1.6.4 + WordPress 3.5.1 - & everything I've tested works A'OK with pdf attachments into the group activity stream. All documents attachments, from the activity stream, get collected under a new group 'tab' (which you can name whatever you like). Overall, I'd have to say it's a great add-on/integration w/ the bp-activity-plus plugin.

    I also want to test this out w/ bp 1.7 beta2, just to be sure of longer-term compatibility.

    Thx all √

  17. ellbristow
    WPMU DEV Support Staff
    Posted 4 weeks ago #

    Hi there,

    We're just tidying up the support forums for our plugins and noticed this thread is not marked as resolved. Do you still need assistance with this? If so let us know and we'll take a look for you.

    Thanks!

  18. ajamm
    Member
    Posted 4 weeks ago #

    Hey I guess it would be nice if there was an option in the plugin for what file extensions you want to allow.

  19. ellbristow
    WPMU DEV Support Staff
    Posted 4 weeks ago #

    Hey @ajamm,

    I'll mention this to the developer to see if we can add it, although the plugin is only intended for images, videos and links, so I'm not sure they will want to extend it at this point.

    Can't hurt to ask though!

  20. ellbristow
    WPMU DEV Support Staff
    Posted 3 weeks ago #

    I'm afraid that, for now, we won't be adding additional file extension upload to this plugin. Sorry!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.