×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Any way to send to bottom, below rating?

Any way to send to bottom, below rating? 14 years 5 months ago #7614

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Hi

I'm trying to use Joomlacomment together with votitaly rating system (based on Jommlas default). I hacked the plugin php file so it would display after the article instead of on top. The code I changed is:
from
$mainframe->registerEvent( 'on[color=#00BF00]Before[/color]DisplayContent', 'plgVotitaly' );
to
$mainframe->registerEvent( 'on[color=#FF0000]After[/color][color=#FF0000][color=#FF0000][/color][/color]DisplayContent', 'plgVotitaly' );

The problem I have now is that the nice little stars go to the bottom of the page, after the comments, which os not ideal. So, do you think the would be a way to place the comments below the rating?

Thanks for the help.

Any way to send to bottom, below rating? 14 years 5 months ago #7642

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Hmm.... have you tried changing the order of the Plugin in Plugin Manager to make Votitaly Plugin before JoomlaComment Plugin?

Any way to send to bottom, below rating? 14 years 5 months ago #7649

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
That would have been an easy one :P But it didn't work. Votitaly on 0 or on -1 and !Joomlacomment on 1001 will still display the stars at the bottom. Any other tip?

Thanks

Any way to send to bottom, below rating? 14 years 5 months ago #7650

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
!Joomla comment is not reordable like other plugins, maybe that has to do with this...

Any way to send to bottom, below rating? 14 years 5 months ago #7651

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I just installed this cool little vote plugin and tried to figure it out, but it's a liiiiitle bit beyond my current skills! I'm sure we will have to play with the onPrepareContent event registration, but I don't know where to start really.

I should speak to Daniel to see if it's possible for us to force JoomlaComment to always be on the very bottom, I think it's best to look at it that way (and it makes sense to keep it on the very bottom anyway - for this reason!)

I even tried changing Joomla Comment to register onAfterDisplayContent but that didn't work either... hmm let me do some more Google'ing and testing.

Any way to send to bottom, below rating? 14 years 5 months ago #7652

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Thanks for your time Jonus.

I've been googling myself about onAfterdisplayContent, but could'nt get anywhere, it is a bit too Joomla hardcore for me.

The only I can come up with is inserting the {joscommentenable} tag at the end of the article. I am using jSeblod cck, so it shouldn't be too hard. Anyway, it would probably be better if there was a way to reorder the plugins.

Any way to send to bottom, below rating? 14 years 5 months ago #7653

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I'm pretty sure the problem is JoomlaComment and the way it's coded. I don't think it's Daniels' doing, because he took over the component from the original creator - and never redesigned the plugin as far as I know - but it inserts itself within the com_content body - it 'hooks' into it sort of thing - and other plugins have no way and no idea to see the difference between the article text and the Comment system, it just sees them all as one thing - the content.

That's... just my own words, so take it with a grain of salt. It seems to make sense though, but I've only read the Joomla dev docs and thread after thread on specific things, and just have a long background in legacy scripting but PHP is relative new to me and Joomla is VERY new to me...

Ahem, I digress. I really haven't had the time to sit down and actually read or do training in Joomla or Web Development, I lack patience and still have my day work to do... but I really should, because it annoys the HECK out of me that I can't solve this seemingly simple issue...

...well that was a rant, sorry about that haha. Yeah I'm still trying some things, you are lucky to catch me at this time because I'm very interested to figure this out myself - it'd be good Joomla knowledge - I bet Daniel knows straight away what to do, but I'm not sure how long until he arrives home.

We'll figure it out.

Any way to send to bottom, below rating? 14 years 5 months ago #7654

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Well, thank you so much. I don't want to kill your time anymore. It will probably be somethig really obvious...

Any way to send to bottom, below rating? 14 years 5 months ago #7655

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
yeah, I think we'd be best waiting for Daniel if you don't mind waiting a couple of days, I am actually working on new features and bugfixes right now (just finished ReCaptcha security, and that's not even the most exciting feature for next release ;) )

Any way to send to bottom, below rating? 14 years 5 months ago #7656

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Can wait for Daniel, can't wait for that release :) Thanks a lot

Any way to send to bottom, below rating? 14 years 5 months ago #7669

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Try
onAfterDisplayContent::JOSCusereturn

Then play with the order.

Any way to send to bottom, below rating? 14 years 5 months ago #7671

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I can confirm that works :) put that code in the JoomlaComment backend (on the first page of Content Settings, it's the first one there) instead of onPrepareContent. Then change the VOTItaly to onAfterDisplayContent as you already did. The voting stars are now after the article but before the comments on my localhost site (the JoomlaComment plugin order is already 1001 so it's loaded last in that case) :)

Surprised I didn't try that, it's mentioned in the content plugin comments...

Any way to send to bottom, below rating? 14 years 5 months ago #7677

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Grrreat. And I can even fix it from backend... Thanks a lot!

Any way to send to bottom, below rating? 14 years 5 months ago #7678

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Tony please don't forget to leave a review here:
extensions.joomla.org/extensions/contact...ticles-comments/4389

Any way to send to bottom, below rating? 14 years 5 months ago #7679

  • Toni
  • Toni's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
I did after my last message :) It's on moderation.
And you are in my list of donations for when the site is running.

Thanks a lot for your great apportation to Joomla community.
  • Page:
  • 1
Time to create page: 0.130 seconds