HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

JQuery v20-1.6.1

JQuery v20-1.6.1

by [-Stash-]

This extension adds the jQuery JavaScript library to the header pages of the common Vanilla pages. The idea behind this is:

  1. to enable extension writers to use jQuery simply and easily.
  2. to enable Vanilla admins to easily update jQuery to the latest version.
  3. to keep Vanilla from becoming bogged down with multiple versions/copies of jQuery as extension authors decide they want to use it.

Extension Developers

Calling JQuery for use with your extension

To call JQuery from your extensions use the following code

includeJQuery(); // call JQuery to ensure it's loaded first

Compatibility with Prototype and other libraries

In order to maintain compatibility with other JS libraries jQuery's compatibility mode is enabled by default. This may mean that your jQuery code will not work without wrapping it in the following code:
Read more about this on the jQuery website

jQuery(document).ready(function($){ // other library compatibility...}); // other library compatibility

Known extension bugs

! None.

To do

+ Test with Vanilla 1.2.1
+ Only have jQuery appear in headers when called. v13-1.2.1
+ Add admin interface. v15-1.2.6
+ Add capability to change between jQuery versions and compression types in a pretty interface. v15-1.2.6
+ Make CKEditor user selectable?
+ Check for HTML Formatter when enabling CKEditor.
+ Add jQuery UI.
+ Add plugins interface v15-1.2.6 and dependency checking.

EXTENSION INSTALLATION INSTRUCTIONS

Download and uncompress the extension files, then upload them to:

/path/to/vanilla/extensions/JQuery/

The path to this extension's default.php file should look like this:

/path/to/vanilla/extensions/JQuery/default.php

To enable the extension you must be logged in with an account that has Administrator privileges. You can enable the extension in Vanilla by clicking on:

Settings > Extensions

Then tick the checkbox for "JQuery"

Screenshots

Questions