Forum Replies Created
-
AuthorPosts
-
WebtechideasKeymaster
We will get back to you on this tomorrow.
WebtechideasKeymasterWe did not encounter the above warning messages as you have mentioned. However there was some other warning message in the widgets section which has been fixed. We have sent an email with the plugin file as attachment and you need to use that on your server.
If you still get the error, then please add the following line to your wp-config.php file.
define('WP_DEBUG', false);
In case it’s already there and has value set as true, please change that to false.
Thanks
WebtechideasKeymasterYou have mentioned “recently I have had trouble with it and getting PHP error messages”. So did you make any changes on server level which triggered this? Please share the following information as well:
– PHP version
– WordPress version
– Our plugin versionThanks
WebtechideasKeymasterGreat to know that.
WebtechideasKeymasterIts in the wti-like-post-ajax.php file. You can see queries there which registers the data in the database. It also goes through a series of checks to finalize what data will be stored.
WebtechideasKeymasterCan you please share your site url so that we can have a look at the issue? Also send your files (complete theme) so that we can install and check your code.
WebtechideasKeymasterHi,
Please find our input below.1. Custom icons: We use anchor tag with all the attributes related to like/unlike activities. Within anchor tag, we use thumb image followed by a span to show the count. So you will have to use the following attributes for post id 7.
class="jlk"
data-task="like"
data-post_id="7"
=> dynamic post id
data-nonce="1574511354"
=> dynamic wp nonceThe span will be like this
<span class="lc-7 lc">0</span>
. Here like, lc refer to like thumb. For unlike thumb, they will be unlike, unlc respectively.2. The function used to get the users list is
GetWtiUserLikes
. So you can refer to this and implement according to your need.3. We are already in the process of implementing the number of users setting to show. We are currently showing the latest users first. We will add the random users functionality.
Thanks
WebtechideasKeymasterThe ajax calls should be handled by admin-ajax.php and can not be changed. This works when using security plugins but does not seem to work in your case. We had users for whom above solution had worked. This has hardly to do anyhing with our plugin settings rather a set up of your site.
You are using a different plugin so can you please check with their support team? I am sure they must be having some solution. Please post back here once you get this working.
Thanks
WebtechideasKeymasterThe voting gets registered by ajax call which is sent to https://coil.psu.edu/ielol/wp-admin/admin-ajax.php This is the process followed for ajax calls in wordpress. But when we access https://coil.psu.edu/ielol/wp-admin it shows screen to login first to gain access. Since this is restrcited, any non-logged in ajax call fails where as it allows in case logged in.
If you password protect your WordPress Admin directory, then it will break the ajax functionality in the front-end (if it is being used). Open the .htaccess file located in your /wp-admin/ folder using any text editor and paste the following code:
<Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files>
Please let us know if this helped or not.
WebtechideasKeymasterThe meta keys are _wti_like_count, _wti_unlike_count, _wti_total_count. By default all the existing posts wont have these meta data. When someone clicks like or unlike button for a post, then these meta data gets added/updated for that post. On adimn plugin settings page, you will see a button Update Like Meta. If you click this button, then it will update the above meta data for all posts in the system.
WebtechideasKeymasterThe pro and the free versions are different. We are not sure how you are using them. Check the pro documentation section “Installation Procedure” showing the procedure for upgrading. Also we do not see the widget issue in our wordpress 4.5.3 set up. Can you please check the same on a different wordpress set up if you do not want to upgrade? You can also send your theme to us.
WebtechideasKeymasterWe expect you are not using this with post excerpt. Can you please share your site url? This might be a case with css files not getting loaded correctly. So please check that.
WebtechideasKeymasterThere are no custom fields used for this. We have a table “wti_like_post” where we store the like counts for each post. If the value is negative then that’s considered as dislike.
WebtechideasKeymasterYou can use the above query without the user/author condition with a LIMIT restriction. You can also refer to our blog where this has been explained using meta data. You can remove the category check and add LIMIT.
WebtechideasKeymasterYou need to use the code from content-likes.php file. It will show the posts liked by the author. If you want to show the most liked posts authored by the author, then you need to change the query by replacing
WHERE L.user_id = {$author->ID}
withWHERE P.post_author = {$author->ID}
. Do let us know if this helped you or not. -
AuthorPosts