Disable Emoticons  


Gaskt
Posts: 4
Customer
(@gaskt)
Member
Joined: 9 months ago

Good morning, I wonder if there is a possibility to show disabled emoticons for the user.

I have a vip system on my site and wanted to put animated emoticons just for vip users, I was able to put some custom emoticons just for those users with an if at wpsmiliestrans.php.

But this way ordinary users will not see the vips emoticons, I was wondering if there would be a way for them to see the emoticons, but could not use them.

3 Replies
Astghik
Posts: 3119
Admin
(@astghik)
Support Team
Joined: 2 years ago

Hi @gaskt,

You can use the following hook and write the code with if condition in your active theme's functions.php file.

remove_action('wpdiscuz_button', [$wpDiscuzSmile, 'smileHtml'], 513);
Reply
2 Replies
Gaskt
Customer
(@gaskt)
Joined: 9 months ago

Member
Posts: 4

Hi @astghik,

But would not that disable all emoticons? Because I want to leave only the animated ones disabled, the static ones I want to make available to everyone.

Could you show me an example of how this code would work in functions.php?

Reply
Astghik
Admin
(@astghik)
Joined: 2 years ago

Support Team
Posts: 3119

@gaskt

Could you please send the admin login details to info[at]gvectors.com email address to allow us to understand if you have done some customizations or not and provide you some solution?

Reply
Share: