If you’re looking to manage your website via the browser, without the need for a file editor or FTP client, you should look into ShiftEdit. All your work is done via the browser. No more downloading and uploading files. No more editing offline. Changes are immediate.
ShiftEdit keeps tracks of your file changes as well with Revisions History. You can highlight several files and look at file differences. You can also bookmark files for easy access later. There are more features. Visit ShiftEdit if you’re interested.
If you’re running JQuery on a production site, which library should you load? JQuery.js or JQuery.min.js? The short answer is, they are essentially the same, with the same functionality.
One version is long, while the other is the minified version. The minified is compressed to save space and page load time. White spaces have been removed in the minified version making them jibberish and impossible to read.
If you’re going to run the JQuery library on a production site, I recommend that you use the minified version, to decrease page load time, which Google now considers in their page ranking.
The latest JQuery minified version from Google is available here.
You can link to it in your pages using:
They say a picture is worth a thousand words. Adding a static map to your posts can make a world of difference. Your posts not only look good, but are informative and effective as well. Whether you are giving out directions or simply just showing off where in the world you were at one point, you can add great value and effectiveness to your posts. The good news is, adding Google Maps is not so difficult.
The Google Static Maps API
Required Parameters: Center, zoom, size and sensor. Examples.
center=101+Market+Street+San+Francisco (enter address or latitude, longitude)
zoom=14 (from levels 1 to 20)
size=480x300 (map size in pixels)
sensor=false (use default 'false' unless using GPS locator)
Maptype: Roadmap, Satellite, Terrain or Hybrid.
Marker: See below.
Paths: See below.
Putting It All Together
We can string it all together using ampersand (&).
Finally, to add an image to your post, just add an HTML img tag. Example:
alt=”San Francisco” />
There are other options that can be added such as Markers and Paths, but are a bit more involved. You can check out the rest from the Google Static API V2 Developer Guide.
Sometime after WordPress 2.7 and before WordPress 2.9.2, I lost a key functionality within WordPress. It’s threaded comments. I blame myself for constantly tinkering around with the theme. I must have deleted a key piece of code somewhere in the theme that prevented threaded comments from working.
For those not familiar with WordPress, the threaded comments functionality allows the “comment form” to jump underneath a specific comment when a “Reply” link is clicked. Clicking “Cancel Reply” restores the “comment form” to its original position. When a comment is submitted, the comment is placed directly underneath that specific comment.
<?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
Widgets are pretty amazing. I witnessed what widgets can do while poking around with several themes at WordPress.com. I was pretty amazed how users can drag and drop elements into the sidebar area. The usual sidebar suspects such as Pages, Links, Calendar, Categories, Archives, Recent Comments, Search and Meta were available along with Text and RSS feeds. With Text, you can drag and drop a text box in the sidebar panel which is similar in function to the About text you see in several WordPress themes. The RSS widget allows you to syndicate news in your sidebar such as CNN, BBC and Yahoo News for example. You can specify how many Text and RSS widgets you want added by simply selecting from a dropdown menu.
Wikipedia describes Ajax:
Ajax is a Web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire Web page does not have to be reloaded each time the user makes a change. This is meant to increase the Web page’s interactivity, speed, and usability.
A great feature of the Ajax Calendar is the split view which displays a drop down list of entries of the current month on display. The built-in cache increases subsequent delivery speed and reduces server load. The Ajax Calendar was fairly easy and straightforward to install. I only made one code change to sidebar.php.
Finally, I modified the SQL statement in common.php by adding a “DESC” at the end to reverse the order of articles listed in split view. I just prefer seeing the articles listed from the most recent to the beginning of the month in reverse order. Here’s the code:
SELECT ID,post_title FROM $wpdb->posts
WHERE MONTH(post_date) = â€˜$monthnumâ€™
AND YEAR(post_date) = â€˜$yearâ€™
AND post_status = â€˜publishâ€™
ORDER BY post_date DESC
One last thing, you have to clear the cache to see the changes take effect.