NP_PaxAjaxKarmaVote

After the installation of this script the karma-pos and karma-neg votes are sent asynchronous (AJAX) to the server. The karma-counter updates instantly; the page does not reload.

General Plugin info
Author: Patrick 'paxos' Dinger
Current Version: 1.0
Download: here
Code: -
Demo: Demo
Forum Thread: here

Installing

  • copy all files to /nucleus/plugins
  • visit the nucleus control panel, plugins and install the plugin

How to use the plugin

After these steps, you're not done. you HAVE to follow the following three steps or the plugin will not work

  • 1. add the following line into the header part of your skin:
<%plugin(PaxAjaxKarmaVote)%>

example:

<head><title>Your Site</title><%plugin(PaxAjaxKarmaVote)%></head>
  • 2. add the css class “karmalink” to the links

example:

<a class="karmalink" href="<%karmaposlink%>">
  • 3. add the id “karma<%itemid%>” to your karma counter

example:

<span id="karma<%itemid%>"><%karma%></span>

If you do not set this properly, the counter will not update after click

Available SkinVars and/or TemplateVars

-

Options

You can disable the inclusion of JQuery in the options

Tips and Tricks

This plugin uses the javascript library JQuery JQuery may cause problems if you use other librarys as Prototype, MooTools etc. so be careful

If you already have a version of JQuery included in your page you can disable the inclusion of the own JQuery in the plugin options

Wishlist

Bugs

History

  • Version 1.0, released January, 9th 2010
paxajaxkarmavote.txt · Last modified: 2010/01/09 17:11 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki