Difference between revisions of "Remove commenting option in Photo Albums"

(Created page with "{{alert|'''NOTE:''' It's recommended for you to have backup of the edited template file. Solution is tested with JomSocial 3.2.1.5|alert-warning}} ==Overview== This hack will...")
 
m (Instructions)
 
Line 11: Line 11:
  
 
ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them)<br/><br/>
 
ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them)<br/><br/>
 
<br/><br/>
 
  
 
2. Then edit file and look for this code (line 186 to 193):
 
2. Then edit file and look for this code (line 186 to 193):

Latest revision as of 06:45, 22 October 2014

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/components/com_community/templates/default/photos.album.php

to:

ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them)

2. Then edit file and look for this code (line 186 to 193):

 
<div class="cMedia-Comments">
<a name="comments"></a>
<div class="cWall-Header"><?php echo JText::_('COM_COMMUNITY_COMMENTS') ?></div>
<div id="community-walls">
<div id="wallForm" class="cWall-Form"><?php echo $wallForm; ?></div>
<div id="wallContent" class="cWall-Content"><?php echo $wallContent; ?></div>
</div>
</div>



Just remove that code. This will remove comments feature on album pages.

See Also