mrpritchett / buddydrive Goto Github PK
View Code? Open in Web Editor NEWDev repo of the BuddyPress plugin hosted on WordPress.org
Dev repo of the BuddyPress plugin hosted on WordPress.org
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
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 :)
I've promised it here https://wordpress.org/support/topic/upload-more-than-one-file?replies=5#post-7382274
so now i have to do it!
Here: https://github.com/imath/buddydrive/blob/master/includes/buddydrive-item-classes.php#L59-L60 same filter buddydrive_item_user_id_before_save
for type and user_id. I think it should be buddydrive_item_type_before_save
for type.
See https://wordpress.org/support/topic/document-sharing-options-only-show-choose-the-group
As this is mostly done threw AJAX, should use wp_localiz_script() with a filterable array.
buddydrive-item-classes.php : 1 use
buddydrive-item-functions.php : 3 uses
[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.
the way it's built, the quota can't be updated on bulk delete if this is performed for several users eg: Administration screen..
In case a user is deleted, some might want to keep the created files and folders
Looks like the search event is not fired.
When writing the file, sanitize_filename() should also get rid of accents.
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/
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.
Extra class to table element needed since 4.3
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
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 :
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 :
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.
Need to reset current queried object.
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.
see https://wordpress.org/support/topic/control-downloads-x-uploads
best place at first sight seems to be buddydrive_check_upload_size()
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.
benefit :
Javascript files really needs it!
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.
Allow visibility to be overridden to public.
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.
Forgot some strings when "wp_localizing" javascripts
Benefit: counting user files will be better
Requires :
.. where each user could add their files
see #22
We need to delete all items when a user is deleted. This patch needs some more testing.
https://gist.github.com/imath/fa000a3cf675e426c9d1
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...
see https://wordpress.org/support/topic/filtering-buddydrive_has_items
If privacy !== 'public' check for 'bp_moderate' cap.
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!
When a file or a folder is shared in a group its last activity should be updated
When sharing folders in the activity stream, the list of files isn't updated. For instance folder 2 will keep on listing files of folder 1.
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?
Even if it can be done by using the Administration screen, let's check this and understand why i've done this.
https://wordpress.org/support/topic/admin-cant-open-private-folder-in-frontend
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:
Any help with this would be much appreciated!
Kind regards,
Sam
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.