Welcome, Guest
Username Password: Remember me

Can I display footer between article and comments
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Can I display footer between article and comments

Can I display footer between article and comments 2 years, 8 months ago #338

Is it possible to have the footer displayed in between the article and the commments? Sometimes there are quite a few comments. I'm using !JoomlaComment 3.26.

Re:Can I display footer between article and comments 2 years, 8 months ago #339

Is JoomlaComment a plugin? If so, then it will be adding comments in the same way that my plugin does - and I'm not sure if there is any way of ordering plugins. To achieve what you are after, my plugin would have to be processed before JoomlaComment.

Re:Can I display footer between article and comments 2 years, 8 months ago #342

they are both plugins. maybe the only way to order them is by the order of installation. I will uninstall the comment plugin and reinstal it. Maybe that changes the order.

Re:Can I display footer between article and commen 2 years, 3 months ago #547

  • timtecsa
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I have same "problem" using Disqus comments plugin. See gpm.tecsa.com/index.php?option=com_conte...aging&Itemid=268

On other articles the "Tell a Friend" module was added manually as {module Tell A Friend Module|none}

Re:Can I display footer between article and commen 2 years, 1 month ago #744

  • alexlr
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hopefully this helps. I posted this in another thread but it also applies to you.

---------

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:

function onAfterDisplayContent( &$article, &$params, $limitstart )


Replace that with this:

function onPrepareContent( &$article, &$params )


Then, at the bottom of the php file, locate this:
      if ( $user->get('username') == '' ) {
         // Guest user
         return $guest_msg;
      } else {
         // Registered user
         return $reg_msg;
      }


And switch it to this:

    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.

Re:Can I display footer between article and comments 2 years, 1 month ago #747

Thanks again for the info, Alex. My plugin was originally designed to always be the last thing displayed (as a footer should be!), but I can understand that others may not want this. I will incorporate the changes suggested here in the next release.
  • Page:
  • 1
Time to create page: 0.20 seconds
Copyright © 2009 www.cedit.biz. All rights reserved.