Block Facebook Beacon
So here I am, burning some brain cells and taking some time to relax playing a game on Kongregate, when a little window pops up in the corner of my screen and says “Kongregate is sending this to your Facebook profile: Nate played Desktop Tower Defense 1.5 at Kongregate.” Which immediately elicited a “Hellll no” from my mouth.
![]()
- Download and Install the BlockSite plugin for Firefox.
- After restarting Firefox select ‘Add-ons’ from the Tools menu.
- Click the ‘Options’ button on the BlockSite extension
- Click the ‘Add’ button
- Enter http://*facebook.com/beacon/* into the input box
- Click ‘OK’
- Click ‘OK’ again and you are good to go.
![]()
Other Browsers
Commenters below have suggested ways to block Facebook Beacon in other browser’s, none of these have been tested by me, but here they are for your use:- Safari - PithHelment or SafariBlock (provided By Schmelding)
- Opera - Site blocking is built in (suggested by George)
- IE7 - IEPro (suggested by Offbeatmammal)
Wordpress Plugin: Extra Comment Fields
Overview
This Wordpress plugin allows you to add additional fields for users to complete when submitting a comment. The extra data will be saved in the wp database and can be retrieved when showing a post’s list of comments. The extra comment variables will show up in the list of comments in your Wordpress admin and are editable through the standard admin comment edit page. This plugin requires a basic knowledge of HTML to modify your comment form. Jump to DownloadExample of Use
For this example, we are going to add a field asking for a users age to the comments form.1. First, add the field to your comments form.
Typically your comments form is in your theme folder and is comments.php Most likely: (/wp-content/themes/YOURTHEME/comments.php) Enter the HTML of your new field into the desired spot. To add a textfield for the user to enter their age into, you would add the following to your form. I’ll add mine right below the url textfield.<p><input type="text" name="age" id="age" size="22" /> <label for="url"><small>Website</small></label></p>
2. Next, we need to add the field-variable to Wordpress.
Inside your Wordpress admin, click the ‘Settings’ menu. Then click the ‘Extra Comment Fields’ menu. Next, enter the name of the field. This has to be the exact name attribute you gave to the field you added to your comments form. For example, I added this field to my form:<p><input type="text" name="age" id="age" size="22" /> <label for="url"><small>Website</small></label></p>
3. Last we want to make use of the data somehow when showing comments.
Your extra fields will be in the $comments variable retrieved by Wordpress. The extra fields you added will have a prefix of ‘extra_’. So to access the data for our ‘age’ field, we use $comment->extra_age inside the comments loop. So, for example, if I modify the default theme’s comment.php file, I just insert one line to display the extra comment information (highlighted in bold).<ol class=”commentlist”>
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id=”comment-<?php comment_ID() ?>”>
<?php echo get_avatar( $comment, 32 ); ?>
<cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == ‘0’) : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<br />
<small class=”commentmetadata”><a href=”#comment-<?php comment_ID() ?>” title=”“><?php comment_date(‘F jS, Y’) ?> at <?php comment_time() ?></a> <?php edit_comment_link(‘edit’,’ ‘,”); ?></small>
<?php comment_text() ?>
User’s Age is: <?php print $comment->extra_age; ?>
</li>
<?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? ‘class=”alt” ’ : ”;
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
Another Example Posted on Problogger
How I added the Twitter ID field to comments on Twitip.comVersion History
1.2 - June 23rd, 2008- Corrected behavior when deleting/changing status of comment
- Fixed blank comment content field
- Updated for WP 2.5
- Added ability to edit comments
- Added ability to view comments in admin
- Extra Comments data deleted when comment is deleted
- Fixed database table prefix
- Initial Release
