×

Notice

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

TOPIC: Replies not indented

Replies not indented 11 years 5 months ago #21126

  • Fabio Colzada
  • Fabio Colzada's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
I am having a little problem with Ccomment: I don't have indentation of replies (all comments have the same space from border).
I am aware it could be a template issue, but where should I look to find the code that implement the "indentation" feature? Any tips on how to solve this?

Thanks :)

Attachments:

Replies not indented 11 years 5 months ago #21143

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Just go to the backend and enable nested comments. Once you do so people will see a button -> reply. And if they use it comments will get indented.
Regards,
Daniel

Replies not indented 11 years 5 months ago #21146

  • Fabio Colzada
  • Fabio Colzada's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
I did it, I see the reply button and I can add comments as reply, but they are not nested, they come right after the one I replied to, but at their same level, this is why I thought of some kind of css problem.

Replies not indented 11 years 5 months ago #21158

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, most probably the margin is removed by your template. Without a link to your page I cannot tell you what the problem could be.

Regards,
Daniel

Replies not indented 11 years 5 months ago #21173

  • Fabio Colzada
  • Fabio Colzada's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
It's ok, maybe I will ask again once the website will be online. I will try to figure out what the problem is. Do you know the folder where I can find the css of ccomment? And/or the css class responsible for the nesting effect?

Replies not indented 11 years 5 months ago #21186

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Use this tool:


And a new window into the world of web development will open in front of your eyes :)

Cheers,
Daniel

Replies not indented 11 years 5 months ago #21195

  • Fabio Colzada
  • Fabio Colzada's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
I knew it ;) but maybe I still have to learn all its secrets :P I'll let you know if I find something new about my issue. Thanks for now!

Replies not indented 11 years 5 months ago #21196

  • Fabio Colzada
  • Fabio Colzada's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Got it!
I see Ccomment relies on the current template nesting rule for <ul> tags. In my case, for some reason, it has been set by the template owners to... no margin at all.

Getting the code from your Ccomment css template page I added:
.ccomment-replies{
  margin: 0.5em 0;
  margin: 0 0 0 2em;
}

in /media/com_comment/templates/default/css/default.css

In this way (I suppose) it overrides my template css for that specific class and now it looks great!
I don't know if this override will work in any case, but if it is so... maybe it would be useful to add it to the component css by default? So that it will be independent by some weird template setting. Just a suggestion, eheh. Have a good day guys!

Replies not indented 11 years 5 months ago #21213

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Thank you for sharing this! I added a margin to .ccomment-replies just in case it is needed.
By the way -> the code that you have above only the second margin is applied as it overrides the rules of the first one.

Regards,
Daniel

P.S. Don't forget to leave a review about the component over here: extensions.joomla.org/extensions/contact...icles-comments/24030 Thanks!
The following user(s) said Thank You: Fabio Colzada
  • Page:
  • 1
Time to create page: 0.146 seconds