Archive for 2010

Adding Scripts Properly to WordPress Part 2 – JavaScript Localization

9
responses
by
on
May 7th, 2010
in
HOW-TO, WordPress FAQs

When adding scripts to WordPress, you will inevitably run into a small, but painful, issue of localization. Localizing a plugin or theme is relatively straightforward, but JavaScript presents its own difficulties since we can’t easily call the PHP functions necessary (which is one reason authors embed JavaScript in PHP files). Since embedding JavaScript in PHP files is never a good technique, we use localization to save the day. With JavaScript localization, you can use PHP magic to build your localized strings, and then use JavaScript to read/parse those strings. What you do with them is only limited to your imagination. Furthermore, if you display anything with JavaScript, chances are your users will want the strings to be localized. Fortunately, WordPress provides the ultra-handy wp_localize_script function. wp_localize_script The wp_localize_script takes three arguments: handle object_name l10n Handle The handle argument will be the same handle you use for your script name. For […]

[Continue Reading...]

Adding Scripts Properly to WordPress Part 1 – wp_enqueue_script

16
responses
by
on
May 6th, 2010
in
HOW-TO, WordPress FAQs

Starting in WordPress 2.1 (if I remember correctly), the awesome folks at Automattic gave us the even awesomer function of wp_enqueue_script. Before that, it was every plugin or theme author for himself. If you wanted to add in a script, it was hard-coded in. As you might imagine, this presented a ton of problems. Scripts were loaded twice, out of order, or even when they weren’t needed at all. Furthermore, some themes and plugins had the JavaScript embedded within the plugin’s or theme’s PHP file just to capture a few PHP variables. Not good! In order to add scripts properly to JavaScript, you must always keep your PHP and JavaScript separate. And by separate, I mean separate files. There’s just no excuse anymore (I’ll get into this in Part 2 of this series). The wp_enqueue_script function is the first step in loading your scripts properly. Not only can you add […]

[Continue Reading...]

WordPress Theme Releases for 05/01

4
responses

Desk Mess Mirrored Marble desktop covered with a mix of old and new items, such as some vintage papers, a stainless steel pen, and, a hot cup of coffee! Now with threaded comments and sticky posts! Ground Floor Richly toned wood floor background with bare-earth colored widgetized sidebar and footer (six widget areas in total, as shown on the included widget-map.png). A strong theme to begin with; grow into; and, build on. FNext Business & Finance Theme Stylish wordpress theme with three columns, widget-support, twitter support Straight Blue Clean Blue and white theme with pale shades of brown. Great for adsense ads and other easy customizations. Director Director includes threaded-comments, sticky-post, theme-options and a unique amazing design

[Continue Reading...]

Google Living Stories Plugin for WordPress

1
response

Google News Blog: Bringing Living Stories to WordPress: Google is releasing their Living Stories experimental format as a plugin and a theme for WordPress.  Living Stories is an experimental news format from Google. In the form of a plugin, each Living Story would be a WordPress category with the plugin allowing a blogger to add the stories themselves. An example would be nice to see but none is to be found yet. Thanks to a writeup on ReadWriteWeb I would love to see an example blog or screenshots.

[Continue Reading...]

More plugins for securing your WordPress install

27
responses

I wrote previously on securing a fresh WordPress install. Today, I’ll cover several WordPress plugins that can be used with fresh or existing WordPress installations to enhance security. I’m not going to cover recovering a hacked site, or exploit scanning tools like Exploit Scanner or WordPress Antivirus in this tutorial.

[Continue Reading...]

WordPress Plugin Releases for 04/26

2
responses
by
on
April 26th, 2010
in
WordPress Plugins

New Plugins Incomment Referrer This plugin quite simply lets you know where the users entered your site when they leave a comment. A lot of people who joined the do-follow movement are listed on sites which are a target for comment spammers. To those who suffer comment spam can now find out the page they come from, and block accordingly. WP Hide Pages This plugin hides selected pages from menus which created with wp_list_pages function. Essentially it adds exclude parameter to wp_list_pages function but it’s so easy now. Pages to Page Create the contents of Recent Comments, Pages, Categories, Archives, Recent Posts and Calendar which are usually shown in the sidebar and insert them onto a post or page. eletro widgets It allows yout to use WordPress widgets to set up your home page (or any page) in your blog. You can configure and drag & drop widgets around right […]

[Continue Reading...]

WordPress Theme Releases for 04/23

7
responses

Desk Mess Mirrored Marble desktop covered with a mix of old and new items, such as some vintage papers, a stainless steel pen, and, a hot cup of coffee! Now with threaded comments and sticky posts! RedSteel RedSteel quickly grabs the attention of visitors by prominently displaying your featured posts, latest Tweet, as well as links to Facebook, Digg and other popular social media websites. Adsense optimierte Tweez Follower The Adsense optimized Tweez Follower Theme ist a free (GPL) WordPress Theme 1000px wide with 2 Sidebars and 4 Widgets Positions: above the content, above and below the Postings, and below the Content. There is also an Option Page to populate the Footer.

[Continue Reading...]

Backing up your WordPress database with WP-DB-Backup

13
responses

I emphasized the importance of backing up in my basic security tutorial, but I discovered all of the backup tutorials I found were out of date. So here’s a tutorial on backing up your WordPress database with the terrific WP-DB-Backup plugin. The great thing about this plugin is that you can have it automatically send you backups by e-mail that you can save both to your local computer and optionally store in your Gmail or other web mail account and an additional off-site backup. This tutorial assumes you already know how to install plugins. This tutorial should be forward-compatible with WordPress 3.0

[Continue Reading...]

WordPress Theme Releases for 04/19

4
responses

Reflections Perfect for photofolio blogs or websites using WordPress. Support threaded comments and pretty simple to use. Page in Malay Homage Homage is a two-column layout WordPress theme, with a right-hand sidebar. Plus a static pages menu, a replaceable logo area and paged- and threaded- comments. K9 K2 inspired theme for WordPress. Key features include: widgets support, custom header, threaded comments and post thumbnails.

[Continue Reading...]



Obviously Powered by WordPress. © 2003-2013

css.php