Save the Date!

So I guess I should start this post with a bit of news, last September I got engaged!

Aside from a massive list of never ending tasks you have to do for to plan a wedding, one of the things I’ve been looking forward to is the invitations, and everything that goes with it.

I’ve only ever done small bits of print related work before, so this was actually a fun little project to work on, and later I think i’ll write up a full post on how the process went. Below is a little snapshot of the result, I’m actually pretty pleased with them!

 

Finally

This site has been a work in progress for so long i think i first mentioned i was updating this site in 2009. 3 years ago!

I’ve looked into redeveloping this site quite a lot before, usually ending up in doing the design and half of the build, then being distracted by a marvel film or something like that, coming back and deciding i don’t like it any more and starting the process again.

So here’s my plan.

I’m putting this site live now as is. It’s not finished. Not by a long shot, but now something is up, i can slowly work at getting it into a better state. If anyone see’s anything, email me

Mass removing spam wordpress users

Shock horror, an actual post!

I’ve been slowly (very, very slowly) redoing this blog now on and off for ages. Nearly finished, it was time for a clear up of old content/spam etc etc. first place i went was to the spam users. I had 1582. No way am i clearing that up 20 by 20. I had a quick google and it turns out you can change the screen options to up to 999, but it seems that wont work because the header string becomes too long and crashes out.

Then i found this article.

basically, all you need to do is put the following code in your functions.php file, upload and refresh your site. it’ll tell you how many users its removed, then you just remove the code from your functions. simple.

function remove_subscribers() {
global $wpdb;
$args = array( 'role' => 'Subscriber' );
$subscribers = get_users( $args );
if( !empty($subscribers) ) {
require_once( ABSPATH.'wp-admin/includes/user.php' );
$i = 0;
foreach( $subscribers as $subscriber ) {
if( wp_delete_user( $subscriber->ID ) ) {
$i++;
}
}
echo $i.' Subscribers deleted';
} else {
echo 'No Subscribers deleted';
}
}
remove_subscribers();

http://twitter-widget.com/blog/button-maker/