2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 9,300 times in 2011. If it were a concert at Sydney Opera House, it would take about 3 sold-out performances for that many people to see it.

Click here to see the complete report.

8-9 Quake Strikes Japan Triggers Tsunami

Japanese television is showing horrific pictures of a wall of water swallowing everything in its path following a massive 8.9 magnitude earthquake struck off the northeast coast of Japan.

The quake has triggered a tsunami already that’s washing away cars and houses inland in the north-east of the country. Television showed cars bobbing in water alongside fishing boats.

A 10-metre tsunami warning has been extended for the coast in the region.

The tsunami warning was issued to most of the Pacific coast of the main island of Honshu, broadcaster NHK reported. People are being told to get to higher ground.

The quake was initially listed as 7.9 magnitude, then upgraded to 8.8, then 8.9 by US Geological Survey. A series of aftershocks followed including one of around 7 magnitude.

The epicentre of the quake is believed to be in the north of Japan, in the Honshu area.

The quake caused buildings to shake in the capital Tokyo, triggering at least one building fire, NHK television and witnesses reported. Around four million homes are without power in Tokyo, and several people have been buried in a landslide.

Many sections of Tohoku expressway serving northern Japan are damaged and there is a major fire at Chiba refinery near Tokyo.

The BBC is reporting it as a “mega-quake”.

Narita airport, Tokyo’s main airport, has been closed. A number of people are believed to have been injured during a graduation ceremony in Tokyo when a roof collapsed.

The public broadcaster showed black smoke billowing from a building in Odaiba, a Tokyo suburb, and bullet trains to the north of the country have been halted.

“The building shook for what seemed a long time and many people in the newsroom grabbed their helmets and some got under their desks,” Reuters correspondent Linda Sieg said.

“It was probably the worst I have felt since I came to Japan more than 20 years ago.”

The US Geological Survey verified a magnitude of 8.8 at depth of 24.3kms and located the quake 130.3kms east of Sendai, Honshu. The stock market extended its losses after the quake.

Japan’s northeast Pacific coast, called Sanriku, has suffered from quakes and tsunamis in the past and a 7.2 quake struck on Wednesday. In 1933, a magnitude 8.1 quake in the area killed more than 3,000 people. Last year fishing facilities were damaged after by a tsunami caused by a strong tremor in Chile.

There are believed to be 3500 New Zealanders in Japan, and 1600 in Tokyo.

Civil Defence in New Zealand says a tsunami is possible in New Zealand, but it is still monitoring the situation and it would be 11 hours away.

WANTED – URGENTLY 5 PHP DEVELOPERS

The PHP logo displaying the Handel Gothic font.

SecureNext Software

We plan to recruit 5 PHP developers with 2-3 years experience in our Chennai branch. The candidate should have a minimum 1.5 years experience as a PHP developer. A quick learner and a team player is an added advantage. The referred candidate must commit to serve the company for at least 2 years. If you know anybody who is meeting all the above requirements and is looking for a change, please refer them and ask them to send their resumes to murugan@securenext.net. & raman@securenext.com.

We want to close this recruitment in a week’s time and hence would appreciate a quick response !.. If the candidate referred by you is selected, then, you will get the referral bonus per selected profile as per the company rules and guidelines.

Job Description:-

For PHP openings, We need the following skill set :.

Edu.Qlfn: BE ( CSE / IT / EEE), MCA, MS (CS)

1) Should have minimum 1 year 6 month experience in PHP development

2) Good & hands-on knowledge in PHP, MYSQL, Jquery and CSS
3) A Fair knowledge in Joomla, wordpress and drupal will be an added advantage

We need the following details

Current CTC / Nett take home p.m.

Expected CTC / Nett take home p.m.

Referred By

Number of days required to Join

Reason for changing Job

2010 in review

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Fresher than ever.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 8,900 times in 2010. That’s about 21 full 747s.

In 2010, there were 36 new posts, growing the total archive of this blog to 47 posts. There were 6 pictures uploaded, taking up a total of 419kb.

The busiest day of the year was September 20th with 100 views. The most popular post that day was WordPress functions.php Template with 15 Essential Custom Functions.

Where did they come from?

