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.

Remove XXXXX has liked XXXXXXX Photos from stream

10 years 2 months ago
  • Matt's Avatar
    Topic Author
  • Matt
  • Offline
  • Fresh Boarder
  • Posts: 25
  • Thank you received: 0
Licenses:
JomSocial Active

Despite the User Points being disabled (as per the screen shot). The XXXXX has liked XXXXXXX Photos activity stream is still showing. Just tried this on the demo website here and can recreate it. Is this a bug, or can these messages not be stopped. It's just my social stream is filling with these as it's quite a heavy photo site and sometimes that's all you can see for a couple of screens.

Attachments:
10 years 2 months ago
Licenses:

Hi, Matt.

You can do that by editing 3 files:

ROOT/components/com_community/templates/default/activities.index.php
ROOT/components/com_community/templates/default/frontpage.index.php
ROOT/components/com_community/templates/default/profile.index.php

Copy them to ROOT/templates/your_current_template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them.

Edit activities.index.php in line 31, change this:

<li id="<?php echo $act->app; ?>-newsfeed-item-<?php echo $act->id; ?>" class="stream feed-<?php echo $act->app; ?>" data-streamid="<?php echo $act->id; ?>">

to this:
<?php if($act->app != 'photo.like') { ?>
<li id="<?php echo $act->app; ?>-newsfeed-item-<?php echo $act->id; ?>" class="stream feed-<?php echo $act->app; ?>" data-streamid="<?php echo $act->id; ?>">

then in line 172 change this:
</li>

to this:
</li>
<?php } ?>

Edit frontpage.index.php in line 58, change this:
				
					<div class="cActivity-LoadLatest joms-latest-activities-container">
						<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
					</div>

to this:
				<?php /* ?>
					<div class="cActivity-LoadLatest joms-latest-activities-container">
						<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
					</div>
					<?php */ ?>

Edit profile.index.php in line 49, change this:
					<?php
						$this->view('profile')->modProfileUserstatus();
                                                if ( JFactory::getUser()->guest != 1 ) {
                                        ?>
					<div class="joms-latest-activities-container" data-actid="<?php echo JFactory::getApplication()->input->get('actid', -1, 'INT'); ?>">
						<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
					</div>
					<?php } ?>

to this:
					<?php /*
						$this->view('profile')->modProfileUserstatus();
                                                if ( JFactory::getUser()->guest != 1 ) {
                                        ?>
					<div class="joms-latest-activities-container" data-actid="<?php echo JFactory::getApplication()->input->get('actid', -1, 'INT'); ?>">
						<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
					</div>
					<?php }*/ ?>

This hack will hide all likes for photos :)

Please check if this works for you.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 2 months ago
  • Matt's Avatar
    Topic Author
  • Matt
  • Offline
  • Fresh Boarder
  • Posts: 25
  • Thank you received: 0
Licenses:
JomSocial Active

Almost...

It's removed them all from the stream, but the right hand column of modules has moved to under the more button. I've followed the instructions twice just in case I've missed something and twice I've end up with the same thing.

I've cleared the cache, but still the same.

10 years 2 months ago
Licenses:

Hi, Matt.

I'm sorry there was a slight mistake in my code. So please revert any changes in frontpage.index.php and try again with this:

Edit frontpage.index.php in line 58, change this:

				
					<div class="cActivity-LoadLatest joms-latest-activities-container">
						<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
					</div>

to this:
				<?php /* ?>
					<div class="cActivity-LoadLatest joms-latest-activities-container">
						<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
					</div>
					<?php */ ?>


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Matt
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