Archives

Articles tagged ‘wordpress’

Brazillian Portuguese (pt_BR) language file released for Simple:Press Forum WordPress plugin

We released today with the help of Bulli Castelo the internationalization file for this wonderful Wordpressw forum plugin.

The language files can be found at the official Simple:Press Forum translations website.

Enjoy!

Smartly resolving your WordPress pages and posts JavaScript and CSS dependences

Sometimes you want to include page-specific JavaScriptw or CSSw files and ended up in cluttered ifs and else ifs or even creating a creepy new page just for that.

Wordpressw‘s excellent plugin infrastructure with their hooks and actions provides us a beautiful and clean form of including our JavaScript in specific pages.

In this tutorial, we will be using three WordPress functions: get_post_meta() and wp_enqueue_script() and wp_enqueue_style().
Read the full article

5 best practices on developing WordPress plugins

Wordpress Plugins
Wordpress wonders me how it born as a Blogging platform and is growing a powerful CMS platform. Its plugin framework is full of hooks and actions and almost everything can be trapped and modified by plugins.

As WordPress is a Procedural Programmingw oriented platform the function wrapped to the hooks and actions have no scope when called except global this can be hell when developing plugins. We must take extra-care to not compromise our plugin security and compatibility.

In our road developing plugins we learned some lessons, here is our share. Read the full article

Brazillian Portuguese (pt_BR) language file for WP-Filebase released

We have just baked the Brazillian Portuguese pt_BR.po (and .mo) internationalization language files for the great WP-Filebase WordPress plugin from Fabian Schlieper.

This plugin is a great download / file manager that covered just all holes that we need in our clients’ projects. It features a highly configurable theming, internationalization, categorization, download counter, traffic/bitrate limiter and more.

This is certainly a recommended WordPress Plugin for all. Read the full article

WP-Minify’s new version vanished WordPress’ HTTP requests issue

While working with WordPress we always stuck with the HTTP requests issue caused by plugins that appends external JavaScript or CSS files to our page body thus causing more http requests and downgrading our performance benchmark tests and company job standards.

Content minification is a well-known best-practice for bandwidth reduction (saves client’s money) thus giving better page load time (gives client a good smile). Since it removes all unnecessary code (like comments, extra spaces, tabs etc) and join files together, the total of KBs saved even in bandwidth and browser rendering.

Here we always implemented the Minify PHP5 tool from Steve Clay and Ryan Grove because it always worked like a charm and the results are quite amazing.

In wordpress we got problems implementing this because plugins added their own js and css files at will. WP-Minify from Thaya Kareeson came to save our souls but we got some misbehaving plugins that still adding link and script tags by echoing to the page.

Fortunately, this new version preprocesses the output thus gathering any inline style/script reference and adding it to a temporary file that is included in the minification process.

I got tricked there because voting badges and other stuff uses inline script tags to generate the badge. WP-Minify’s preprocessing fufreaked me up because this script tag depended on the_permalink() function from WordPress thus not generating the correct output on the temporary file created. Before I started freaking out I realized that the plugin’s configuration page had an script (and style) blacklist. Just added the src url (without the querystring) and everything worked like a charm!

Nice job Thaya!