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.

Like system Disabled for a specific Member

3 posters

Go down

Solved Like system Disabled for a specific Member

Post by runawayhorses June 6th 2012, 6:44 pm

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 June 6th 2012, 11:24 pm; edited 1 time in total
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Like system Disabled for a specific Member

Post by LGforum June 6th 2012, 11:13 pm

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.
LGforum
LGforum
Hyperactive

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

Back to top Go down

Solved Re: Like system Disabled for a specific Member

Post by runawayhorses June 6th 2012, 11:23 pm

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.
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Solved Re: Like system Disabled for a specific Member

Post by Sanket June 7th 2012, 7:38 am

Topic Solved & Locked
Sanket
Sanket
ForumGuru

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

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum