Mathieu Viet
Forum Replies Created
-
Forum: Plugins
In reply to: [BP Search Block] Add support to search custom post typesHi,
This part is more specific to WordPress than BuddyPress. The only thing the block is adding relative to WordPress is the regular WordPress search, I don’t think this is something we’ll try to add to the block. Sorry.
Forum: Plugins
In reply to: [BP Group Documents] Transfer from Buddydrive to BP Group DocumentsHi @mathieu75
@lenasterg pinged me about your need as I was the first author of the BuddyDrive plugin. I’ve transferred this plugin for years now. But I’ll try to look at a way to at least extract the data more easily using the export feature of WordPress.
Forum: Reviews
In reply to: [Gutenberg] A major step for WordPress opening new feature opportunities@karmatosed you are very welcome, it’s very deserved 😉
Thanks a lot for your feedbacks about the future features. Just checked 3026: it looks awesome.
About iterations, I have nothing in mind in particular: we can always improve things. The only little improvement I see is about the
upload_filescapability and the media blocks (https://github.com/WordPress/gutenberg/pull/4155). But I’m saying it with a very low voice, hiding behind a tree, because I’m the one to blame about the fact progresses about it were a bit stuck for a month. I was afk during July but I promise I’ll find the time in the coming weeks to improve and update the PR 🙂Forum: Plugins
In reply to: [WP Idea Stream] Voting multiple timesThere’s a metabox inside the Idea’s editing screen in the Administration to manage votes. So of course, you can build this feature. If you do so, please share it 🙂
Forum: Plugins
In reply to: [WP Idea Stream] Problems with voting ideas – only admins can voteHi @sweeny,
The Rest API is a great feature added by WordPress in version 4.4. In Version 4.7 content endpoints were added. Some security issues appeared but were quickly fixed in 4.7.1, 4.7.2 and 4.7.3.
If i’ve decided to use it for ratings, (1) that’s because it avoids loading the full WP Admin at each vote and prevents bugs when other plugins are generating errors when
admin-ajax.phpis used see: https://wordpress.org/support/topic/rating-broken/(2) The Rest API is a really promising feature.
Now if your security plugin is blocking the full Rest API, it’s really making me sad and i really hope their authors are contributing to the WordPress Rest API to make it more secure (according to their standards) as blocking it means they don’t trust it.
If it’s my specific Rest request, then they should send a security issue to the plugins team so that i can work on it to fix it and so that it can benefit to all plugin’s users.
I won’t come back to the old way of saving votes, i’ll carry on using the Rest API because I trust WordPress and the core contributors.
If you don’t want to use it, you can always come back to WP Idea Stream 2.3.0 or deactivate the rating system and use another plugin for it (see https://wordpress.org/support/topic/problems-with-voting-ideas-only-admins-can-vote/#post-8934153).
Forum: Plugins
In reply to: [WP Idea Stream] Problems with voting ideas – only admins can voteHi @sweeny
I’ve installed a brand new WordPress 4.7.3, changed the permalinks to something different than default (this is required by the Rest API), activated WP Idea Stream 2.4.0. Then i’ve created 4 roles:
– editor
– author
– contributor
– subscriberAs an admin i’ve posted a new idea. I’ve voted it and my vote was saved.
Then i’ve switched to an editor, author, contributor and subscriber and voted on each roles. Result: every vote was successfully saved.So for me everything works as expected and i can’t reproduce your issue. I suggest you deactivate all plugins, activate the Twentyseventeen theme to check you have this same behaviour. Then reactivate your theme and check if the problem has appeared, if not activate all other plugins one by one to find the one that is problematic for WP Idea Stream.
Forum: Plugins
In reply to: [WP Idea Stream] non logged in user can vote alsoAh ok. Well it’s not a question of spamming. I just don’t want to support it and play with IP address. So a user ID is required to vote. Sorry if you don’t like it, but as you said some plugins are doing it so everyone is free to use them if that’s a blocker for them 🙂
Forum: Plugins
In reply to: [WP Idea Stream] Problems with voting ideas – only admins can voteFirst, it’s a bit annoying to reply to something that has nothing to do with the original topic. So next time, try to read and see if your topic is relative. ALlowing ideas to be voted for non logged in users has nothing to do with the problem described in the topic.
Then, you can always use Idea Factory if you don’t like the fact i’m not allowing non logged in users to vote. That’s a very easy step!
Else, there’s no easy step, you need to disallow the built in rating system and find another plugin to deal with ratings. Here’s the filter to disallow built in ratings:add_filter( 'wp_idea_stream_is_rating_disabled', '__return_true' );Now it’s a mess, my next reply will be for the original topic of this thread:
only admins can vote
Forum: Plugins
In reply to: [WP Idea Stream] non logged in user can vote also??? you mean if you activate antispam bee non loggedin users can vote ??
Forum: Plugins
In reply to: [WP Idea Stream] Problems with voting ideas – only admins can vote@tobias_conrad i won’t support non logged in votes so you can disable the built in system and use another one.
@sweeny I’ll test with editors or regular users. Since 2.4.0 it’s using the REST API, so make sure you haven’t disabled it.
Forum: Plugins
In reply to: [WP Idea Stream] Using shortcode to insert ideas in post/page.Hi,
Thanks for your feedback, i won’t.
https://wordpress.org/support/topic/where-can-i-find-the-shortcode-2/#post-8740315Forum: Plugins
In reply to: [WP Idea Stream] Rating TableYou can use this function :
wp_idea_stream_add_rate( $idea = 0, $user_id = 0, $rate = 0 )where $idea is the ID of the idea, and $rate the number of stars.
You can also do
var_dump( get_post_meta( $idea_ID, '_ideastream_rates', true ) );to see the structure of the array.It’s a multidimensional array having number of stars as keys and the array of user ids as values for each key (star).
Forum: Plugins
In reply to: [WP Idea Stream] Rating TableHi,
Ratings are not stored in a specific DB table. They are stored as Post Meta Data in a serialized array for each post. In your
$GLOBALS['wpdb']->postmetatable you’ll find them under the meta_key_ideastream_rates.As a result when an idea is deleted, the corresponding ratings are also deleted.
- This reply was modified 9 years, 2 months ago by Mathieu Viet.
Forum: Plugins
In reply to: [BP Idea Stream] Featured Image – slight anomolySo i’ve checked it on Twentysixteen and the behavior is consistent between general scope and BuddyPress group’s one.
When you add an image and select it as featured, if you leave the image into the editor, then it will be displayed twice: once in the theme’s featured image tag and another time into the content of the idea.
I guess we could remove the idea from the content when creating the idea when the checkbox is checked. But at the same time, if we do that a user who has added more than one image and has to change his mind about the featured image to add, it would lost an image in the editor.
I think best scenario is to inform user he can remove the featured image from the content thanks to a feedback message.
Thanks again for bringing this behavior in this topic.
Forum: Plugins
In reply to: [WP Idea Stream] Frontend EditingHi @sweeny
With no other plugins activated than WP Idea Stream 2.4.0, i cannot reproduce. Only the Administrator can edit ideas within the back-end. Authors or any other roles than Administrator only can edit ideas on front end and for 5 minutes.
So i confirm authors can only edit ideas in front-end. BTW if you wish to raise these 5 minutes you can use this code: https://gist.github.com/imath/e57c1a3798697a862cbd03b76cd5f84d
- This reply was modified 9 years, 2 months ago by Mathieu Viet.