GithubHelp home page GithubHelp logo

buddydrive's Introduction

BuddyDrive

BuddyDrive is a BuddyPress plugin that uses the BP Attachment API to let you share files and folders within your community site. Depending on the BuddyPress settings, the access to the BuddyDrive user's content can be restricted to :

  • the owner of the item only,
  • people that know the password the owner set for his item,
  • the friends of the owner of the file,
  • the members of the group the content is attached to,
  • the members the owner chose
  • or everybody !

This plugin is available in english and french.

PS: you can download latest stable on WordPress.org

Configuration needed

  • Requires at least WordPress 4.5 and BuddyPress 2.5

Installation

Before activating the plugin, make sure all the files of the plugin are located in /wp-content/plugins/buddydrive folder.

buddydrive's People

Contributors

imath avatar morenolaquatra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

buddydrive's Issues

Create specific capabilities for BuddyDrive

Plugin severly lacks some capability checking.loggedin users are be able to upload files. It's the only check. Providing capabilities will allow it to be filtered and admins could restrict uploads to a specific role capability.

Everytime I activate Buddydrive get an admin-ajax.php error for POST

Hi There.
I have tried deactivating all plugins switching to default 2015 theme with onlybuddypress and buddydrive activated, go to post something in the activity and in the console I see error 500 internal error method post admin-ajax.php js

I am not very technical and don't understand how to fix this.

Please update the plugin to be compatible with the latest wordpress and buddypress please.

Feature request: Allow to display file extensions and allow sorting / filtering by file extension

More like a mid-term feature request.

So I could switch between a file "file.pdf" being displayed as in the Group BuddyDrive section as well as in the admin screen:

"file.pdf"
or
"file"

and sort / filter the view by extension as well - like I can currently sort by name or by last edit.

Would be great if that could be included in the BuddyDrive settings in a future version.

Thanks in any case ;)

P.S.: Is it alright to post feature requests here as a github issue?

File Counter

Hi imath,
please include a file counter in the BuddyDrive user tab.
Thanks, Hans
buddydrive_tab

I can't add a new folder or new file

When I'm in BuddyDrive on the front end, the New File button and the New Folder Button are not working. It will not let me add a new folder nor a new file. What can I do to fix this?

Joey

BackBonify the plugin

benefit :

  • a router could be interesting to view folder content instead of using a redirect to a url?folder=name
  • the uploader would be easy to "transport" in various areas (groups, activity what's new textarea...)
  • When listing the files of a folder in the admin, it would be nicer

Javascript files really needs it!

Implement CMIS (allow BuddyDrive to be used like Dropbox)

[Enhancement]

CMIS is a protocol for document repositories interoperability.
http://en.wikipedia.org/wiki/Content_Management_Interoperability_Services

Implementing it would allow documents to be easily migrated from SharePoint/Alfresco/Nuxeo/Documentum/Lotus/FileNet/etc.

It would also allow to use CmisSync, which means that people would be able to synchronize to their local Windows/Mac/Linux, making it as easy to use as Dropbox, and enabling more complex scenarios (example: coupling with a scanner).
Disclaimer: I make CmisSync. It is open source.

Introduce the BuddyDrive Editor !

The BuddyDrive Editor uses the BuddyPress Attachments API introduced in BuddyPress 2.3. It's a feature to demonstrate how to manage user generated media from the front-end.
By default, nothing will happen, that's because you're free to choose where to display this editor :)

Here's an example of code that would add a button into the user's activity stream to let him share a public file.

function test_bp_personal_activity() {
    // Always check the editor is available to prevent fatals!
    if ( bp_is_my_profile() && function_exists( 'buddydrive_editor' ) ) {
        // 'whats-new' is the id attribute of the textarea to publish activities
        buddydrive_editor( 'whats-new' );
    }
}
add_action( 'bp_before_member_activity_post_form', 'test_bp_personal_activity' );

NB: You could for instance add this code into a bp-custom.php file.

The above code is adding a button above the what's new text area and once clicked, you get the BuddyDrive Editor :
buddydrive-editor

