Blaz K.
Forum Replies Created
-
Hi @moisb,
the plugin currently supports automatic migration from the three most popular rating plugins that all have +20.000 active installs. It’s unfortunately too much work to support such a migration for all rating plugins available online π Not least because that also means that I have to track these plugins on updates π
For such a thing I recommend getting a web developer – it shouldn’t be more than an hour or two of work.
Regards,
BlazI’m unfortunately not familiar with Ultimate Addons plugin. Rate my Post has some handy Developer Features with which you can to display the ratings. Check out here: https://wordpress.org/support/topic/developers-developer-features/
I guess what you are looking for is:
Rate_My_Post_Public_Helper::get_visual_rating();
rmp_get_vote_count( $postID );
rmp_get_avg_rating( $postID );Then it’s about adding this into templates of Ultimate Addons plugin which I believe the developer of that plugin can help you with.
Regards,
BlazAlmost there @toengel. You need to check if it’s a post before filtering π
See here:
function pre_append_this($content) { if( is_single() ) { $content = do_shortcode('[ratemypost]') . "<p class=\"recaptchav3\">Die Bewertung des Beitrags ist durch reCAPTCHA geschΓΌtzt und es gelten die <a href=\"https://policies.google.com/privacy\" target=\"_blank\">Datenschutzbestimmungen</a> und <a href=\"https://policies.google.com/terms\" target=\"_blank\">Nutzungsbedingungen</a> von Google.</p>" . $content; return $content; } else { return $content; } } add_filter('the_content','pre_append_this');Hope this was helpful π
Blaz
- This reply was modified 6 years, 9 months ago by Blaz K..
there are at least two way you can do this π
1. Directly in the template
<?php echo do_shortcode('[ratemypost]'); ?>You can read more about post templates here https://developer.wordpress.org/themes/template-files-section/post-template-files/ and here https://developer.wordpress.org/themes/basics/template-files/
2. With the_content filter
Here you can see how to utilize the_content filter:
https://wordpress.stackexchange.com/questions/49786/add-something-to-beginning-of-the-contentRegards,
BlazHi @feedough,
I haven’t yet finished the update since it also includes some other fixes and improvements. Sorry but the development of this plugin is limited to my free time and I’ve been a bit short on it the previous week π
If you are in a rush here are the changes you should make to plugin to migrate from KK star ratings:
https://gist.github.com/blaz-blazer/53cede637ca047c9419b6834033d737a
https://gist.github.com/blaz-blazer/688b6e284e65d4f722dd3be49e7709f8It’s only couple of lines of code. The files you should edit are
\wp-content\plugins\rate-my-post\admin\class-rate-my-post-admin.php
\wp-content\plugins\rate-my-post\admin\inc\class-rate-my-post-admin-helper.phpTo see only the changes click “revisions on the links provided above”. With the changes above the ratings from RMP and KK will be merged rather than overriden.
Regards,
BlazHi @kvncrll,
if you are using some kind of TOC plugin, I recommend enabling “Remove headings in rating widget” option in the advanced settings. This will prevent the TOC plugin from picking up the strings from Rate my Post.
Regards,
BlazThanks for the review @catshands! π
Forum: Reviews
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Fantastic plug-in!Thanks @diamich π
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Polylang integrationHi @ranjseblos,
you should translate the strings via po/mo files or with a plugin such as Loco Translate. Polylang is not a tool to translate po/mo files. You can read more about this here: https://wordpress.org/support/topic/why-does-polylang-not-use-the-default-wordpress-translate-function/
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Hosting CPU usage increase@catshands, regenerating the cache after the post is rated won’t do the trick π when a visitor lands on the page the vote count and average rating have to be updated to match the real vote count and real avg rating which are displayed under the widget – hence the script execution on every page load.
If you are a developer, try to rewrite javascript to do the script execution only once the visitor scrolls to the rating widget. I think this would save quite some resources π You can use a library like waypoints https://github.com/imakewebthings/waypoints and then call load results function (rate-my-post\public\js\rate-my-post-public.js l 46-57).
Blaz
Hi @toengel,
at the moment it’s unfortunately not possible to include results on the main blog page; the plugin only supports results on archive pages (categories, tags, authors etc.). That’s something I have on my to do list and will be added in future versions. Nevertheless, if you are a developer you can check the developer’s features: https://wordpress.org/support/topic/developers-developer-features/ It is possible to add such a functionality with them π
Regards,
BlazForum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Duplicate plugin displayHi @zevstub,
this typically happens with themes that use post types for various elements. You can try adding the rating widget with the shortcode or simply including it in the template:
<?php echo do_shortcode('[ratemypost]'); ?>You can read more about this here:
https://wordpress.org/support/topic/overwriting-excerpts/Regards,
BlazHi @malferov,
thanks for sharing this, but if I understand correctly the bestRating and worstRating should always be 5 and 1. These two properties present the highest value allowed in the rating system and the lowest value allowed in the rating system.
More here:
https://schema.org/bestRating
https://schema.org/worstRatingBlaz