×

Notice

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

TOPIC: display AFTER content?

display AFTER content? 15 years 3 weeks ago #3318

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, sorry! My mistake

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

display AFTER content? 15 years 3 weeks ago #3319

  • RachelSoma
  • RachelSoma's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 24
That's fixed it! Thanks so much from me, and the rest of the Nerd Girl Army :D

display AFTER content? 14 years 11 months ago #3901

  • abvgdz
  • abvgdz's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 8
I've read the whole thread and still have no idea what to do. I just want to move Comments (num) to the row with the author of the article in the frontpage.. didnt think it would be so hard.
Is there a way to call, i dont know what it is, function may be, to display the number of comments in a specific row of com_content\views\frontpage\tmpl\default_item.php?

display AFTER content? 14 years 9 months ago #5354

  • slight
  • slight's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 24
my "read more" is now above the "write comment" thanks to this thread. however, I am getting a space between the 2 links that doesn't look good. obviously it has something to do with my template, but i dont know what to change. the code that was posted before by daniel didn't change anything for me. could someone have a look pls? fetrading.wmw.cc

thanks a lot in advance

display AFTER content? 14 years 9 months ago #5378

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
slight as I see you have turned off the write comment link???

display AFTER content? 14 years 9 months ago #5380

  • slight
  • slight's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 24
sorry, when I played around with the site last night I forgot to turn them back on. so they are now.

display AFTER content? 14 years 9 months ago #5383

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
you have a span with your article separator.

add this to your css file:
.article_separator {
display:none;
}

this will hide it and the write comment will go one line above.

display AFTER content? 14 years 9 months ago #5387

  • slight
  • slight's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 24
worked, thanks!

display AFTER content? 14 years 9 months ago #5446

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
abvgdz wrote:

I've read the whole thread and still have no idea what to do. I just want to move Comments (num) to the row with the author of the article in the frontpage.. didnt think it would be so hard.
Is there a way to call, i dont know what it is, function may be, to display the number of comments in a specific row of com_contentviewsfrontpagetmpldefault_item.php?


Yeah sure there is. But it requires a corehack to your Joomla install we can't help you there :S

If I ever find out a way how to do it, maybe through a custom Joomla template code, truth is i'll probably make such a drastic and fantastically fancy feature [gotta love those FFF's] part of the new premium templates.

display AFTER content? 14 years 8 months ago #5906

  • Ertai
  • Ertai's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 16
Hi guys,

I've read this thread entirely about 4 times, and it's been like 3 hours since i'm trying to fix this thing.

I'm having the same issue as everyone is having, I tried editting the code, I tried, everything.

If I sound kinda desperate, is because I am, I don't have any more ideas.

So, this is my situation right now:

Inside the joomlacomment settings, I have this "onAfterDisplayContent" in Mambot Functions.

This moved the comments below, now, the issue is that it has moved them quite below.

As someone was suggested, I tried editting my CSS to
add this to your css file:
.article_separator {
display:none;
}

But then, my display block line will disappear and I will not have an article separator and everything will look crumbled up.

This is my website: www.gamerbiz.com.ar

I'll leave it like it is right now, so you can see and possibly help me.

Thanks a lot!

Edit: I'm attaching an image just in case, since my english might suck a bit.

display AFTER content? 14 years 8 months ago #5908

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
read this: docs.joomla.org/Understanding_Output_Overrides

an example with the beez temlate.

if you go to templates/beez/html/com_content/frontpage/default_item.php
at the end you will see
<?php echo $this->item->event->afterDisplayContent; ?>

you have to move this to the right position.

display AFTER content? 14 years 8 months ago #5909

  • Ertai
  • Ertai's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 16
There we go,

Thank you so much! :)

display AFTER content? 14 years 8 months ago #6123

  • Rui Goncalves
  • Rui Goncalves's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 8
Hello. Can you help me with this issue, on this site I'm working on?

joomla.rclousa.com

I did the "onPrepareContent" change for what's been suggested previously, but now the site has the Comments "quite" a bit lower than they should.

display AFTER content? 14 years 8 months ago #6124

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm closing this thread, since a lot of people just ask about style issues and nothing related to the the display after content. Please open your own thread for this.
Time to create page: 0.143 seconds