×

Notice

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

TOPIC: Comments and form to appear initially hidden?

Comments and form to appear initially hidden? 15 years 3 months ago #5946

  • Jaime
  • Jaime's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hello... I need that initially appear comments and form area in a hidden state. When there are comments, by clicking on "comments (n)" link, comments appear. The same for the form. Initially is hidden but when "New comment" is pressed, the form has to appear.

I added some JavaScript for the comments area and it worked, but when I did the same for the form, I have to click twice in order to make the form to be visibile again. The first click causes a horizontal scrollbar to appear. I think that some Joomla comment code is interfering with my own code.

Any help? I think this is a feature that could be configured. I'm using Joomlacomment 4.0.

Thanks
Jaime

Comments and form to appear initially hidden? 15 years 3 months ago #5957

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

Hello... I need that initially appear comments and form area in a hidden state. When there are comments, by clicking on "comments (n)" link, comments appear. The same for the form. Initially is hidden but when "New comment" is pressed, the form has to appear. I added some JavaScript for the comments area and it worked, but when I did the same for the form, I have to click twice in order to make the form to be visibile again.

Have a play around with the JoomlaComment templates that have "slide" in their name, they have this function ;) the code is not XHTML valid but the JavaScript might help out.

The first click causes a horizontal scrollbar to appear. I think that some Joomla comment code is interfering with my own code.

Yeah I think that's to do with the overflow CSS. Internet Explorer and Firefox both handle those things differently, you might find that if you test in another browser you'll either get no scrollbars or different sized/length scrollbars.

Any help? I think this is a feature that could be configured.

Well the Slide templates do this so it's already implemented. But JoomlaComment4 is still Beta - the Template fixes and updates are, unfortunately, the last thing to do before going final/gold due to the huge variety of Joomla configurations that can conflict with them.

Comments and form to appear initially hidden? 15 years 3 months ago #5986

  • Jaime
  • Jaime's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hello Jonus, but that did not work. Please look at the attached image (I used MT-Double Slide)



In that image, there are 3 comments that are not shown, and when I press the +/- nothing happen.

By looking inside the code, href attribute has "javascript:void(null)" which does nothing. I am wondering, what was the idea?

Jaime

Comments and form to appear initially hidden? 15 years 3 months ago #5988

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Ah... The JavaScript in MT-DoubleSlide does work but not in all browsers. We'll nail it ;) It works for me in Firefox 3.5 and Internet Explorer 8, havn't tested it in older versions, Opera, Chrome or Safari yet. What browser are you using? I'll bugtest in it and figure it out.
  • Page:
  • 1
Time to create page: 0.149 seconds