×

Notice

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

TOPIC: "Write Comments" & "Read More" on same line?

"Write Comments" & "Read More" on same line? 15 years 2 months ago #6852

  • Freethinker99
  • Freethinker99's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I know this subject has been discussed before, as I have read several threads and spent hours sifting through numerous messages both here and on the Joomla forum.

As I understand it, I'm supposed to put the following code into a joomlacomments template file, apparently the index.html.

{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}


However, when I go into my joomlacomments folder, then into the "templates" folder, there are several other folders in there, each with a file named index.html

I have tried putting the code into several of these index.html files, to no avail. I am completely unsure which of these files to alter.

Step-by-step instruction would be most appreciated.

Ideally, I would like to have the "Read More" and "Write Comments" links look like they do in this screenshot. I have written the webmaster of that site to ask what he did, but have not gotten any response yet.



I am assuming that the code as provided above may need to be changed in order to achieve this particular format? If so, please provide the proper code. Thank you!

"Write Comments" & "Read More" on same line? 15 years 2 months ago #6853

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Who told you to add the above code to index.html??? It is already there.

Read this thread:
compojoom.com/forum/10-newbies-area/205-display-after-content

It is a little bit long, and some of the information will be of no use to you, but the biggest part will tell you what you need.

Make special attention on template overrides! (here I'm speaking about joomla's templates and not joomlacomment's one)

"Write Comments" & "Read More" on same line? 15 years 2 months ago #6855

  • Freethinker99
  • Freethinker99's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Thanks.

I believe it was you who provided that code, here:

compojoom.com/forum/6-bug-report/2755-po...-with-read-more#2908

In the other thread you've referenced in your response here - I read pretty much the entire thing before I posted - you indicated the code could be found in the joomlacomments template and should be replaced by one almost the same.

That would be at the bottom of this page here:

compojoom.com/forum/10-newbies-area/205-...nt?limit=10&start=30

And at the top of the next page you corrected it. I don't see much of a difference in the two, but I have next to no experience with css or php.

As I understood it, I was to find THIS code at the top of your message at the bottom of the page I just linked and replace it. This code {readon}<div class='write_comment'>... is NOT in any joomla template that I could find. It is only in the joomlacomments templates, of which there are several.

So, I still don't have any idea whatsoever on how to reproduce what I see in the template I provided in my first post.

Thanks.

"Write Comments" & "Read More" on same line? 15 years 2 months ago #6860

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Since you mentioned you have very little PHP and CSS skills, I suggest you brush up on Joomla authoring docs. Specifically, these two pages of the docs will be of great use:

Joomla Documentation - Understanding Output Overrides
Joomla Documentation - How to override the output from the Joomla! core

Reading both them in that order will help a lot.

"Write Comments" & "Read More" on same line? 15 years 2 months ago #6879

  • Freethinker99
  • Freethinker99's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Thanks. The whole thing rather makes my head spin. One would think it would be easier by now, after all these years of the internet existing.

A simple step-by-step in how to achieve what I provided in my original screenshot would have been sufficient, rather than me having to go to school to learn scripts and coding.

"Write Comments" & "Read More" on same line? 15 years 2 months ago #6951

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
A nice donation from all the users of JoomlaComment would be nice too, but it's surprising how few people actually care about saying "thanks developers who work to make our life easier in your spare time!"

Knowledge is power friend ;) that Joomla knowledge will definately help you down the road, I guarantee it.
  • Page:
  • 1
Time to create page: 0.119 seconds