×

Notice

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

TOPIC: Much to like, but have some questions

Much to like, but have some questions 14 years 11 months ago #8149

  • Tore B. Krudtaa
  • Tore B. Krudtaa's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi.

I have been testing this for some hours now and must say this looks pretty nice.

But then I need to tweak it some.
How do I do the following:

(using: !JoComment 4.0 beta2 )

1.
When a user has displayed an article, then I would default not like to show the comments nor the Add comment form.
Would like to only show something like this:

23 comments Add comment

Then the comments that would normally be displayed on the page should be in a hidden div or something, and when user click the link "23 comments" then they should be made visible (and cool if could be auto-scrolled to 1 post as well).

When user click "Add comment" then the comments and the Add comment form should be made visible and the page should autoscroll to the Add comment form.

How do I accomplish that?

2.
To take #1 above a step further I would now like it to work like this:
Instead of fetching any comments at all I would like comments only to be fetched and displayed if the link "23 comments" is clicked (fetched using Ajax of course).
This should make it possible to show the article with a minimum of queries used, but still make comments available. Less work for server, and lower the bandwidth needed.

When traffic gets higher and comments are entered in great numbers for an article I belive that would be a nice feature...

Is this doable today?
If so, how do I accomplish this?
Would also be cool if such feature could be managed from the backend in the future.

3.
Is it possible to replace the comment form with a Thank you message, when a comment has been saved?
Example.... User click the "Add new" to add a new comment.
Enter valid information and click on the "Send" button.
Then if the comment is saved successfully I now want the comment form to be hidden and a "Thank you for your commment" message to appear where the Comment form was displayed.

Is that doable? How do I do that?
Would be cool if this could be controlled from the backend as well.

Anyway... thanks for a well written component

Regards

Much to like, but have some questions 14 years 11 months ago #8201

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
1. Code a new template with JavaScript (or wait for the new Premium ones)
2. As above
3. As above; premium templates will (a) "clean slide" to the new comment, (b) Fade-in highlighted, (c) Have a 'Thank you, Comment added' text to the right in a speech bubble or something and fade away as the highlight fades-away to standard comment colors...

...that's the idea of the future templates. You can do this all yourself if you're good enough with DHTML/JavaScript+DOM.
  • Page:
  • 1
Time to create page: 0.101 seconds