The top referring sites in 2010 were en.search.wordpress.com, facebook.com, google.com, google.co.in, and bigextracash.com.

Some visitors came searching, mostly for wp_list_categories nofollow, wordpress custom more link, wordpress how to change post categories sql, wordpress get_the_category custom post type, and wordpress different functions.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

WordPress functions.php Template with 15 Essential Custom Functions May 2010
3 comments

2

13 SQL Queries for WordPress April 2010

3

10 Killer WordPress Hacks May 2010

4

10 Exceptional WordPress Hacks May 2010

5

How to style wp_list_pages August 2010

WordPress 3.0.4 Is Now Available

Version 3.0.4 of WordPress, available immediately through the update page in your dashboard or for download here, is a very important update to apply to your sites as soon as possible because it fixes a core security bug in our HTML sanitation library, called KSES. I would rate this release as “critical.”

Source: wordpress.org

Top 10 WordPress Security and Website Tips

When Office To-Go takes over WordPress website maintenance or a new project, we employ these security measures and recommendations.

1. Keep headers/logos under 125 pixels high. It takes up valuable viewing space, especially for laptop users, that is best left for the good stuff to appear “above the fold.” Take a cue from the big companies, simple logos done well say it all. This is our #1 pet peeve – screaming logos and headers!

2. Use STRONG passwords of 10 or more characters and DO NOT use “admin” for a username. Create a new user profile assigned to the administrator role, log back in with the new user profile and DELETE the admin file. It can’t be said strongly enough: use strong passwords for WordPress and any other site which requires passwords. Use an online password generator.

3. BACK UP your site regularly and keep a copy on your computer and off-site storage. If you have a very active site, back up daily. You spend a lot of time and money on your website, don’t skip this! The one complete solution that does it all is BackupBuddy, no other plug-ins back up your files, widgets, plugins and database. Need to move your site to another host, this will do it in less than a few minutes!

4. Select your plugins wisely, too many will slow down your site. Badly coded plugins are a hacker’s back door into your website.

5. Install the WordPress Firewall Plugin. This plugin investigates web requests with simple WordPress-specific heuristics to identify and stop most obvious attacks.

6. Move your configuration file one level above the root directory of your server (if you’re running WP in the root directory of your site as opposed to yourdomain.com/blog subfolder).

7. Do not use wp_ as a prefix for your databases. Most web hosting companies are eliminating that default now but if yours does not, change wp_ to anything else but that.

8. Install Secure WordPress plugin.

9. Install an anti-spam plugin such as WP-SpamFree.

10. Rewrite your .htaccess file to lock down your wp-admin directory by IP addresses. Add the following code to your file, replacing xxx.xxx.xxx.xxx with your IP address:

AuthUserFile /dev/null

AuthGroupFile /dev/null

AuthName “Access Control”

AuthType Basic

order deny,allow

deny from all

#IP address to Whitelist

allow from xxx.xxx.xxx.xxx

Article Source:

http://EzineArticles.com/?expert=Cyndi_Papia

WordPress 3.0.3

WordPress 3.0.3 is available and is a security update for all previous WordPress versions.

This release fixes issues in the remote publishing interface, which under certain circumstances allowed Author- and Contributor-level users to improperly edit, publish, or delete posts.

These issues only affect sites that have remote publishing enabled.

Remote publishing is disabled by default, but you may have enabled it to use a remote publishing client such as one of the WordPress mobile apps. You can check these settings on the “Settings → Writing” screen.

Download 3.0.3 or update automatically from the “Dashboard → Updates” screen in your site’s admin area.

WordPress 3.0.2 – Mandatory Security Release

WordPress 3.0.2 is available and is a mandatory security update for all previous WordPress versions. Haiku has become traditional:

Fixed on day zero
One-click update makes you safe
This used to be hard

This maintenance release fixes a moderate security issue that could allow a malicious Author-level user to gain further access to the site, addresses a handful of bugs, and provides some additional security enhancements. Big thanks to Vladimir Kolesnikov for detailed and responsible disclosure of the security issue!

Download 3.0.2 or update automatically from the Dashboard > Updates menu in your site’s admin area. You should update immediately even if you do not have untrusted users.

