Mathieu Viet
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Idea Stream] Plugin not displaying short codes correctlyCan’t access the site but i’ll check this asap
Forum: Plugins
In reply to: [WP Idea Stream] Embed/shortcode for "submit idea" pageHi,
First of all i advise you to use this file to customize the plugin : https://github.com/imath/wp-idea-stream/wiki/wp-idea-stream-custom.php
Once you have it in place, you’ll see there : https://github.com/imath/wp-idea-stream/blob/master/templates/idea-form.php#L13 that the form template contains a do_action to allow you to add your content before the form. So in the file simply add the following code (making sure the file is containing a php opening tag at the very top of it)
function prepend_info() { ?> Hello World! <?php } add_action( 'wp_idea_stream_ideas_before_form', 'prepend_info' );Forum: Plugins
In reply to: [WP Idea Stream] New idea posted by a non-logged userHi i’m sorry this plugin is not supporting this. I don’t know about plugins supporting it.
As WordPress will need a user id i guess you need to create a dummy user and set it as the current user for any not logged in one…
Personaly i won’t advise you to go this road to avoid spams and for instance.
Forum: Plugins
In reply to: [WP Idea Stream] change […] to [read more]Hi,
The same way you would do it for regular post. It’s the same filter :
https://github.com/imath/wp-idea-stream/blob/master/includes/core/functions.php#L1113Forum: Plugins
In reply to: [WP Idea Stream] Can't Vote: Error "OOps, something went wrong"What is the active theme ?
Forum: Plugins
In reply to: [WP Idea Stream] Problem with page titleIdeaStream is not using WordPress pages. I advise you to avoid using this else you should see a slug conflict in IdeaStream setting. If you need to change the main archive page title, you can so it from the same area.
If your theme is forcing the term archive to show, then you can add an ideastream.php template : see https://github.com/imath/wp-idea-stream/wiki/Ways-to-customize-the-plugin-from-your-themeForum: Plugins
In reply to: [BuddyDrive] Control downloads x uploadsYou will be able to do so when 1.2.2 wil be released.
See https://github.com/imath/buddydrive/issues/7Forum: Plugins
In reply to: [BuddyDrive] Hide "Define your sharing options", Making all files privateThis will be possible when 1.2.2 will be released using this kind of code :
function restrict_toprivate( $options = array() ) { foreach ( array_keys( $options ) as $key ) { if ( 'private' == $key ) { continue; } unset( $options[ $key ] ); } return $options; } add_filter( 'buddydrive_get_sharing_options', 'restrict_toprivate', 10, 1 );And use some css to hide the select box
Forum: Plugins
In reply to: [BuddyDrive] Document sharing options: only show 'choose the group'You’ll need to leave at least one option. But you will be able to achieve your goal when 1.2.2 will be released.
The group option needs a change event to load the user’s groups, that’s the reason why. So i advise you to keep private and group.
When 1.2.2 will be released, you’ll be able to only keep private & groups using this code :
function restrict_to_groups_private( $options = array() ) { foreach ( array_keys( $options ) as $key ) { if ( 'private' == $key || 'groups' == $key ) { continue; } unset( $options[ $key ] ); } return $options; } add_filter( 'buddydrive_get_sharing_options', 'restrict_to_groups_private', 10, 1 );Forum: Plugins
In reply to: [BuddyDrive] Max upload limit reached, and user capability changeChecking quotas will be fixed when 1.2.2 will be released :
https://github.com/imath/buddydrive/issues/13Forum: Plugins
In reply to: [BuddyDrive] Check file nameHi this will be possible in next version (1.2.2)
You’ll then need to use this code :
function rampaaa_custom_errors( $upload_error_messages = array() ) { return array( 20 => __( 'Your file need to contain the word "magic"' ), ); } add_filter( 'buddydrive_get_upload_error_strings', 'rampaaa_custom_errors', 10, 1 ); function rampaaa_check_filename( $file = array() ) { if ( ! empty( $file['name'] ) && false === strpos( $file['name'], 'magic' ) ) { $file['error'] = 20; } return $file; } add_filter( 'buddydrive_upload_errors', 'rampaaa_check_filename', 10, 1 );I should release 1.2.2 in a couple of days.
Forum: Plugins
In reply to: [WP Idea Stream] Can't Vote: Error "OOps, something went wrong"No 🙂
Is the user logged in ? Any other plugins activated ? What is the active theme ?
Forum: Plugins
In reply to: [WP Idea Stream] How to protect site content from 'non' membersFor the “call for speakers” of the WordCamp Paris, i’ve done some work on this topic using the wp-idea-stream-custom.php file
See this github repository : https://github.com/imath/wc-talk for an example.
Forum: Plugins
In reply to: [WP Idea Stream] Congratulations! I would like to contribute to this plugin.Thanks for your feedback. You can use this forum or the plugin’s github issues tool https://github.com/imath/wp-idea-stream/issues
You are very welcome 🙂
Forum: Reviews
In reply to: [Rendez Vous] Awesome PluginThanks a lot for your review 🙂