Comments (2)
In the wp-ulike.php there are two sections to change the cookie name, I have tested with new names and it seems to work. Line 38
$data = array( "id" => $post_ID, //Post ID "user_id" => $return_userID, //User ID (if the user is guest, we save ip as user_id with "ip2long" function) "user_ip" => $wp_user_IP, //User IP "get_like" => $get_like, //Number Of Likes "method" => 'likeThis', //JavaScript method "setting" => 'wp_ulike_posts', //Setting Key "type" => 'post', //Function type (post/process) "table" => 'ulike', //posts table "column" => 'post_id', //ulike table column name "key" => '_liked', //meta key "cookie" => 'liked-' //Cookie Name );
and this section in the same file. Line 325
if($post_type == 'likeThis'){ $get_meta_data = get_post_meta($post_ID, '_liked', true); $setting_key = 'wp_ulike_posts'; $table_name = 'ulike'; $column_name = 'post_id'; $meta_key = '_liked'; $cookie_name = 'liked-'; }
Maybe these fields can be put into the database wp-options, and then they are very easy to change.
I hope this helps
from wp-ulike.
Thanks for the info. Hope it helps someone
I knew how to change it, but I rarely like to patch a contrib plugin. I highly recommend changing it though so services like pantheon works, or like you said making it a config option.
from wp-ulike.
Related Issues (20)
- "Search an Icon" field is shown in *every* admin page footer HOT 3
- Corrections to wp-ulike/assets/css/wp-ulike.css (and .min.) for validation
- one post in a given category?!
- wp_ulike_get_post_likes(get_the_ID()) returns 0
- Logged by Cookie. Unlike doesn't work.
- Add autocomplete="off" to front end checkboxes to disable Firefox's automatic state caching HOT 1
- User's like status doesn't work with persistent object caching HOT 4
- wp_ulike_get_most_liked_posts() return only 5 posts HOT 3
- liking doesnt work HOT 1
- 4.5.1 breaks Buddyboss activity stream HOT 1
- How to display post likes in real time? HOT 1
- The like button does not appear by default on posts and comments
- Exclude composer installers directory in deployed version HOT 1
- undefined function ulf_get_google_fonts() HOT 6
- Plugin vulnerability
- Got an error popup "Unable to obtain lock for this request." HOT 1
- Double display of ulike buttons in 4.6.8 in a complex edge case involving Jetpack
- I made a mistake. Please delete this.
- I set for="comment" in the shortcode, but it's still a post type.
- wp_ulike_pro_items loops are not showing posts in order with is_popular="true" parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-ulike.