Packed Javascript For WP-Polls

As I have received many request to optimized the Javascript for WP-Polls (I will also do it for other plugins but I will beta test it with WP-Polls first), I have used Dean Edwards Packer to pack my Javascript for WP-Polls and then I have moved the Dynamic Javascript variables out of the Javascript file and into the PHP page and now I can renamed it back to .js extension instead of .php.

These 2 things that I have done should help reduce the load on the server.

If are interested to test it out, you can download WP-Polls 2.30 Beta 1.

1 Star2 Stars3 Stars4 Stars5 Stars (66 votes, average: 3.73 out of 5)

My Plugins And WordPress 2.5

The current version of all my plugins will work on WordPress 2.5 PROVIDED you have upgraded your WordPress blog from WP 2.x to WP 2.5.

If you are using a fresh copy of WordPress 2.5 together with my plugins, it WILL NOT work as WordPress 2.5 changes the Activation Global Scope Of The Plugins. In simpler terms, it means that upon activation of my plugins in WP-Admin, it will not create the tables needed by the respective plugins.

To solve this problem temporary, do the following in polls.php (I am using WP-Polls as an example):

Find:

$wpdb->pollsq = $table_prefix.'pollsq';
$wpdb->pollsa = $table_prefix.'pollsa';
$wpdb->pollsip = $table_prefix.'pollsip';

Replace:

global $wpdb;
$wpdb->pollsq = $wpdb->prefix.'pollsq';
$wpdb->pollsa = $wpdb->prefix.'pollsa';
$wpdb->pollsip = $wpdb->prefix.'pollsip';

Note the addition of the “global $wpdb;” and the replacement of “$table_prefix” with “$wpdb->prefix“.

I have updated WP-Polls, WP-ServerInfo, WP-Sticky and WP-UserOnline to work with WordPress 2.5. You can get them here at my downloads page (do note that they are still in beta). Those plugins that end with a “Beta 2” means it will work for WordPress 2.5.

Some of the updates are:

  • Making sure that the styling, alignment and color of the plugin matches WordPress 2.5
  • Fixes the “Activation Global Scope” issue
  • Updated WP-Polls TinyMCE plugin to work with TinyMCE 3.0
  • Added a summary of WP-ServerInfo as a Dashboard Widget
  • Added a summary of WP-UserOnline in the Right Now Dashboard Widget
1 Star2 Stars3 Stars4 Stars5 Stars (62 votes, average: 3.73 out of 5)

WordPress 2.8.3

WordPress 2.8.3 has been released and similar to WordPress 2.8.2, this is a security fix.

Unfortunately, I missed some places when fixing the privilege escalation issues for 2.8.1. Luckily, the entire WordPress community has our backs. Several folks in the community dug deeper and discovered areas that were overlooked. With their help, the remaining issues are fixed in 2.8.3. Since this is a security release, upgrading is highly recommended

Changelog: WordPress 2.8.3
Download: WordPress 2.8.3
Download: Modified files since WordPress 2.8.2

1 Star2 Stars3 Stars4 Stars5 Stars (291 votes, average: 3.72 out of 5)

WP-Polls & WP-UserOnline Updates

WP-Polls 2.12 Beta
» No more the use of IMG tag to generate the poll’s result. It is now based on DIV tag. The default class to it is ‘pollbar-image’ in which it will use the image as the background in the DIV. If you like something simpler, you can always replace it with ‘pollbar-css’. This will use CSS to generate the color of the poll result bar which can be configured in ‘polls-css.css’.

» I have gotten rid of wp-polls.php and the archive link below the Poll. Now if you want to to show the Polls Archive, just create a page and type in [ page_polls ] (without any spaces) in the post’s content area.

» Now you can have the title of the Poll’s Widget.

» Ability to logged by Username instead of by cookie/ip.

» Fixed an AJAX problem in which if the site’s URL doesn’t match WP Option’s Site URL, WP-Polls will not work.

WP-UserOnline 2.05 Beta
» I have gotten rid of wp-useronline.php. Now to show the UserOnline page, just create a page and type in [ page_useronline ] (without any spaces) in the post’s content area, followed by the URL to that newly created page in ‘WP-Admin -> Options -> Useronline’.

» Changed in WP-UserOnline structure: Members Mean Registered Users and Guests Mean Comment Authors or Visitors

» get_users_browsing_site(false) and get_users_browsing_page(false) will now return an array containing Total Users, Total Members, Total Guests and Total Bots Online

» Now you can have the title of the UserOnline’s Widget.

» Fixed an AJAX problem in which if the site’s URL doesn’t match WP Option’s Site URL, WP-UserOnline will not work.

1 Star2 Stars3 Stars4 Stars5 Stars (212 votes, average: 3.72 out of 5)