Categories
diary plugins wordpress www

WordPress 2.6 / 2.7 + bbPress 0.9 cookie integration plugin

This plugin is for WordPress 2.6 or 2.7. It enables WordPress to generate cookies that work with bbPress 0.9 so that single sign-on can be accomplished between the two. Follow the usual integration instructions and enable this plugin in your WordPress installation. I also advise clearing your cookies.

The integration is all up and running on my site at BayAnime.com. I’d like to add that I was able to put the plugin together without writing a single line of code! It’s literally all the necessary functions cut and pasted directly from WordPress 2.5.1 pluggable.php, so kudos to WordPress for making it easy!

Download this plugin at WordPress.org.

When you do cookie integration please keep in mind that there are some login hooks in pluggable that might not be called in either WP or bbPress depending on which side your user logged in from. This might affect the functionality of some plugins.

For example, after rerouting all my bbPress logins to WP I realized that the ‘bb_set_current_user’ action hook on a bbPress plugin I used was no longer being called, so I had to incorporate it in on the WP side using the ‘set_current_user’ hook.

bbPress 1.0 users should use this plugin instead.

Categories
diary

WTF is wrong with Google AdSense? Get those evil “Yes on 8” ads off your site!

I loaded up BayAnime.com this morning and to my horror the Google AdSense spaces had “Yes on Prop 8” ads all over it! What is wrong with you, Google?! I am a firm supporter of same sex marriage rights and am VERY OPPOSED to Prop 8, which is both evil and hateful! While I can’t speak for the entire Bay Area anime community, I will say that most people I know who are fans of anime and manga are also very accepting of homosexuality. Either way, the ads are completely irrelevant to my site and I am FURIOUS that they were allowed to end up there!

I’ve submitted a request over an hour ago to block the ads, but since Google was taking its sweet old time to comply I just took them completely off for now. If you have a site that runs AdSense and would like to block the ads too (good luck), these are the steps that supposedly may eventually work:

1. Login to your AdSense account
2. Navigate to: AdSense Setup -> Competitive Ad Filter
3. Enter “protectmarriage.com” in the text box
4. Press the “Save changes” button

More ranting and raving on the BayAnime Forums.

Categories
diary plugins wordpress www

WordPress Plugin: Separate Feed Comments and Trackbacks

I couldn’t find anything out there that separated comments and trackbacks from the sitewide and post comments feeds in WordPress, so I had to take a peek at the source to figure this one out. Luckily there’s an (undocumented) hook “comment_feed_where” that makes it easy! Woo!

Anyway, here’s the plugin in case anyone else might be interested…

Download this plugin at WordPress.org.