-
Milan Petrovic
Keymaster -
savage
ParticipantJune 16, 2020 at 12:56 am #63890shortcodes and functions to do that? can you point how can i make it happen ?
thanks again
ori -
Milan Petrovic
KeymasterJune 16, 2020 at 8:42 am #63891Here is basic info about rating PHP functions: https://support.dev4press.com/kb/article/manually-add-rating-block-with-php/, and there are many more in the knowledge base with information about functions. Plugin also includes shortcodes builder so you can generate shortcodes and use them too.
Dev4Press - Premium plugins for WordPress.
-
savage
ParticipantJune 16, 2020 at 8:50 am #63892thanks
1. i don’t know any php so good so there is a way to get the right syntax for star rating for all my post?2. what file i should add it to get the post page or main page display the rating star?
thanks again
ori -
Milan Petrovic
KeymasterJune 16, 2020 at 10:06 am #63893Hi,
This depends on the theme, where you want to include it, there is no universal solution for this. For any use of PHP functions or code, you need some knowledge of PHP, there is no other way. Code has to go inside the WordPress loop, and there are examples in the article I linked that are made for loop.
Milan
Dev4Press - Premium plugins for WordPress.
-
savage
ParticipantJune 16, 2020 at 10:04 pm #63895thanks
1. i manage to do that but i can’t see the starts on mobile i mean i see the text that said no vote yet but the stars are not there :(
2. how can i translate the plugin where is the lang files are ?
thanks again
ori1 user thanked author for this post.
-
savage
ParticipantJune 16, 2020 at 10:07 pm #63896sorry about that but update about number 1
it’s seems that the starts icons are gone only when the user are not login!
thanks again
ori -
Milan Petrovic
KeymasterJune 16, 2020 at 10:22 pm #63898Without seeing the page with the problem, I have no idea why the stars are not displayed. Include the link where the plugin is used, and I will check it out. Free plugin is translated through WordPress.org: https://translate.wordpress.org/projects/wp-plugins/gd-rating-system/. But, if you want to use your own translation without going through WP.org, check this out: https://support.dev4press.com/kb/faq/where-should-i-install-plugin-translations/.
Dev4Press - Premium plugins for WordPress.
-
savage
ParticipantJune 16, 2020 at 10:42 pm #63899there is a link:
www.conspiracy.co.il
and i add a photo of the problem thanks :)
ori -
savage
ParticipantJune 16, 2020 at 10:43 pm #63900sorry the file didn’t enter the post
-
Milan Petrovic
KeymasterJune 16, 2020 at 11:22 pm #63902The problem is the JSON settings added with each rating block are broken. Since my plugin uses PHP json_encode function, you either have some server setup issue to cause the problem (very unlikely), or the problem is caused later by some other plugin (maybe the plugin that is used to optimize JS/CSS, and HTML content). Problem with the JSON is values for boolean ‘true’ and ‘false’, and they are not encoded as ‘true’ and ‘false’, and instead, they are ‘!1’ and ‘!0’. Try running the website without the cache plugin (I think you are using EZCache) to see if it works.
Dev4Press - Premium plugins for WordPress.
-
savage
ParticipantJune 16, 2020 at 11:31 pm #63903yep this was the problem. there is a way to exclude only the file make the problem and keep the EZCache working i mean i must keep my website work fast you know
thanks again
ori -
Milan Petrovic
KeymasterJune 16, 2020 at 11:48 pm #63904Problem is not with a JS file from my plugin, problem is with the embedded JSON added into page content. I am not sure what EZCache does, but it breaks HTML during minimization. I use WPRocket plugin, and it minimizes HTML without breaking it.
Dev4Press - Premium plugins for WordPress.
-
savage
ParticipantJune 17, 2020 at 12:37 am #63905ohh ok got you thanks i’ll see what i can do to solve it with this plugin if not i’ll change thanks :)
-
savage
ParticipantJune 23, 2020 at 1:27 am #63951hey buddy so i now use wp rocket but i’m not manage to render this file
/wp-content/plugins/gd-rating-system/css/fonts/default/gdrts-icons.woff?401.1260
any idea what i’m doing wrong?
thanks
ori -
Milan Petrovic
Keymaster
- The topic ‘show rating on home page or post page?’ is closed to new replies.