The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Like system Disabled for a specific Member

    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Like system Disabled for a specific Member

    Post by runawayhorses Wed 6 Jun - 18:44

    Is there a way to disable the Like system for a specific Member? In particular the "Negative" voting feature.

    thanks


    Last edited by runawayhorses on Wed 6 Jun - 23:24; edited 1 time in total
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Like system Disabled for a specific Member

    Post by LGforum Wed 6 Jun - 23:13

    You could try this trick. (Consider {LIKECODE} as the whole script for your like/dislike system.

    Change the script to this:
    Code:

    function newLikeSystem() {
      {LIKECODE}
    }
    And put that in the Javascript file.

    Then in an announcement or widget (or even site description if you want_ put:
    Code:

    (function(){
     var username = '{USERNAME*}';
     if(username != 'USERNAME OF PERSON') newLikeSystem();
    })();

    Basically this puts the like code into a function. Then the function is only called if the username variable does not equal the username of the person who keeps presumably abusing the dislike feature.

    This comes with the downside of they will see the original horrible voting system. So actually... this may need re-thinking.

    It would be possible to set an empty image in effect as the dislike image for that certain user. That might work, but it would mean editing the script. Up to you.
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Like system Disabled for a specific Member

    Post by runawayhorses Wed 6 Jun - 23:23

    Ok thanks LG. Its nothing I want to get into at that degree of complexity, that is a hit or miss situation for me as I have no way of testing it. But I appreciate your time and effort in writing that script, I know you took some time doing that. Perhaps this is not a complete loss as someone else might like to pursue this. It is certainly a worthwhile venture to look into and have working and added as a standard feature for the like system.

    thanks again.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Like system Disabled for a specific Member

    Post by Sanket Thu 7 Jun - 7:38

    Topic Solved & Locked

      Current date/time is Sun 22 Sep - 18:25