×

Notice

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

TOPIC: View versus Write Comment

View versus Write Comment 13 years 6 months ago #10448

  • Hilary Forbes
  • Hilary Forbes's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
This is a superb extension thanks. Is it possible to have a link to View Comments so that the form with the input boxes doesn't appear. ie you might have

View Comments (10) Write Comment

It's just that the form rather dominates the page for a short article and it would be good to be able to simply view the article and comments without the input form.

If not, please add to wishlist!
Thanks
Hilary

View versus Write Comment 13 years 6 months ago #10449

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Hilary,
Thank you for the kind words!

I'm not sure that I understand what you want.

Do you want to change the write comment to view comment? Then simply edit your language file.

If on the other side you wish that the write comment doesn't point to the form when you click it - you will have to edit your template and change this:
{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' style='clear:both'>
		{preview-lines}
	</div>
	{/BLOCK-preview}
{/readon}
 

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

It will remove the anchor link 'JOSC_TOP and that won't move the browser to the form :)
Cheers,
Daniel

P.S. Please write a review about our extension here: extensions.joomla.org/extensions/contact...icles-comments/12259 Thank you in advance!

View versus Write Comment 13 years 6 months ago #10450

  • Hilary Forbes
  • Hilary Forbes's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi Daniel

Your second response points me in the right direction. What I'm actually after is that you can click to see the comments and then separately click to get the comment form up. Just like this forum really. I see that there are x messages against a topic. I click on the topic (like View Comments) and then see the messages and then I click to post a message (Write Comment) and the form opens up. But I can probably do that based on your response. Thanks again and yes, I will write a review for you.

Hilary

View versus Write Comment 13 years 6 months ago #10451

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Hilary,
Why don't you try some of the MT slide templates?? The form there is collapsed and the user will have to click on write comment for it to slide in.

View versus Write Comment 13 years 6 months ago #10452

  • Hilary Forbes
  • Hilary Forbes's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Aha! Works perfectly in Firefox but not in IE7. Still that's better. I expect it works in IE8. (My site is for home users so they are likely to have out of date software on their PC and are most likely to be using IE rather than other browsers.)

For info IE7 says "Line 314: Char 1 error: Object doesn't support this property or method. Code: 0"

The page displays with the form open so it's usable.

Thanks
Hilary

View versus Write Comment 13 years 6 months ago #10453

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, strange. I'll test it later today and let you know (which template did you take?)

View versus Write Comment 13 years 6 months ago #10454

  • Hilary Forbes
  • Hilary Forbes's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
MTmodern-emotop is the template.
Thanks
Hilary

View versus Write Comment 13 years 6 months ago #10457

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, confirmed - it is not working with IE7. Tested it with IE9 and firefox - there everything is fine.

Right now I have no idea what is causing the problem with IE7.
  • Page:
  • 1
Time to create page: 0.110 seconds