NtzAutoQuote

27 May

On my other blog, i made a JS script that allows to add selected text on the comment box (after pressing Q). After redesign, i didn’t wanted to use that same old way, so i wrote a little plugin. Actually, you need some awesome imagination to name this plugin :D

Anyway, you can download this plugin from here and activate in the old fashion way (admin-> pluggins -> look for NtzAutoquote and press activate). How to use it? Very simple: select the text you want to quote and press Q key. In this way, you avoid to write over and over again <blockquote> </blockquote> when you want to quote some comments.

You want a demo? Try it right here! Select ANY text that you want, press Q and check out the textarea on the comment form :D With all these, there is a limitation tough: you can have only one textarea on your page. I did it in this way because some theme developers don’t keep the name/id’s on forms when they develop themes. If you have more than one textarea, ask here and i will be glat to help you.

Tags: , Comments (0)

Bookmark this article!

Del.icio.usDiggStumbleUponFurlRedditTechnorati

SlashDotWindows LiveYahooGoogleFacebookBlogLines

Ntz RateThis jQuery Plugin

10 May

Some weeks ago i needed a jQuery (yes, i’m a jQuery addicted!) plugin for basic star-rating system with ajax call. Because i wanted a minimum html markup, i start to wrote my own plugin, with a handy way to implement. Just drop this where you want to display stars:

<span class="rateThis" title="current=2.5;href=vote.php;id=1"></span>

Then call ntzRateThis on document load:

1
2
3
$(document).ready(function(){
 $('.rateThis').ntzRateThis();
});

Easy, isn’t? You need to specify (in title):

current - current rate (accept float);
href - link for backend rating script (this script will return final rate after vote and also verify that is only one vote per day);
id - id of the element (for example, id of article that you want to rate).

That’s all. You still need to include css and javascript files (is in the ZIP file) :)

You can see a demo of this plugin here (you have a demo for rating only, backend script sends only random numbers, so the rate won’t be real!) and you can download from here.

Tags: , Comments (1)

Bookmark this article!

Del.icio.usDiggStumbleUponFurlRedditTechnorati

SlashDotWindows LiveYahooGoogleFacebookBlogLines