I had the same problem (I'm using DISQUS as well). Here's your solution.
You'll need to edit the cedit_articlefooter.php file located in the content (which is inside plugins) – /plugins/content/cedit_articlefooter.php.
On line 28 (approximately) you'll find this function:
| Code: |
function onAfterDisplayContent( &$article, &$params, $limitstart )
|
Replace that with this:
| Code: |
function onPrepareContent( &$article, &$params )
|
Then, at the bottom of the php file, locate this:
| Code: |
if ( $user->get('username') == '' ) {
// Guest user
return $guest_msg;
} else {
// Registered user
return $reg_msg;
}
|
And switch it to this:
| Code: |
if ( $user->get('username') == '' ) {
// Guest user
$article->text .= $guest_msg;
} else {
// Registered user
$article->text .= $reg_msg;
}
|
Assuming your plugin order is set correctly (so that this plugin is set to display before the DISQUS plugin) you'll be in business. Hope this helps.