There's more! Let's imagine you have BuddyPress 2.3, BuddyDrive 1.3 activated and another plugin dealing with user's front end submission by using a wp_editor (e.g.: WP Idea Stream). This another plugin could take benefit of the buddydrive_editor() function simply by using this code :

if ( function_exists( 'buddydrive_editor' ) ) {
    // when no id attribute is provided, BuddyDrive will look for tinyMCE/Quick tags editor.
    buddydrive_editor();
}

Here's a demo of this in WP Idea Stream (note that WP Idea Stream is not ready yet, you'll need to wait for version 2.2!)
https://vimeo.com/129146068

This new feature will also generate public thumbnails so that the BuddyDrive embed function will display a thumbnail in case the public file is an image :
buddydrive-embed

If the user changes the privacy of the file to something else than public, then the thumbnail will be deleted and a mime type icon will be used.

Enable custom privacy options in buddydrive

Currently Buddydrive does not support adding custom privacy options. I have submitted a pull request #52 which has the necessary changes to enable custom privacy settings in Buddydrive. It would be great if you can incorporate them in the next Buddydrive update.

Improve groups component integration

1/ Bug: BuddyDrive items attached to an hidden group should not show the group's avatar
2/ Enhancement : it would be great to attach an item to more than one group.

If 2/ the group's avatar in item listings is no more necessary (use a dashicon instead), and it should fix 1/

Custom fields hidden while editing BuddyDrive files

I have added Custom Step in BuddyDrive Fields and have been able to successfully saving them in post meta table via Buddydrive_meta fields through Buddydrive ajax.
Now, when I edit the Buddydrive files, there is a static "hide" class already attached to the custom field on line 543 of buddydrive-item-ajax.php which hides all the custom fields on editing the file.
It works well while adding a new file because the hide class is removed, but on editing the file, all the fields are displayed at once and the hide class hides all the custom fields.

For now I've been able to by pass this by adding custom js

if($_POST['action'] == 'buddydrive_editform'){ echo '<script>jQuery(document).ready(function($){$(".buddydrive-step").removeClass("hide");});</script>'; }
but it should be handled in the plugin itself.

Overwriting BuddyDrive Templates in Theme Directory

I was wondering if it was possible, how to override the BuddyDrive /templates/ folder files in my theme directory so that I can safely edit the markup of the BuddyDrive page on my Member Single page.

I did a bit of debugging and I realised that it is loading the /members/single/plugins.php template from the BuddyPress files that I already have in my theme. I am just not sure of the correct way to include the BuddyDrive templates here and edit the markup.

As an example I am looking to rearrange the BuddyDrive page to look something similar to this:
buddydrive-design

Any help with this would be much appreciated!

Kind regards,
Sam

Please make translations update savvy

With BuddyPress 2.1 the language file is now update savvy (located in /wp-content/languages/plugins) โ€“ with BuddyDrive 1.2.1 that's not working, the language file has to be in the plugin directory itself (/wp-content/plugins/buddydrive/languages).
Please change BuddyDrive so that it's also update savvy. Thanks!

File names consisting only of numbers are displayed as "f-" in the list

Testing the 2.0 beta version:

Uploaded four test files named
1.pdf
1n.pdf
n.pdf
n1.pdf

Except for the first one, the filenames of all others were shown correctly in the BuddyDrive Group Interface
test buddydrive filenames

When I download the file, it still retains its original filename "1.pdf", so it seems to only be an issue with displaying the name?

P.S.:
Thanks so much for implementing the group sharing feature! One hundred thumbs up for your work, it is going to help us tons in setting up a new community :)

Custom Filter to customise the WP Query

I've been trying to customise BuddyDrive get query by sending query parameters "buddydrive_scope" via the querystring filter. The scope parameter is great but not enough if one requires more than one variable to get the buddydrive attachments.
It would allow a lot of freedom for developers , if you can add a filter on the $query_args parameter just before the WP_Query is performed in BuddyDrive_Item class.

Let me know if I missed something...

Loading BuddyDrive editor via ajax

Great work with the Buddydrive editor.
How to load Buddydrive editor via ajax ?

Tried adding a WP Editor with BuddyDrive_editor function with editor id, but it does not seem to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.