Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

how to hide "number of views"

10 years 1 month ago
  • shiyde's Avatar
    Topic Author
  • shiyde
  • Offline
  • Fresh Boarder
  • Posts: 37
  • Thank you received: 0
Licenses:
JomSocial Expired

Hello

i would like to know how to hide the number of views for videos and photos

thank you

10 years 1 month ago
  • David's Avatar
  • David
  • Visitor
  • Thank you received: 0
Licenses:

Hi Shiyde,

Since we don't have settings on our backend for hide this number, you must do a hack into our code..

for videos you can change it on language/yourlanguage.com_community.ini on your joomla language folder or override this language :

from :

COM_COMMUNITY_VIDEOS_HITS_COUNT="%1$s View"
COM_COMMUNITY_VIDEOS_HITS_COUNT_MANY="%1$s Views"

to :
COM_COMMUNITY_VIDEOS_HITS_COUNT=""
COM_COMMUNITY_VIDEOS_HITS_COUNT_MANY=""

for photos, you can go to components > com_community > templates > default > photos.photo.php and go to line 203 or search this "com-icon-chart" and change the code like below :

from :
<i class="com-icon-chart"></i>
	<span>
		<strong class="photoHitsText" id="photo-hits"><?php echo $default->hits; ?></strong>
	</span>

to :
<i class="com-icon-chart"></i>
	<span>
		<strong class="photoHitsText" id="photo-hits"></strong>
	</span>

Warm Regards,

David

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW