Hi,
probably this is a stupid question...
How can I change the order of
Read 1 Comments... >>
Read more...
in articles with a "read more" link?
Thank you!
probably this is a stupid question...
How can I change the order of
Read 1 Comments... >>
Read more...
in articles with a "read more" link?
Thank you!
Hi,
try to change onBeforeDisplayContent to onAfterDisplayContent or vice versa in the plugins/content/chronocomments.php
cheers
Max
try to change onBeforeDisplayContent to onAfterDisplayContent or vice versa in the plugins/content/chronocomments.php
cheers
Max
Hi Max
thank you for your prompt reply (as usual...)
I have taken a look to the chronocomment.php in the plugin directory but I wasnt able to find the code you mentioned.
Do I miss something? My current version is ChrnonComment 1.2.
Thank you again
Luca
thank you for your prompt reply (as usual...)
I have taken a look to the chronocomment.php in the plugin directory but I wasnt able to find the code you mentioned.
Do I miss something? My current version is ChrnonComment 1.2.
Thank you again
Luca
No problems, its there just near the top, 2nd or 3rd line!
Max
Max
Hi,
I am also looking for a solution in this problem but when I search the plugins/contents/ChronoComments.php I can't find this code. I find "onPrepareContent" at the top of the file, but nothing about "...DisplayContent". I don't know whether I am blind or...
Yours
--Arvendal
I am also looking for a solution in this problem but when I search the plugins/contents/ChronoComments.php I can't find this code. I find "onPrepareContent" at the top of the file, but nothing about "...DisplayContent". I don't know whether I am blind or...
Yours
--Arvendal
Would be nice to know if I am blind or... I have searched the component and plugin install packages for the text string *display* and found nothing. So it's a kind of mystery...
Yours
Arvendal
Yours
Arvendal
Hi arvendal,
I think it's actually this line #5
Bob
I think it's actually this line #5
$mainframe->registerEvent( 'onPrepareContent', 'plgContentChronocomments' );that needs to be changed to$mainframe->registerEvent( 'onAfterDisplayContent', 'plgContentChronocomments' );Bob
Hi,
thanks for the quick reply. I changed it the way you suggested. Unfortunately it did not do the trick. The presentation is still in this order: 1. article header/intro 2. Chronocomments 3. Read more link. So there must be some other code that determine this feature. Any more ideas?
The plugin is version 1.2
thanks for the quick reply. I changed it the way you suggested. Unfortunately it did not do the trick. The presentation is still in this order: 1. article header/intro 2. Chronocomments 3. Read more link. So there must be some other code that determine this feature. Any more ideas?
The plugin is version 1.2
Hi,
I am sorry to bring up this question again but there must be some trouble with the code for changing order of items and comments. I did the suggested alteration in plugins/content/chronocomments.php, i.e. from:
to:
But I still get this (sorry for the Swedish content, I'll explain below):
The first part is the item's content text.
The red text is the comments link (2 comments...)
The blue text is the item's readmore link.
I would like to alter the order to
1. text
2. readmore
3. comments link
Am I doing something wrong or is there any other code that needs to be altered?
Yours
--Arvendal
I am sorry to bring up this question again but there must be some trouble with the code for changing order of items and comments. I did the suggested alteration in plugins/content/chronocomments.php, i.e. from:
$mainframe->registerEvent( 'onPrepareContent', 'plgContentChronocomments' );to:
$mainframe->registerEvent( 'onAfterDisplayContent', 'plgContentChronocomments' );But I still get this (sorry for the Swedish content, I'll explain below):
Massmedia som larmande gråter krokodiltårar har målat upp konflikten som en strid mellan den unga, stackars, ensamma och oskyldiga entreprenören och den dumma, dumma, okänsliga fackliga maktkolossen Hotell och restaurang.
2 kommentarer...
Läs mer...
The first part is the item's content text.
The red text is the comments link (2 comments...)
The blue text is the item's readmore link.
I would like to alter the order to
1. text
2. readmore
3. comments link
Am I doing something wrong or is there any other code that needs to be altered?
Yours
--Arvendal
I am not at all experienced in programming but the readmore link must be some kind of Joomla core plugin? Does this readmore plugin call for "onAfterDisplayContent"? Perhaps the chronocomments call intercedes? Then the comment link would always be loaded before the readmore link.
Perhaps just a silly question... But I am considering choosing another comment plugin since I cannot get this one to work the way I need.
Perhaps just a silly question... But I am considering choosing another comment plugin since I cannot get this one to work the way I need.
It works... just be careful how you change the line. Have one more look at it and you'll be surprised that it actually works🙂
Huh? Please let us in on your secret... What actually may go wrong when writing the code? I did it the way it was described, but if there's some kind of a trap it would be better if you spelled it out loud.
I had to choose another comment solution since it was impossible to get it right.
I had to choose another comment solution since it was impossible to get it right.
It works... just be careful how you change the line. Have one more look at it and you'll be surprised that it actually works🙂
You're right. I would be surprised, but first you need to explain exactly how to do this.
Hi,
i found this issue in the forum but there is no solution for the problem. i tried the said things, but it didn't work.
These are the first lines of my chronocomments.php file:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$mainframe->registerEvent( 'onAfterDisplayContent', 'plgContentChronocomments' );
require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
what am i doing wrong?
greetings,
spolde
i found this issue in the forum but there is no solution for the problem. i tried the said things, but it didn't work.
These are the first lines of my chronocomments.php file:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$mainframe->registerEvent( 'onAfterDisplayContent', 'plgContentChronocomments' );
require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
what am i doing wrong?
greetings,
spolde
This topic is locked and no more replies can be posted.
