Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: JComment plugin order problem
Pages: [1]   Go Down
  Print  
Author Topic: JComment plugin order problem  (Read 3013 times)
0 Members and 2 Guests are viewing this topic.
unbeat
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: April 30, 2010, 01:56:11 »

Hi...

i instaled yours comment plugin on my website and i have a little problem.

Even that the order of plugins saying that JComment is ordered as first of content plugins, i see several other plugins showing before jcomments. When i looked at the code, i saw that two plugins that are shown before jcomments are the part of article div, and jcomments div is begining after article div?

Is that only my problem? template problem? other plugin problem?
Can we solve that somehow?

My website is: http://www.highlife.rs

Contact me for further informations.

Please help me.

Milos Ignjatovic
Highlife magazin
office@highlife.rs
http://www.highlife.rs
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: April 30, 2010, 16:06:41 »

JComments use onAfterDisplayContent event, but other plugins usually use onPrepareContent.  The onAfterDisplayContent called after article shown... As a quick fix - you could edit content template and move line:

Code: (php)
<?php echo $this->article->event->afterDisplayContent?>
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
unbeat
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: May 03, 2010, 20:35:40 »

Can I somehow change JComment plugin to be called onPrepare instead on AfterDisplay?

...
I have some_related_items (extranews i think) plugin that is called onPrepareContent and it cant be call after cause it needs article id and stuff... but i want comments before related articles.

Maybe there is some other related_items plugin that is called on after dysply? on even better, related_items module?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: May 03, 2010, 21:38:07 »

In my mind more easy is change this plugin to use afterDisplayContent, because JComments' plugin has a lot of code and it will be hard to you... But I'll add this feature to my ToDo list and I'll implement switching event in plugin parameters.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: May 19, 2010, 15:15:49 »

BTW, in JComments 2.2 you could change content event used for displaying comments. By default it set to onAfterDisplayContent but with some needs you could change it to onPrepareContent.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ssnobben
Newbie
*

Karma: 0
Offline Offline

Posts: 20


Email
« Reply #5 on: July 05, 2010, 15:01:21 »

Should you use Jcomments plg as first plg you suggest?

rgds
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: JComment plugin order problem
 
Jump to: