Pierre Lebedel
Forum Replies Created
-
Forum: Plugins
In reply to: [Kodex Posts likes] (Improvement) Shortcode attribute for custom button textHi!
In the new 2.4.2 version, you can add custom text to your buttons by using this shortcode attributes :
[kodex_post_like_buttons liketext="I agree" disliketext="I don't agree"]
I hope that this feature does not come too late.
Thank you to use this plugin !Forum: Plugins
In reply to: [Kodex Posts likes] Which datatable this plugin is using ?Hi.
I did not want to create additional table so I store the votes with postmeta.
The meta_key of votes arrays are kodex_post_likes and kodex_post_dislikes, and the counters are kodex_post_likes_count and kodex_post_dislikes_count.
Thank you to use this plugin !Forum: Reviews
In reply to: [Kodex Posts likes] Really Great PluginHi! Thanks for the review!
I actually think about this kind of features, but it represents some major changes in the code for now.
Stay updated!Forum: Reviews
In reply to: [Kodex Posts likes] Quite Easy & EffectiveHi! Thanks for the review!
Forum: Reviews
In reply to: [Kodex Posts likes] CoolHi, it’s to late, but thank you for the review!
Forum: Reviews
In reply to: [Kodex Posts likes] Best Rating Plugin until nowHi! Thanks for the review!
Thank you also for your proposals. I actually think about this kind of features, but it represents some major changes in the code.
Stay updated!Forum: Plugins
In reply to: [Polylang] Custom Taxonomy Template not workingHi,
It’s the same for me, with the Polylang 1.7.12 and WP 4.3.1
The templatetaxonomy-custom.php
is not used for the taxonomy which are not translated, but if I make aarchive.php
template with a var dump ofget_queried_object()
, I found the Polylang’s current language object.Thanks for all your work!
Forum: Plugins
In reply to: [Kodex Posts likes] How about manual insertion?Nice! And thanks for the review!
Forum: Plugins
In reply to: [Kodex Posts likes] How about manual insertion?Hi,
You have to use the shortcodes.
In your php file, just write somthing like this :
<?php echo do_shortcode('[kodex_post_like_buttons]'); ?>
Forum: Plugins
In reply to: [Kodex Posts likes] Extra parameters in the shortcode?Hi. The changes I have made you make are now integrated in the plugin Version 2.2.
Forum: Plugins
In reply to: [Kodex Posts likes] Forums Like buttonWithout answer, I close the ticket
Forum: Plugins
In reply to: [Kodex Posts likes] Extra parameters in the shortcode?You can try this, but if it does not work the first time, I advise you to wait for the next release:
In the plugin file
public/class-kodex-posts-likes-public.php
, you can replace the entire functionshortcode_buttons
by this code:public function shortcode_buttons($atts){ $a = shortcode_atts(array('postid' => get_the_ID()), $atts); $post_id = $a['postid']; $post_type = get_post_type($post_id); $html = ''; if(in_array($post_type, $this->get_option('post_types'))){ $html .= '<div class="kodex_buttons" style="text-align:'.$this->get_option('alignement').';">'; $html .= $this->buttons($post_id); $html .= '</div>'; } return $html; }
After this change, the shortcode could take a
postid
attribute, like this:[kodex_post_like_buttons postid="1234"]
Forum: Plugins
In reply to: [Kodex Posts likes] Extra parameters in the shortcode?Hi!
Thanks for the review!Actually you can’t do that without modify some PHP code. Maybe in a next release, I’ll prepare that.
But, the shortcode will work if you are in a WP loop.
To be sure, during our dev, you can white something like this beside the shortcode <?php the_ID(); ?>. If the displayed post ID is ok, the buttons will be ok.I need more time to test the plugin with Essential Grid by Themepunch.
Forum: Plugins
In reply to: [Kodex Posts likes] How to change the image/icon of like and dislikeThanks.I keep your idea for a next release
Forum: Plugins
In reply to: [Kodex Posts likes] How to change the image/icon of like and dislikeHey,
For this you have to modify this filepublic/class-kodex-posts-likes-public.php
at the lines 86 and 102. There is where the buttons are made.
In thespan.icon
, you can write animg
tag that use any src attribute.Then you must hide
.icon:before
in the CSS filepublic/css/kodex-posts-likes-public.css
arround the line 29