- Posts: 4
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- DISQUS Comments for Joomla!
- Here is a fix if your titles don't show in Recent Comments
Here is a fix if your titles don't show in Recent Comments
- zee
- Topic Author
- Offline
- New Member
Less
More
12 years 10 months ago - 12 years 10 months ago #45549
by zee
Here is a fix if your titles don't show in Recent Comments was created by zee
The Joomlaworks Disqus plugin doesn't pass any parameters disqus_title. If not provided, Disqus will try to grab this automatically. This may not always work though, which has been the case with my website lately for some strange reason. Nevertheless, here is a very simple fix you can make to take care of this.
Open ROOT/plugins/content/jw_disqus.php
Find:
Beneath that put:
Find:
Above that put:
Done. Now Disqus will show your article titles in their system, as well as Recent Events.
Note this in the comment and, if needed, change accordingly.
Open ROOT/plugins/content/jw_disqus.php
Find:
$output->disqusIdentifier = substr(md5($disqusSubDomain),0,10).'_id'.$row->id;
Beneath that put:
// Article title
$articleTitle = htmlspecialchars($row->title,ENT_QUOTES);
if( !empty($row->page_title) )
{
// The article title has been extended with ' | ThePageTitle'.
// Find the suffix at the end of the full title and remove it.
// If your page titles use - instead of | then change below
$realTitleLen = strrpos( $row->title, ' | '.$row->page_title );
if( $realTitleLen != FALSE )
{
$articleTitle = substr( $row->title, 0, $realTitleLen );
}
}
Find:
var disqus_shortname = '".$disqusSubDomain."';
Above that put:
var disqus_title = '".$articleTitle."';
Done. Now Disqus will show your article titles in their system, as well as Recent Events.
Note this in the comment and, if needed, change accordingly.
// The article title has been extended with ' | ThePageTitle'.
// Find the suffix at the end of the full title and remove it.
// If your page titles use - instead of | then change below
Please Log in or Create an account to join the conversation.
- John Howell
- Offline
- New Member
Less
More
- Posts: 8
12 years 9 months ago #45550
by John Howell
Replied by John Howell on topic Re: Here is a fix if your titles don't show in Recent Comments
Thanks very much for this fix! Has been driving us crazy (sciencefictionworld.com). You're a life saver. Cheers. ;D
Please Log in or Create an account to join the conversation.
- Klaussius
- Offline
- New Member
Less
More
- Posts: 1
12 years 7 months ago #45551
by Klaussius
Replied by Klaussius on topic Re: Here is a fix if your titles don't show in Recent Comments
I've just follow these steps, but the issue stills.
www.fusion-freak.com
www.fusion-freak.com
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 7 months ago #45552
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: Here is a fix if your titles don't show in Recent Comments
@Klaussius, make sure that you use the latest Disqus comments for joomla package version.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- helpingmedia
- Offline
- New Member
Less
More
- Posts: 1
12 years 5 months ago #45553
by helpingmedia
Replied by helpingmedia on topic Re: Here is a fix if your titles don't show in Recent Comments
Great fix, thanks for the info. Sorted my problem out for my site Media Helping Media.
www.mediahelpingmedia.org/
Thanks again.
David
www.mediahelpingmedia.org/
Thanks again.
David
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- DISQUS Comments for Joomla!
- Here is a fix if your titles don't show in Recent Comments