Support » Plugin: WP ULike » ulike_obj

  • I’ve updated 2.6 to v2.8 and as i’m using ulike_obj.ajaxurl previously on v2.6 is now not working on v2.8. May i check with you how do i get the ajaxurl easily?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • I found out the new url is -> wp_ulike_params.ajax_url but upon using the new url, seems like on success, the response is empty. Any idea?

    Plugin Author Alimir

    (@alimir)

    @knivore

    Do you use the old functions structure? Please check our new wp-ulike.js functionalities.

    knivore

    (@knivore)

    I’ve updated to this structure ->
    $.ajax({
    type:’POST’,
    cache: false,
    dataType: ‘json’,
    url: wp_ulike_params.ajax_url,
    data:{
    action: ‘wp_ulike_process’,
    id: 60,
    type: “likeThisTopic”,
    nonce: 0,
    status: 4
    },
    success: function(response) {
    console.log(response)
    }

    But the console log is showing me null pointer. Was wondering if i’ve missed out anything.

    Plugin Author Alimir

    (@alimir)

    @knivore

    The value of 0 is not acceptable in nonce data. You’ve to use of the nonce data attribute.
    why you don’t use of the default script?!

    Plugin Author Alimir

    (@alimir)

    You have also used static id & status values!!!!

    knivore

    (@knivore)

    The status & id was actually retrieved from on click. Just that i plaste it in here for convenience sake.

    I would like to use the default script, but because i’m currently maintaining another person’s code base so i like to make minimal changes.

    So i guess its the missing nonce value that is causing me issues then.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.