Source: wordpress.org

Sila nerangalil…Sila Manitharhal….

Sila nerangalil...Sila Manitharhal....Sila nerangalil...Sila Manitharhal....

How to dynamically modify the output of the wp_list_pages

Modifying the output of Wordpres’ template tag wp_list_pages

I’ve noticed a lot of traffic to my previous post on this subject: How to style wp_list_pages, which means that there is a lot of interest in this subject.
I recommend reading the previous article as it might explain certain things which I am going to write about here.

For the template that I was recently working on, I needed a modified output of the default <?php wp_list_pages(‘arguments’); ?> tag, in a way that it would change the link into and anchor. For example, instead of this:

<li class="page_item page-item-1">
    <a title="thisisanexample" href="http://www.thisisanexample.com">this is an example</a>
</li>

into this:

<li class="page_item page-item-1">
    <a title="thisisanexample" href="#thisisanexample">this is an example</a>

</li>


If you are wondering what are anchors for: these are the shortcuts that take you from one part of a page to another part of the same page.
Here’s what I had to start with:

  • A number of pages which all had the same parent
  • The parent’s ID is 5 (you need to find this number on your own)
  • They were all only one level deep (it means that these pages didn’t have any children)
  • the powerful wp_list_pages() tag

So, this is how to do it…

  • Find your wp_list_pages() tag in the template
  • Change the <?php wp_list_pages(‘arguments’); ?> into the following:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
    $my_pages = wp_list_pages('echo=0&title_li=&child_of=5&depth=1');

    $pieces = explode('"', $my_pages);
    $i = 5;

    $j = 3;
    $limit = count($pieces);

    for (;$i<$limit;) {
        $tmp1 = '#'.$pieces[$j];

        $pieces[$i] = $tmp1;
        $i = $i+6;

        $j = $j+6;
    }
    $tmp2 = implode('"',$pieces);

    echo $tmp2;
?>
  • The above code takes the output of wp_list_pages and assigns it to the variable $my_pages
  • The parameters of wp_list_pages: echo=0,so it doesn’t output to the screen, title_li=, so there is no name for the list, child_of=5, so we only get pages, who are children of page no. 5, and depth=1, so we don’t include any children of these pages
  • After that, we need to split (explode) the output into separate parts (array), at each of the ” characters:

from:

$my_pages = '<li class="page_item page-item-1"><a title="example title" href="http://www.examplelink.com">example title</a></li>'

into:

pieces[0] = "<li class="
pieces[1] = "page_item page-item-1"

pieces[2] = "><a title="
pieces[3] = "example title"

pieces[4] = " href="
pieces[5] = "http://www.examplelink.com"

pieces[6] = ">example title</a></li>"
  • Next, we find what are we going to use: pages[3] and pages[5] – the title and the link
  • Also, if we have more than 1 link, then we need to set a limit of how many times the for function will be executed – we can do it easily by getting the number of elements in the pieces[] array:
$limit = count($pieces);
  • Then, we set up a for loop which goes through the whole pieces[] array and exchanges every link with its title, preceded with # (the anchor mark):
$tmp1 = '#'.$pieces[$j];
$pieces[$i] = $tmp1;
  • The above creates a temporary variable by joining the ‘#’ sign with the title of the link (from pieces[3]), and then changes the value of pieces[5] to that temporary variable, which now is our anchor
  • And finally, if you have more than one link (page) then you will need to increase both $i and $j values by 6 – this is how often they are occurring in the pieces[] array
  • When there are no more pieces left to go through and the for loop ends, we need to join all the values of the pieces[] array back into one single variable and print it out

And that is it.

It might happen that the wp_list_pages function outputs the title and the link swapped (link comes before the title), then just swap the values of $i and $j, and it should work.

Oh, and it only works with the unmodified output of the <?php wp_list_pages(‘arguments’); ?> tag – it might behave differently when used together with what I have discussed in the previous link on this subject: How to style wp_list_pages

As usual, let me know what you think about this hack (especially since it isn’t the only way of doing it) and ask questions in the comments if you need help.

Source: Wantusiak Maciej

Follow

Get every new post delivered to your Inbox.

Join 28 other followers