×

Notice

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

TOPIC: Write comment Link

Write comment Link 16 years 1 month ago #1300

  • Dewald
  • Dewald's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi there!
First off, great component, ive tested all the other free comment components and they dont come near this one.

I do have one problem however, im creating a template for a client, and i need to move the "Write comment (0 Comments)" link down into position next to where the "Read More" link always go. At the moment by default its just going above the latest update text.

Heres a little visual on what im talking about!
My template i designed:


The result i get:



Here is a live link of the template im working on.
Any help would be greatly appreciated!
Thanks
Dewald.

Write comment Link 16 years 1 month ago #1319

  • Mehdi Dhakouani
  • Mehdi Dhakouani's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Here's how I did what you try to do in my template...

First off, I disabled the regular showing of the Comments link in place of the "readon" link.

Then, in my template, I inserted this (valid only with JoomlaComment! 3.26 and Joomla 1.5.x) in my frontpage template for an item (default_item.php):
<?php
$joscplugintext = ""; //Do not remove this line !!!
$row = $this->item;
$params = $this->item->params;
require(JPATH_ADMINISTRATOR.DS."components/com_comment/plugin/com_content/josc_com_content.php");
?>
	<div class="comment">
		<?=$joscplugintext; ?>
	</div>
It's not the cleanest way to do it... But the JoomlaComment! code is very hard to follow when you're an outsider.

You might need to just change a bit if you're under Joomla 1.0.x... like:
<?php
global 
$joscplugintext = ""; //Do not remove this line !!!
$row = $this->item;
$params = $this->item->params;
require(JPATH_ADMINISTRATOR.DS."components/com_comment/plugin/com_content/josc_com_content.php");
?>
	<div class="comment">
		<?=$joscplugintext; ?>
	</div>

You then just need to place the div in the correct place...
I didn't find any other way to not rely only upon the a.readon tag.

Have fun,
Mehdi
  • Page:
  • 1
Time to create page: 0.097 seconds