Forum Replies Created
-
AuthorPosts
-
WebtechideasKeymaster
Please share your site url so that we can have a look at the issue. Just want to know if you have also sent an email to support@webtechideas.com?
March 15, 2016 at 6:41 pm in reply to: PHP error message: in_array() expects parameter 2 to be array… #421WebtechideasKeymasterWe did not find this issue at our end. However you can change the code as suggested below which will fix the above warning message. Open the above file using any text editor and just above the mentioned line, please add the following piece of code:
if (!is_array($instance['category'])) { $instance['category'] = (array) $instance['category']; }
This should work. Please let us know.
Thanks
WebtechideasKeymasterWe checked the code and it’s working correctly. Please make sure that the user you are trying to check has already liked some posts on your site while logged in.
You can also echo the query in the content-likes file and run that on phpmyadmin to see the results. We are sure it will pick up the user id but there won’t be anything for him in the wti_like_posts table for which it’s not showing any result. In case it does not pick the user id, you can simply hard code with any user id and see it’s now loading anything or not. If there is any error in the query, you can also see that.
Thanks
WebtechideasKeymasterAlternatively you can use “Exclude post/page IDs” option in the plugin configuration settings page. You can add or remove any post id as per your requirement. If this is the url
wp-admin/post.php?post=8&action=edit
in you post edit screen, then 8 is the post id.WebtechideasKeymasterCan you please share your site url? If you have your own cutom button, please make sure that it’s having proper code to carry out the click functionality.
WebtechideasKeymasterWe have sent you an email with update. Please check.
WebtechideasKeymasterThis export functionality is under consideration. We will release a new version for this.
WebtechideasKeymasterApology for the delayed reply. Can we know the plugin version and your wordpress version please? One question: do you face this problem when using wordpress default theme?
WebtechideasKeymasterApology for the delayed reply. While registering the activity, we do not check for post type. So if you like/unlike any custom post type, we expect this to be recorded as well. We will check this and get back to you.
Thanks
WebtechideasKeymasterCan you please share your site url so that we can have a look at that? Please make sure the option “Disable automatic loading of buttons for post content” is set to “No”.
WebtechideasKeymasterYou need to get the post ids of the top 20 most liked posts. You can query our like table to find out the sum of likes of each post group by post id and sorted by the sum of like count. You can refer to most liked posts shortcode. Once you have the list of post ids, you can check for the current post’s id with the array of most liked post ids by using in_array function. If that function returns true, then that specific post is in the top 20.
October 15, 2015 at 12:51 am in reply to: Show the word "votes" after the total votes and add thousands separator #381WebtechideasKeymasterThe changes are lost because the content is loaded from ajax call where you have not added the necessary changes. You can modify the javascript code dealing with this ajax call. Please open wti-like-post.js file present inside ‘js’ folder using any text editor. There you need to change the following lines
jQuery(".lc-" + post_id).html(response.like); jQuery(".unlc-" + post_id).html(response.unlike);
to
jQuery(".lc-" + post_id).html(response.like + ' votes'); jQuery(".unlc-" + post_id).html(response.unlike + ' votes');
As you can see, we have concatenated the term ‘votes’ to the like and unlike count. You can also apply the thousands separator to the response above. Please refer here. Do let us know if this helped or not.
Thanks
WebtechideasKeymasterLatest version is 2.2. We will check and let you know. BTW if the functionalities are working fine as per the features mentioned, then it should not be a problem.
WebtechideasKeymasterIt does not show up on buddypress sections like activity, groups, forums etc. When you like/unlike wordpress default posts, then that like/unlike activity is shown on buddypress activity section.
Please share a screenshot of our plugin configuration settings page. In case of some themes which do not use wordpress filters properly, the like/unlike buttons will not load automatically as this is dependent on those filters. The theme you are using is a paid one so please send that as well.
Thanks
WebtechideasKeymasterSorry, we don’t think it’s possible.
-
AuthorPosts