WordPress Widget for Google+ posts

If you want a wordpress plugin that feeds your PUBLIC posts to your blog in a widget – test mine for me and let me know how that works for you

go into ‘Add plugin’ and search for ‘google plus feed widget’ and it should be at the top (made by Liz Quilty). Direct link is http://wordpress.org/extend/plugins/google-plus-feed-widget/

Unzip into your plugins dir. Enable the plugin in wordpress, then go to your widgets menu. Drag it where ever you want it, and make sure you add your Google ID into its config (otherwise it defaults to mine).

Let me know any bugs, addons or similar required .

See it working just over there —>>

Syndicating your Google Plus Feed into your WordPress Blog

 

Somebody mentioned that it was hard/impossible to do this, and i know that a few people will want to. So i figured i would hunt about and see if it was possible, and it is! It’s not even too difficult!

First of all, go to http://plusfeed.appspot.com/ – it gives you an rss feed of all your public posts (this will only work for public posts sorry). My URL for my rss feed is http://plusfeed.appspot.com/114228869493885222559 , yours will look similar, just grab the id number from your profile page URL and add it after the domain.

Now go to your WordPress , login, to go Plugins > Add New . Search for and find the plugin called FeedWordPress and install/activate it.
Now it should show you your feed in that syndication tab, you can click the ‘update now’ button to load the last few posts.

Now you will notice a new menu bottom left called ‘Syndication’, click on that, then add in the URL above from plusfeed.appspot.com into the box named “New source”. It will confirm the look/feel, and add it.
Now you can click the ‘update’

 

 

 

 

Updating

Now click on the Feeds and Updates menu below it, look for the drop down box and choose ‘Look for updates after page loads’. You can do updates before the page loads, but this means if a person comes to your blog they are sitting waiting for the page to load whilst it does background grabbing of data.
From here you are away working, feel free to fiddle with other settings.

 

I found i prefer the link to go to the blog post rather than link to the google+ link, so i go to Posts and Links menu, and scroll down to Links, then choose ‘The local copy on this website’

Removing spam users from wordpress with bbforum using SQL

I have a wordpress blog, actually i have a lot of them, which uses the bb forum plugin as well as the main site.
This particular forum attracts a lot of spam signups, this can bog down the database once it gets to the point of over 11k or more, and its a security risk (and pain in the butt). I have implemented several plugins to stop sign ups but they still eventually find their way around things.

So today i decided that i really wanted to be rid of all the users that had not commented or posted on the forum. I had previously found plugins that did this for wordpress itself, but they do not work with the bb forums. Often they check if a person has commented on the wordpress, but not if they have posted on the forum.

Anyway i figured it would be a simple mysql query, so hunted about the forum and made the following up

DELETE FROM wp_users
WHERE wp_users.id NOT
IN (
SELECT user_id
FROM wp_comments
)
AND wp_users.id NOT
IN (
SELECT poster_id
FROM bb_posts
)
AND wp_users.id NOT
IN (
SELECT post_author
FROM wp_posts
)

Then of course you need to hunt out and remove all the other meta data, i used something like this
DELETE FROM wp_usermeta
WHERE wp_usermeta.user_id NOT
IN (
SELECT id FROM wp_users
)

It probably pays to check before deleting, and swap the first “DELETE FROM” for a “SELECT * FROM” to view the data.
It also probably pays to delete the user from wp_usermeta by id and other places (will update later)
Hope this helps somebody, let me know of any other places the data needs to be removed from if you know more.

ps. my PC crashed hard whilst writing this, i lost the exact MySQL query i used so redid this from scratch – let me know if i missed any bits or you get any errors.