Giter Site home page Giter Site logo

Comments (2)

djm56 avatar djm56 commented on May 30, 2024

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.

derimagia avatar derimagia commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.