×

Notice

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

TOPIC: JoComment position change

JoComment position change 15 years 4 months ago #5292

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I need to change comments position insite the article. This image shows where is my time/date and author stamp at the front page.



And this shows where it's placed inside the article view.



Any ideas? Thx for help!

JoComment position change 15 years 4 months ago #5293

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

JoComment position change 15 years 4 months ago #5300

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Ok, thanks, it works in article view but I don't know how to put 'write comment' (napisz komentarz here) to the proper location at the front page (and I didn't find the answer in the topic which you linked).

JoComment position change 15 years 4 months ago #5303

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
did you use before content?
I thought that it should be aftercontent

JoComment position change 15 years 4 months ago #5316

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
What I did was changing "Mambot content function" to "onAfterDisplayContent::JOSCusereturn"

Ahh, ok. I know what happend. Write comment is under the news as it should, but it's under article separator- that's why I thought that it's above the article! I'll do some research, maybe I'll manage how to put it above article separator.

JoComment position change 15 years 4 months ago #5321

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You will have to play with your template for the frontpage. Open your template and go to the html folder and find the frontpage template. There you cna search for onAfterdisplayContent - place it where you want it to be. Then it should work.

JoComment position change 15 years 4 months ago #5324

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Daniel Dimitrov wrote:

You will have to play with your template for the frontpage. Open your template and go to the html folder and find the frontpage template. There you cna search for onAfterdisplayContent - place it where you want it to be. Then it should work.

Do you mean site template, content templates or JoComment template? I've searched all of these and I found it in com_content folder in all views (article, category and frontpage) but it's at the end of the file and idk what to do with it. It looks like that
}
 
		$item->event = new stdClass();
		$results = $dispatcher->trigger('onAfterDisplayTitle', array (& $item, & $item->params,0));
		$item->event->afterDisplayTitle = trim(implode("n", $results));
 
		$results = $dispatcher->trigger('onBeforeDisplayContent', array (& $item, & $item->params, 0));
		$item->event->beforeDisplayContent = trim(implode("n", $results));
 
		$results = $dispatcher->trigger('onAfterDisplayContent', array (& $item, & $item->params, 0));
		$item->event->afterDisplayContent = trim(implode("n", $results));
 
		return $item;
	}
After that code there is one "}" and the file ends. There is nothing about article separator above it.

JoComment position change 15 years 4 months ago #5326

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm speaking for joomla core templates. Here is more info about it:
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

JoComment position change 15 years 4 months ago #5328

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Ok, thanks a lot! That works!

JoComment position change 15 years 4 months ago #5329

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
That is great :)
Would it be too much to ask you to write a review here:
extensions.joomla.org/extensions/contact...omments/4389/details

JoComment position change 15 years 4 months ago #5330

  • Michal Piatek
  • Michal Piatek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Daniel Dimitrov wrote:

That is great :)
Would it be too much to ask you to write a review here:
extensions.joomla.org/extensions/contact...omments/4389/details

Sure, why not. I shall write it today!
  • Page:
  • 1
Time to create page: 0.118 seconds