A nicer Looking Comments Plugin?
|
3 posts
|
Is there a way to make the comments section look a little bit nicer? I would kind of like to have the comment form hidden unless a user clicks an “add comment” link then have it drop down. I’m thinking either mootools or jquery is the way to do this but I cant quite wrap my head around how to implement it. Any help would be greatly appreciated! Thanks! |
|
343 posts
|
You can try this, not tested :) but should work.
The first step is to get the jQuery (my choice) library. Here’s a online hosted one :
Now you have to write the hide/show code for your comment form.
The thing is I hide the comment form through javascript, so if a user has JS disabled, he will see the form. If you will hide it from css with display:none and JS is off, the user is unable to use the form. You get the idea. Now we have to add a button to display the form on click event. It has to match the id : #add_comment ( if you need another id please replace it in the JS provided ).
And here is the full code, at last :
I hope this helps, have a nice day. |
|
343 posts
|
Sorry for the double post, but it seems there is a bug with this forum, it cuts my post.
With: Accordion effect :
No effect :
You can do much more flashy things but you will need the easying plugin or jQuery UI. Have fun |:) |
|
3 posts
|
Wow that is awesome! Thank you so much I will give this a shot tomorrow! |
|
343 posts
|
No problem. Hope it works. |
|
10 posts
|
any working result? :) |
|
48 posts
|
Here is a working example. Browse little bit around. |
|
343 posts
|
That’s what the script above does. |