×

Notice

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

TOPIC: Post comment should be same line with Read More!

Post comment should be same line with Read More! 15 years 8 months ago #2755

  • Manos Gryparis
  • Manos Gryparis's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Don't you think that "Post comment" button should be same line with "Read more" button?

Check out www.gameworld.gr . I have to write 5-6 lines to make this button come next to "Read more" button.

(ps.Sorry but fonts are greek as you see)

Post comment should be same line with Read More! 15 years 8 months ago #2764

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Manos,
This is a specific thing to your template. You have to work with the css and the layout of your page to get it so as you want it.

Post comment should be same line with Read More! 15 years 8 months ago #2904

  • Manos Gryparis
  • Manos Gryparis's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
Yes, I know that, but can you help me as I'm a noob in code editing? :(

Post comment should be same line with Read More! 15 years 8 months ago #2908

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I can tell you how to make the comments button to come right above the read more button.
Find this code in your !jocomemnts template
{readon}
	<div class='write_comment'>
		<a href="{READON_LINK}#JOSC_TOP" class="readon">{READON_WRITE_COMMENT} ({READON_COUNT} {READON_COMMENTS})</a>
	</div>
	{BLOCK-preview}
	<div class='comment_preview_container'>
		{preview-lines}
	</div>
	{/BLOCK-preview}
{/readon}

and add the following
{readon}
<div style="clear:both"></div>
	<div class='write_comment'>
		<a href="{READON_LINK}#JOSC_TOP" class="readon">{READON_WRITE_COMMENT} ({READON_COUNT} {READON_COMMENTS})</a>
	</div>
	{BLOCK-preview}
	<div class='comment_preview_container'>
		{preview-lines}
	</div>
	{/BLOCK-preview}
{/readon}

Post comment should be same line with Read More! 15 years 8 months ago #2930

  • Manos Gryparis
  • Manos Gryparis's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 36
  • Thank you received: 0
You mean replace the code with the one below?

And how can I put the comments button below "Read More"? I think this option would be better.

Post comment should be same line with Read More! 15 years 8 months ago #2931

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
yes, I ment replace.

To put the code below read more:
compojoom.com/forum.html?func=view&catid=10&id=205&limit=10

Post comment should be same line with Read More! 15 years 2 months ago #6583

  • lucy
  • lucy's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi Daniel,

Thanks for that info...First let me just say how much I love JoomlaComments.

I agree with the previous post...I'd really like to get the "write comments" button to be NEXT TO the "read more" button" instead of under it.

Currently, following your previous posts, I have it underneath, but it overlaps the article below it...( www.eatbar.me )

I really want to get all the links next to each other on one horizontal line. Is this possible? I'd greatly appreciate it.

Thank you,
lulu.

Post comment should be same line with Read More! 15 years 2 months ago #6589

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Lucy,

It definately is possible, but I have not tried it yet. It would require JoomlaComment changes, but will also require a compatible Joomla template - specifically, a Frontpage/Article Blogview/etcetera core-override, like what many templates do.

The trick is to make it "aware" of JoomlaComment, and to know what to do incase comments are disabled on the article and... yeah, it'd require new code in the Joomla template, and some templates will just be too difficult to implement (without re-writing the entire thing).

I have an idea of how to do it though and will look into it. I'll post here a step-by-step how to when I figure it out.
  • Page:
  • 1
Time to create page: 0.129 seconds