Posts Tagged ‘WordPress plugin’

Advanced Scriplaculous Sortable Demo Fix

Monday, April 20th, 2009

Heh.

There is a good example of using nested Scriplaculous Sortables. With one little flaw – Scriplaculous ver 1.6.x is used, and when you try to execute the code with newer version of library – sections.each is not a function error pops up.

Here is the way to fix it – you’ll probably need it if you want to save the results :-D

Just replace “document.getElementsByClassName(‘section’);” to “$$(‘.section’);”

Before

function getGroupOrder() {
	var sections = document.getElementsByClassName('section');
	var alerttext = '';
	sections.each(function(section) {
		var sectionID = section.id;
		var order = Sortable.serialize(sectionID);
		alerttext += sectionID + ': ' + Sortable.sequence(section) + '\n';
	});
	alert(alerttext);
	return false;
}

After

function getGroupOrder() {
	var sections = $$('.section');
	var alerttext = '';
	sections.each(function(section) {
		var sectionID = section.id;
		var order = Sortable.serialize(sectionID);
		alerttext += sectionID + ': ' + Sortable.sequence(section) + '\n';
	});
	alert(alerttext);
	return false;
}

Then modify it for your needs and go on )

What was that?
Quote:

As of Prototype 1.6, document.getElementsByClassName has been deprecated since native implementations return a NodeList rather than an Array.

Popularity: 31% [?]

War Against SPam – WASP!

Friday, July 20th, 2007

Hi there!

I’ve been thinking of getting post done (about smart MySQL sorting techniques), but when I logged on….

A bunch of spam comments – about meds, about autos, about porn (of course) and all the bloody stuff around this bloody world…

So – I proclaim the War Against SPam (WASP).

The first step in WASP strategy – it’s a set of plugins. I’ll try some, and you’ll be informed about the hostilities.

First in the line will be Math Comment Spam Protection Plugin by Michael Woehrer. You can see its output under the comment form. Also I use the aggressive digits naming – like thr33 or f1ve

Popularity: 14% [?]

Feed ShowZ plugin update

Wednesday, April 25th, 2007

Feed ShowZ plugin updated to 0.92 version.
Added: Autocensor, Bottom link code.
Some bugs fixed.
Code re-arranged.

Available here: Feed ShowZ plugin homepage

Popularity: 14% [?]

youthumb – another video plugin

Tuesday, March 27th, 2007

Hi!

I wrote a new plugin – youthumb.
Lightweight and fast.

After a few checks i’ll publish it for your pleasure.

Popularity: 10% [?]

Ad RotateZ & Feed ShowZ now online

Thursday, February 15th, 2007

I checked both for WP 2.1 compatibility, they works.

Now files is available to download. Have fun!
Ad RotateZ plugin homepage
Feed ShowZ plugin homepage

Popularity: 11% [?]

Feed ShowZ plugin for WordPress 2.x

Thursday, February 15th, 2007

Hmmm.
I started a new plugin – Feed ShowZ.
You can see homepage here: Feed ShowZ plugin.

Popularity: 10% [?]

Ad RotateZ plugin

Monday, January 22nd, 2007

The home page for Ad RotateZ plugin for WordPress 2.x is located here.

You can always see it at Ad RotateZ home page

Description:
Rotates local ads randomly.
Support for categories of ads.
Support for export/import of settings.

Designed for WP 2.x.
Place your ads to "ad-rotate-z" directory, then visit Options -> Ad RoteteZ for setup.

Get the plugin!

Popularity: 8% [?]


Switch to our mobile site