Comment showing in newsflash module

Comment showing in newsflash module

I can't work out how to stop the comment section showing in the newflash module. 

I've tried and tried and I'm obviously missing something obvious. 

How do I stop the comments showing in the newsflash module?

fb_548860032
Huw
useravatar
Offline
50 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Comment showing in newsflash module

That's an excellent question, in all honesty. We get reports every once in a while about the Like or Comment button showing up in places it shouldn't.. this occurs when 'other' extensions call the Content plugins, and we'll need to test and implement a method to ignore showing in the Newsflash module (as we agree it shouldn't either).

Let me look into this a bit more, and I'll let you know what we find.

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Comment showing in newsflash module

Thanks, would be nice to be able to set it to be off because the newsflash module in the site that it's happening with is only 150px wide so it looks awful.

I've just had to reset my password and log in manually because Facebook is down.  Never really thought how much of a problem that could cause for sites where people have logged in using their facebook account!

fb_548860032
Huw
useravatar
Offline
50 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Comment showing in newsflash module

Huw,
Let me start by saying that what I'm about to recommend is something we never recommend or suggest.. making a modification to something that's part of Joomla core. However, in this case, for now (and for a quicker answer), we must.

Basically, what's happening is the the mod_articles_news is calling the content plugins before the articles are rendered. There's actually a mechanism built into the content plugins that let our plugin 'know' where it's being called from (an article view, a module, etc). However, the mod_articles_news module is actually lying, in a way, by saying it's actually the article component. To fix this, our best answer is to simply comment out the line this is occuring on, so it doesn't call the content plugins at all.

If this makes no sense, no worries. I just need to explain the background. To fix, please edit the following file:
/modules/mod_articles_news/helper.php
At line 92, you'll see the below line:

Code:

$results = $app->triggerEvent('onContentBeforeDisplay', array('com_content.article', &$item, &$params, 1));

Please comment this line out by putting a hash '#' sign at the beginning of it.

That should fix you right up, but it will prevent the content plugins from being called in that module, which may cause other issues. Please let us know if it does, and good luck!
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Comment showing in newsflash module

Yes that's worked fine as a temporary fix current/big_smile
They don't need plugins there so that should be fine for a temp fix for now current/big_smile

Thanks

fb_548860032
Huw
useravatar
Offline
50 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Comment showing in newsflash module

Great! Glad to hear that got you going for now. We'll try to find a better solution that doesn't require a change to Joomla, but for now, just remember you made that change in case you upgrade Joomla and the problem comes back.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23659 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11407
Total Polls:
0
Total Posts:
48071
Posts today:
2
User Info
 
Total Users:
47248
Newest User:
kafeti
Members Online:
1
Guests Online:
823

Online: 
jartä
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program