The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Like system Disabled for a specific Member

View previous topic View next topic Go down

Solved Like system Disabled for a specific Member

Post by runawayhorses on 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

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
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 on 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
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Like system Disabled for a specific Member

Post by runawayhorses on 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.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
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 on June 7th 2012, 7:38 am

Topic Solved & Locked

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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