Jump to content

How to hide JomSocial community plugin if empty

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()) {
How would you suggest I go about that in the jreviews community plugins?
Thanks for your help.
Link to comment
  • Create New...