Jump to content

How to hide JomSocial community plugin if empty


Adam Melcher
Go to solution Solved by Adam Melcher,

Recommended Posts

I've been able to add the option in other community plugins to hide the plugin from the user's profile page if it's empty, but because I can't really do that in the jReviews plugins since they will be overridden in the next update, I am not sure how to set it up so if there are no listings, it doesn't leave a message, but rather doesn't enable the plugin at all.  

 

The way I've done it in the past is find the public function onProfileDisplay() and then for instance in the easyblog community plugin, I would add this :

 

 

{
if (!$this->exists()) {
return;
}
 
How would you suggest I go about that in the jreviews community plugins?
 
Thanks for your help.
 
Adam
Link to post
  • Solution

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Link to post
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.