NOTE: It's recommended for you to have backup of the edited template file. Solution is tested with JomSocial 3.2.1.5
Overview
This hack will remove commenting feature for Photo Albums page (commenting on Photos stays untouched)
Instructions
1. Copy this file:
ROOT/modules/mod_topmembers/tmpl/default.php
to:
ROOT/templates/your-template/html/mod_topmembers (if you don't have "html" or "mod_topmembers" folders, feel free to create them)
2. Edit file and replace this (lines 19-44):
<?php foreach ( $users as $user ) { ?> <div class="cMod-Row" id="user-<?php echo $user->id; ?>" style="clear:both"> <?php if ( $showAvatar == 1 ) : ?> <a href="<?php echo $user->link; ?>" title="<?php echo JText::sprintf('MOD_TOPMEMBERS_GO_TO_PROFILE', CStringHelper::escape( $user->name ) ); ?>" class="cThumb-Avatar l-float"> <img src="<?php echo $user->avatar; ?>" alt="<?php echo CStringHelper::escape( $user->name ); ?>" width="45" height="45" /> </a> <?php endif; ?> <div class="cThumb-Detail"> <a href="<?php echo $user->link; ?>" class="cThumb-Title"><?php echo $user->name; ?></a> <div class="cThumb-Brief"> <?php if ( $showKarma == 1 ) : ?> <img alt="<?php echo $user->userpoints; ?>" src="<?php echo $user->karma; ?>" /> <?php elseif ( $showKarma == 2 ) : ?> <small><?php echo JText::_('MOD_TOPMEMBERS_POINTS') , ': ', $user->userpoints; ?></small> <?php endif; ?> </div> </div> </div> <?php } ?>
With this code:
<?php foreach ( $users as $user ) { ?> <?php if($user->id != 86) { ?> <div class="cMod-Row" id="user-<?php echo $user->id; ?>" style="clear:both"> <?php if ( $showAvatar == 1 ) : ?> <a href="<?php echo $user->link; ?>" title="<?php echo JText::sprintf('MOD_TOPMEMBERS_GO_TO_PROFILE', CStringHelper::escape( $user->name ) ); ?>" class="cThumb-Avatar l-float"> <img src="<?php echo $user->avatar; ?>" alt="<?php echo CStringHelper::escape( $user->name ); ?>" width="45" height="45" /> </a> <?php endif; ?> <div class="cThumb-Detail"> <a href="<?php echo $user->link; ?>" class="cThumb-Title"><?php echo $user->name; ?></a> <div class="cThumb-Brief"> <?php if ( $showKarma == 1 ) : ?> <img alt="<?php echo $user->userpoints; ?>" src="<?php echo $user->karma; ?>" /> <?php elseif ( $showKarma == 2 ) : ?> <small><?php echo JText::_('MOD_TOPMEMBERS_POINTS') , ': ', $user->userpoints; ?></small> <?php endif; ?> </div> </div> </div> <?php } ?> <?php } ?>
3. Note this part:
<?php if($user->id != 86) { ?>
Just change 86 with your admin user id.