Keyword

Here is a fix if your titles don't show in Recent Comments

More
12 years 3 months ago - 12 years 3 months ago #45549 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:
$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.

More
12 years 3 months ago #45550 by John Howell
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.

More
12 years 3 weeks ago #45551 by Klaussius
I've just follow these steps, but the issue stills.
www.fusion-freak.com

Please Log in or Create an account to join the conversation.

More
12 years 3 weeks ago #45552 by Katia
@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.

More
11 years 10 months ago #45553 by helpingmedia
Great fix, thanks for the info. Sorted my problem out for my site Media Helping Media.

www.mediahelpingmedia.org/

Thanks again.

David

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum