Like system Disabled for a specific Member
3 posters
Page 1 of 1
Like system Disabled for a specific Member
Is there a way to disable the Like system for a specific Member? In particular the "Negative" voting feature.
thanks
thanks
Last edited by runawayhorses on June 6th 2012, 11:24 pm; edited 1 time in total
Re: Like system Disabled for a specific Member
You could try this trick. (Consider {LIKECODE} as the whole script for your like/dislike system.
Change the script to this:
Then in an announcement or widget (or even site description if you want_ put:
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.
Change the script to this:
- Code:
function newLikeSystem() {
{LIKECODE}
}
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.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Like system Disabled for a specific Member
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.
thanks again.
Re: Like system Disabled for a specific Member
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Adding a background onto a specific member's profile page.
» Hide posts from specific member
» Hide topics from specific member
» Signature Content Height Specific Member
» how to make the member is the only capable to see his participation in a specific section
» Hide posts from specific member
» Hide topics from specific member
» Signature Content Height Specific Member
» how to make the member is the only capable to see his participation in a specific section
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum