<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>bbPress Plugin Browser &#187; Topic: bbSocialize</title>
		<link>http://bbpress.org/plugins/topic/bbsocialize/</link>
		<description>bbPress Plugin Browser &#187; Topic: bbSocialize</description>
		<language>en-US</language>
		<pubDate>Fri, 25 May 2012 16:01:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/plugins/rss/topic/bbsocialize" rel="self" type="application/rss+xml" />

		<item>
			<title>bart74 on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/page/2/#post-5161</link>
			<pubDate>Tue, 05 Jan 2010 23:53:03 +0000</pubDate>
			<dc:creator>bart74</dc:creator>
			<guid isPermaLink="false">5161@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>A workaround for the problem when config settings are not saved:</p>
<p>edit line 33 of bb-socialize.php to:<br />
<code>if ( $bb_socialize )</code></p>
<p>upload the file to your site and load the admin-configscreen of the plugin. set your prefs and hit save. Note that your previously settings are overwritten by the default values. Then</p>
<p>edit line 33 of bb-socialize.php back to:<br />
<code>if ( !$bb_socialize )</code></p>
<p>upload this file again and reload the page
</p>]]></description>
					</item>
		<item>
			<title>bart74 on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/page/2/#post-5160</link>
			<pubDate>Tue, 05 Jan 2010 23:48:04 +0000</pubDate>
			<dc:creator>bart74</dc:creator>
			<guid isPermaLink="false">5160@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>Hi y'all,</p>
<p>I added Hyves, LinkedIn and Last FM to the script:</p>
<pre><code>&#60;?php
/*
Plugin Name: bbSocialize
Description: Allows you to set and display your social media websites link in your profile.
Plugin URI: <a href="http://astateofmind.eu/freebies/bbsocialize" rel="nofollow">http://astateofmind.eu/freebies/bbsocialize</a>
Author: F.Thion
Author URI: <a href="http://astateofmind.eu" rel="nofollow">http://astateofmind.eu</a>
Version: 0.0.3

license: CC-GNU-GPL <a href="http://creativecommons.org/licenses/GPL/2.0/" rel="nofollow">http://creativecommons.org/licenses/GPL/2.0/</a>
donate: <a href="http://astateofmind.eu/about/support/" rel="nofollow">http://astateofmind.eu/about/support/</a>

TO DO:
   - Add support for
   	- Technorati
   	- MyBlogLog
   	- MySpace

History for 0.0.3:
	- If profiles are empty and are not set by user, then they are not displayed;
	- Added support for technorati;
	- Changed images names, from x.gif to bb_x.gif;
	- Minor modifications to look of management page;
	- Added support to display profile links in single posts;
	- Added &#34;Reset Button&#34; - you can now reset all settings to default (minor error, changes won&#39;t appear without page refresh)
*/

function bb_socialize_initialize() {
	global $bb, $bb_current_user, $bb_socialize, $bb_signatures_type;
	if ( !isset( $bb_socialize ) )
	{
		$bb_socialize = bb_get_option(&#39;bb_socialize&#39;);
		if ( !$bb_socialize )
		{
			$bb_socialize[&#39;minimum_user_level&#39;] = &#34;participate&#34;;
			$bb_socialize[&#39;images_url&#39;] = bb_get_option(&#39;uri&#39;);
			$bb_socialize[&#39;links_rel&#39;] = &#34;nofollow&#34;;
			$bb_socialize[&#39;plurk&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;twitter&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;pownce&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;facebook&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;myspace&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;flickr&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;delicious&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;digg&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;technorati&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;hyves&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;linkedin&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;lastfm&#39;] = &#34;true&#34;;

		}
	}
}
add_action( &#39;bb_init&#39;, &#39;bb_socialize_initialize&#39;);

// Let&#39;s get some profiles to display
function get_plurk($user_id) {
	$user = bb_get_user( $user_id );
	$bb_plurk = $user-&#62;social_plurk;
	if ( $bb_plurk ) { return $bb_plurk; }  else  { return &#34;&#34;; }
}
function get_twitter($user_id) {
	$user = bb_get_user( $user_id );
	$bb_twitter = $user-&#62;social_twitter;
	if ( $bb_twitter ) { return $bb_twitter; }  else  { return &#34;&#34;; }
}
function get_pownce($user_id) {
	$user = bb_get_user( $user_id );
	$bb_pownce = $user-&#62;social_pownce;
	if ( $bb_pownce ) { return $bb_pownce; }  else  { return &#34;&#34;; }
}
function get_facebook($user_id) {
	$user = bb_get_user( $user_id );
	$bb_facebook = $user-&#62;social_facebook;
	if ( $bb_facebook ) { return $bb_facebook; }  else  { return &#34;&#34;; }
}
function get_myspace($user_id) {
	$user = bb_get_user( $user_id );
	$bb_myspace = $user-&#62;social_myspace;
	if ( $bb_myspace ) { return $bb_myspace; }  else  { return &#34;&#34;; }
}
function get_flickr($user_id) {
	$user = bb_get_user( $user_id );
	$bb_flickr = $user-&#62;social_flickr;
	if ( $bb_flickr ) { return $bb_flickr; }  else  { return &#34;&#34;; }
}
function get_delicious($user_id) {
	$user = bb_get_user( $user_id );
	$bb_delicious = $user-&#62;social_delicious;
	if ( $bb_delicious ) { return $bb_delicious; }  else  { return &#34;&#34;; }
}
function get_digg($user_id) {
	$user = bb_get_user( $user_id );
	$bb_digg = $user-&#62;social_digg;
	if ( $bb_digg ) { return $bb_digg; }  else  { return &#34;&#34;; }
}
function get_technorati($user_id) {
	$user = bb_get_user( $user_id );
	$bb_technorati = $user-&#62;social_technorati;
	if ( $bb_technorati ) { return $bb_technorati; }  else  { return &#34;&#34;; }
}
function get_hyves($user_id) {
	$user = bb_get_user( $user_id );
	$bb_hyves = $user-&#62;social_hyves;
	if ( $bb_hyves ) { return $bb_hyves; }  else  { return &#34;&#34;; }
}
function get_linkedin($user_id) {
	$user = bb_get_user( $user_id );
	$bb_linkedin = $user-&#62;social_linkedin;
	if ( $bb_linkedin ) { return $bb_linkedin; }  else  { return &#34;&#34;; }
}
function get_lastfm($user_id) {
	$user = bb_get_user( $user_id );
	$bb_lastfm = $user-&#62;social_lastfm;
	if ( $bb_lastfm ) { return $bb_lastfm; }  else  { return &#34;&#34;; }
}

// Now, let&#39;s add input fields to our profile-edit page
function add_socialize_to_profile_edit() {
	global $user_id, $bb_current_user, $bb_socialize;	

if (bb_current_user_can($bb_socialize[&#39;minimum_user_level&#39;])  &#38;&#38;  bb_is_user_logged_in() ) :
$bb_plurk = get_plurk($user_id);
$bb_twitter = get_twitter($user_id);
$bb_pownce = get_pownce($user_id);
$bb_facebook = get_facebook($user_id);
$bb_myspace = get_myspace($user_id);
$bb_flickr = get_flickr($user_id);
$bb_delicious = get_delicious($user_id);
$bb_digg = get_digg($user_id);
$bb_technorati = get_technorati($user_id);
$bb_hyves = get_hyves($user_id);
$bb_linkedin = get_linkedin($user_id);
$bb_lastfm = get_lastfm($user_id);

echo &#39;&#60;div class=&#34;socialize_edit&#34;&#62;
&#60;fieldset&#62;
&#60;legend&#62;&#39;. __(&#39;Social Media Profiles&#39;) .&#39;&#60;/legend&#62;

&#60;p&#62;Set your Social Media Profiles below.&#60;/p&#62;

&#60;table&#62;&#39;;
 if ( $bb_socialize[&#39;plurk&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Plurk&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_plurk&#34; value=&#34;&#39;. $bb_plurk .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
} 

if ( $bb_socialize[&#39;twitter&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Twitter&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_twitter&#34; value=&#34;&#39;. $bb_twitter .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;pownce&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Pownce&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_pownce&#34; value=&#34;&#39;. $bb_pownce .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

 if ( $bb_socialize[&#39;facebook&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Facebook Account #&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_facebook&#34; value=&#34;&#39;. $bb_facebook .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
} 

 if ( $bb_socialize[&#39;myspace&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;MySpace&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_myspace&#34; value=&#34;&#39;. $bb_myspace .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
} 

if ( $bb_socialize[&#39;flickr&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Flickr&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_flickr&#34; value=&#34;&#39;. $bb_flickr .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;delicious&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Delicious&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_delicious&#34; value=&#34;&#39;. $bb_delicious .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;digg&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Digg&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_digg&#34; value=&#34;&#39;. $bb_digg .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;technorati&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Technorati&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_technorati&#34; value=&#34;&#39;. $bb_technorati .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;hyves&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Hyves&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_hyves&#34; value=&#34;&#39;. $bb_hyves .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;linkedin&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;LinkedIn&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_linkedin&#34; value=&#34;&#39;. $bb_linkedin .&#39;&#34; /&#62; &#60;br /&#62;&#60;i&#62;(Use this part of your public profile URL <a href="http://www.linkedin.com/in/&#060;u&#062;YourName&#060;/u&#062;&#060;/i&#062" rel="nofollow">http://www.linkedin.com/in/&#060;u&#062;YourName&#060;/u&#062;&#060;/i&#062</a>;)
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;lastfm&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Last FM&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_lastfm&#34; value=&#34;&#39;. $bb_lastfm .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

echo &#39;&#60;/table&#62;&#60;/fieldset&#62;

&#60;/div&#62;&#39;;
	endif;
}
add_action(&#39;extra_profile_info&#39;, &#39;add_socialize_to_profile_edit&#39;);

// The following function can be used to display profiles on user-profile-page
function get_socialize() {
	global $user_id, $bb_current_user, $bb_socialize;

	$user_id = bb_get_user( $user_id );
	$bb_plurk = $user_id-&#62;social_plurk;
	$bb_twitter = $user_id-&#62;social_twitter;
   $bb_facebook = $user_id-&#62;social_facebook;
	$bb_myspace = $user_id-&#62;social_myspace;
	$bb_flickr = $user_id-&#62;social_flickr;
	$bb_pownce = $user_id-&#62;social_pownce;
	$bb_delicious = $user_id-&#62;social_delicious;
	$bb_digg = $user_id-&#62;social_digg;
	$bb_technorati = $user_id-&#62;social_technorati;
	$bb_hyves = $user_id-&#62;social_hyves;
	$bb_linkedin = $user_id-&#62;social_linkedin;
	$bb_lastfm = $user_id-&#62;social_lastfm;

	echo &#39;&#60;div class=&#34;socialize_wrap&#34;&#62;&#39;;
   if ( $bb_socialize[&#39;plurk&#39;] == true ) { if ( !empty( $bb_plurk ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_plurk.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://plurk.com/&#39;.$bb_plurk.&#39;&#34; title=&#34;User Plurk account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_plurk.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;twitter&#39;] == true ) { if ( !empty( $bb_twitter ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_twitter.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://twitter.com/&#39;.$bb_twitter.&#39;&#34; title=&#34;User Twitter account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_twitter.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;pownce&#39;] == true ) { if ( !empty( $bb_pownce ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_pownce.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://pownce.com/&#39;.$bb_pownce.&#39;&#34; title=&#34;User Pownce account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_pownce.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;facebook&#39;] == true ) { if ( !empty( $bb_facebook ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_facebook.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://www.facebook.com/profile.php?id=&#39;.$bb_facebook.&#39;&#34; title=&#34;User Facebook account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_facebook.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;myspace&#39;] == true ) { if ( !empty( $bb_myspace ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_myspace.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://myspace.com/&#39;.$bb_myspace.&#39;&#34; title=&#34;User MySpace page&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_myspace.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;flickr&#39;] == true ) { if ( !empty( $bb_flickr ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_flickr.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://flickr.com/photos/&#39;.$bb_flickr.&#39;&#34; title=&#34;User Flickr account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_flickr.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;delicious&#39;] == true ) { if ( !empty( $bb_delicious ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_delicious.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://delicious.com/&#39;.$bb_delicious.&#39;&#34; title=&#34;User Delicious account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_delicious.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;digg&#39;] == true ) { if ( !empty( $bb_digg ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_digg.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://digg.com/users/&#39;.$bb_digg.&#39;&#34; title=&#34;User Digg account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_digg.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;technorati&#39;] == true ) { if ( !empty( $bb_technorati) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_technorati.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://technorati.com/people/technorati/&#39;.$bb_technorati.&#39;&#34; title=&#34;User Technorati account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_technorati.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;hyves&#39;] == true ) { if ( !empty( $bb_hyves) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_hyves.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://&#39;.$bb_hyves.&#39;.hyves.nl/&#34; title=&#34;User Technorati account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_hyves.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;linkedin&#39;] == true ) { if ( !empty( $bb_linkedin) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_linkedin.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://www.linkedin.com/in/&#39;.$bb_linkedin.&#39;/&#34; title=&#34;User LinkedIn public profile page&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_linkedin.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;lastfm&#39;] == true ) { if ( !empty( $bb_lastfm) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_lastfm.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://www.last.fm/user/&#39;.$bb_lastfm.&#39;&#34; title=&#34;User Last FM radio station&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_lastfm.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }

	echo &#39;&#60;/div&#62;&#39;;
}

// The following function can be used in posts; just put get_socialize_post(get_post_author_id()); somewhere :)
function get_socialize_post( $user_id ) {
	global $bb, $bb_socialize;

	$user_id = bb_get_user( $user_id );
	$bb_plurk = $user_id-&#62;social_plurk;
	$bb_twitter = $user_id-&#62;social_twitter;
	$bb_pownce = $user_id-&#62;social_pownce;
	$bb_facebook = $user_id-&#62;social_facebook;
	$bb_myspace = $user_id-&#62;social_myspace;
	$bb_flickr = $user_id-&#62;social_flickr;
	$bb_delicious = $user_id-&#62;social_delicious;
	$bb_digg = $user_id-&#62;social_digg;
	$bb_technorati = $user_id-&#62;social_technorati;
	$bb_hyves = $user_id-&#62;social_hyves;
	$bb_linkedin = $user_id-&#62;social_linkedin;
	$bb_lastfm = $user_id-&#62;social_lastfm;

	echo &#39;&#60;div class=&#34;post_socialize_wrap&#34;&#62;&#39;;
   if ( $bb_socialize[&#39;plurk&#39;] == true ) { if ( !empty( $bb_plurk ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://plurk.com/&#39;.$bb_plurk.&#39;&#34; title=&#34;User Plurk account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_plurk.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;twitter&#39;] == true ) { if ( !empty( $bb_twitter ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://twitter.com/&#39;.$bb_twitter.&#39;&#34; title=&#34;User Twitter account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_twitter.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
   if ( $bb_socialize[&#39;pownce&#39;] == true ) { if ( !empty( $bb_pownce ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://pownce.com/&#39;.$bb_pownce.&#39;&#34; title=&#34;User Pownce account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_pownce.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;facebook&#39;] == true ) { if ( !empty( $bb_facebook ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://www.facebook.com/profile.php?id=&#39;.$bb_facebook.&#39;&#34; title=&#34;User Facebook account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_facebook.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;myspace&#39;] == true ) { if ( !empty( $bb_myspace ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://myspace.com/&#39;.$bb_myspace.&#39;&#34; title=&#34;User MySpace page&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_myspace.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;flickr&#39;] == true ) { if ( !empty( $bb_flickr ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://flickr.com/photos/&#39;.$bb_flickr.&#39;&#34; title=&#34;User Flickr account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_flickr.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;delicious&#39;] == true ) { if ( !empty( $bb_delicious ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://delicious.com/&#39;.$bb_delicious.&#39;&#34; title=&#34;User Delicious account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_delicious.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;digg&#39;] == true ) { if ( !empty( $bb_digg ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://digg.com/users/&#39;.$bb_digg.&#39;&#34; title=&#34;User Digg account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_digg.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;technorati&#39;] == true ) { if ( !empty( $bb_technorati) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://technorati.com/people/technorati/&#39;.$bb_technorati.&#39;&#34; title=&#34;User Technorati account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_technorati.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;hyves&#39;] == true ) { if ( !empty( $bb_hyves) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://&#39;.$bb_hyves.&#39;.hyves.nl/&#34; title=&#34;User hyves account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_hyves.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;linkedin&#39;] == true ) { if ( !empty( $bb_linkedin) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://www.linkedin.com/in/&#39;.$bb_linkedin.&#39;/&#34; title=&#34;User LinkedIn public profile page&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_linkedin.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;lastfm&#39;] == true ) { if ( !empty( $bb_lastfm) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://www.last.fm/user/&#39;.$bb_lastfm.&#39;/&#34; title=&#34;User lastfm radio station&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_lastfm.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }

	echo &#39;&#60;/div&#62;&#39;;
}

function update_user_socialize() {
	global $user_id, $bb_socialize;

	$bb_plurk = $_POST[&#39;bb_plurk&#39;];
	$bb_twitter = $_POST[&#39;bb_twitter&#39;];
	$bb_pownce = $_POST[&#39;bb_pownce&#39;];
	$bb_facebook = $_POST[&#39;bb_facebook&#39;];
	$bb_myspace = $_POST[&#39;bb_myspace&#39;];
	$bb_flickr = $_POST[&#39;bb_flickr&#39;];
	$bb_delicious = $_POST[&#39;bb_delicious&#39;];
	$bb_digg = $_POST[&#39;bb_digg&#39;];
	$bb_technorati = $_POST[&#39;bb_technorati&#39;];
	$bb_hyves = $_POST[&#39;bb_hyves&#39;];
	$bb_linkedin = $_POST[&#39;bb_linkedin&#39;];
	$bb_lastfm = $_POST[&#39;bb_lastfm&#39;];

	if ( $bb_plurk )
	{
		$bb_plurk = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_plurk) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_plurk&#34;,$bb_plurk);
	}
	else {bb_delete_usermeta($user_id, &#34;social_plurk&#34;);} 

	if ( $bb_twitter )
	{
		$bb_twitter = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_twitter) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_twitter&#34;,$bb_twitter);
	}
	else {bb_delete_usermeta($user_id, &#34;social_twitter&#34;);}

	if ( $bb_pownce )
	{
		$bb_pownce = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_pownce) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_pownce&#34;,$bb_pownce);
	}
	else {bb_delete_usermeta($user_id, &#34;social_pownce&#34;);}

	if ( $bb_facebook )
	{
		$bb_facebook = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_facebook) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_facebook&#34;,$bb_facebook);
	}
	else {bb_delete_usermeta($user_id, &#34;social_facebook&#34;);} 

	if ( $bb_myspace )
	{
		$bb_myspace = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_myspace) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_myspace&#34;,$bb_myspace);
	}
	else {bb_delete_usermeta($user_id, &#34;social_myspace&#34;);} 

	if ( $bb_flickr )
	{
		$bb_flickr = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_flickr) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_flickr&#34;,$bb_flickr);
	}
	else {bb_delete_usermeta($user_id, &#34;social_flickr&#34;);}

	if ( $bb_delicious )
	{
		$bb_delicious = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_delicious) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_delicious&#34;,$bb_delicious);
	}
	else {bb_delete_usermeta($user_id, &#34;social_delicious&#34;);}

	if ( $bb_digg )
	{
		$bb_digg = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_digg) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_digg&#34;,$bb_digg);
	}
	else {bb_delete_usermeta($user_id, &#34;social_digg&#34;);}	

	if ( $bb_technorati )
	{
		$bb_technorati = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_technorati) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_technorati&#34;,$bb_technorati);
	}
	else {bb_delete_usermeta($user_id, &#34;social_technorati&#34;);}

	if ( $bb_hyves )
	{
		$bb_hyves = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_hyves) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_hyves&#34;,$bb_hyves);
	}
	else {bb_delete_usermeta($user_id, &#34;social_hyves&#34;);}

	if ( $bb_linkedin )
	{
		$bb_linkedin = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_linkedin) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_linkedin&#34;,$bb_linkedin);
	}
	else {bb_delete_usermeta($user_id, &#34;social_linkedin&#34;);}

	if ( $bb_lastfm )
	{
		$bb_lastfm = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_lastfm) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_lastfm&#34;,$bb_lastfm);
	}
	else {bb_delete_usermeta($user_id, &#34;social_lastfm&#34;);}
}
add_action(&#39;profile_edited&#39;, &#39;update_user_socialize&#39;);

function bb_socialize_admin_page() {
	global $bb_socialize;
	?&#62;
	&#60;h2&#62;bbPress Social Profiles Management&#60;/h2&#62;

	&#60;form method=&#34;post&#34; name=&#34;bb_socialize_form&#34; id=&#34;bb_socialize_form&#34;&#62;
	&#60;fieldset&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;bb_socialize&#34; value=&#34;1&#34;&#62;

		&#60;table class=&#34;widefat&#34;&#62;
			&#60;thead&#62;
				&#60;tr&#62;&#60;th width=&#34;170&#34;&#62;Option&#60;/th&#62;&#60;th&#62;Setting&#60;/th&#62;&#60;/tr&#62;
			&#60;/thead&#62;
			&#60;tbody&#62;
				&#60;tr&#62;
					&#60;td&#62;&#60;label for=&#34;images_url&#34;&#62;&#60;b&#62;URL to images&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input type=&#34;text&#34; name=&#34;images_url&#34; class=&#34;text long&#34; value=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;&#34;&#62; Please provide full url, but without final slash.
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;label for=&#34;links_rel&#34;&#62;&#60;b&#62;Links REL&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input type=&#34;text&#34; name=&#34;links_rel&#34; class=&#34;text long&#34; value=&#34;&#60;?php echo $bb_socialize[&#39;links_rel&#39;]; ?&#62;&#34;&#62; e.g. follow
					&#60;/td&#62;
				&#60;/tr&#62;
			&#60;/tbody&#62;
		&#60;/table&#62;

		&#60;h3&#62;Set social sites&#60;/h3&#62;

		&#60;p&#62;Use the settings below to decide, which social media websites will be used on your forum. Set &#34;yes&#34; if you want to allow users to set their account for this specific website, or set &#34;no&#34; to hide the specific website. You can change these settings anytime you want.&#60;/p&#62;

		&#60;table class=&#34;widefat&#34;&#62;
			&#60;thead&#62;
				&#60;tr&#62;&#60;th width=&#34;170&#34;&#62;Social Media Site&#60;/th&#62;&#60;th&#62;Display&#60;/th&#62;&#60;/tr&#62;
			&#60;/thead&#62;
			&#60;tbody&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_plurk.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;plurk&#34;&#62;&#60;b&#62;Plurk&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;plurk&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;plurk&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;plurk&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;plurk&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_twitter.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;twitter&#34;&#62;&#60;b&#62;Twitter&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;twitter&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;twitter&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;twitter&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;twitter&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_pownce.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;pownce&#34;&#62;&#60;b&#62;Pownce&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;pownce&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;pownce&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;pownce&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;pownce&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_facebook.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;facebook&#34;&#62;&#60;b&#62;Facebook&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;facebook&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;facebook&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;facebook&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;facebook&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_myspace.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;myspace&#34;&#62;&#60;b&#62;MySpace&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;myspace&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;myspace&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;myspace&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;myspace&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_flickr.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;flickr&#34;&#62;&#60;b&#62;Flickr&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;flickr&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;flickr&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;flickr&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;flickr&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_delicious.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;delicious&#34;&#62;&#60;b&#62;Delicious&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;delicious&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;delicious&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;delicious&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;delicious&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_digg.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;digg&#34;&#62;&#60;b&#62;Digg&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;digg&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;digg&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;digg&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;digg&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

	        &#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_technorati.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;technorati&#34;&#62;&#60;b&#62;Technorati&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;technorati&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;technorati&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;technorati&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;technorati&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_hyves.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;hyves&#34;&#62;&#60;b&#62;Hyves&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;hyves&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;hyves&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;hyves&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;hyves&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_linkedin.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;linkedin&#34;&#62;&#60;b&#62;LinkedIn&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;linkedin&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;linkedin&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;linkedin&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;linkedin&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_lastfm.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;lastfm&#34;&#62;&#60;b&#62;Last FM&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;lastfm&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;lastfm&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;lastfm&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;lastfm&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

			&#60;/tbody&#62;
		&#60;/table&#62;
		&#60;p class=&#34;submit&#34;&#62;&#60;input type=&#34;submit&#34; name=&#34;bb_socialize_submit&#34; value=&#34;Save bbSocialize settings&#34;&#62; &#60;input type=&#34;submit&#34; name=&#34;bb_socialize_reset&#34; value=&#34;Reset settings&#34;&#62;&#60;/p&#62;
	&#60;/fieldset&#62;
	&#60;/form&#62;

	&#60;hr /&#62;

	&#60;p&#62;If you like this plugin, please donate few bucks so I could keep developing it. Or at least &#60;a href=&#34;http://twitter.com/t_thion/&#34;&#62;follow me on Twitter&#60;/a&#62; :).

	&#60;form action=&#34;https://www.paypal.com/cgi-bin/webscr&#34; method=&#34;post&#34;&#62;

	&#60;input type=&#34;hidden&#34; name=&#34;cmd&#34; value=&#34;_donations&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;business&#34; value=&#34;wojciech.usarzewicz@gmail.com&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;item_name&#34; value=&#34;bbPages Donation&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;item_number&#34; value=&#34;bbPages Donation&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;no_shipping&#34; value=&#34;0&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;no_note&#34; value=&#34;1&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;currency_code&#34; value=&#34;USD&#34; /&#62;

	Type donation amount: $ &#60;input type=&#34;text&#34; name=&#34;amount&#34; value=&#34;1&#34; /&#62;

	&#60;input type=&#34;hidden&#34; name=&#34;tax&#34; value=&#34;0&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;lc&#34; value=&#34;US&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;bn&#34; value=&#34;PP-DonationsBF&#34;&#62;

	&#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Donate with PayPal!&#34; alt=&#34;PayPal - The safer, easier way to pay online!&#34;&#62;
	&#60;img alt=&#34;&#34; border=&#34;0&#34; src=&#34;https://www.paypal.com/pl_PL/i/scr/pixel.gif&#34; width=&#34;1&#34; height=&#34;1&#34;&#62;
	&#60;/form&#62;
	&#60;/p&#62;

	&#60;?php
}

function bb_socialize_process_post() {
	if ( isset( $_POST[&#39;bb_socialize_submit&#39;] ) &#38;&#38; isset( $_POST[&#39;bb_socialize&#39;] ) )
	{
		global $bb_socialize;

		foreach( array_keys($bb_socialize) as $key) {
			if ( isset( $_POST[$key] ) ) { $bb_socialize[$key] = $_POST[$key]; }
		}

		bb_update_option(&#39;bb_socialize&#39;,$bb_socialize);
	} elseif ( isset( $_POST[&#39;bb_socialize_reset&#39;] ) ) {
		global $bb_socialize;

		foreach( array_keys($bb_socialize) as $key) {
			if ( isset( $_POST[$key] ) ) { $bb_socialize[$key] = $_POST[$key]; }
		}

		bb_delete_option(&#39;bb_socialize&#39;);
	}
}
add_action( &#39;bb_admin-header.php&#39;,&#39;bb_socialize_process_post&#39;);

function bb_socialize_add_admin_page() {
	bb_admin_add_submenu(__(&#39;Social Profiles&#39;), &#39;administrate&#39;, &#39;bb_socialize_admin_page&#39; );
}
add_action( &#39;bb_admin_menu_generator&#39;, &#39;bb_socialize_add_admin_page&#39; );

?&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>johnnydoe on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/page/2/#post-4557</link>
			<pubDate>Tue, 15 Sep 2009 01:08:01 +0000</pubDate>
			<dc:creator>johnnydoe</dc:creator>
			<guid isPermaLink="false">4557@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>mhhhh it worked after a reset and then you have to save the prefered setting.
</p>]]></description>
					</item>
		<item>
			<title>johnnydoe on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/page/2/#post-4556</link>
			<pubDate>Tue, 15 Sep 2009 01:04:12 +0000</pubDate>
			<dc:creator>johnnydoe</dc:creator>
			<guid isPermaLink="false">4556@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>same here! the enabled facebook setting jumps always back after "save bbsocialize settings" to disabled.
</p>]]></description>
					</item>
		<item>
			<title>josepjc on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/page/2/#post-4455</link>
			<pubDate>Wed, 26 Aug 2009 17:55:32 +0000</pubDate>
			<dc:creator>josepjc</dc:creator>
			<guid isPermaLink="false">4455@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>Activate and Deactivate de plugin bbSocialize, it works for me.
</p>]]></description>
					</item>
		<item>
			<title>Design Maroc on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/page/2/#post-4004</link>
			<pubDate>Sat, 18 Jul 2009 13:54:56 +0000</pubDate>
			<dc:creator>Design Maroc</dc:creator>
			<guid isPermaLink="false">4004@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>Hi all</p>
<p>I have the same prob as mgorey:</p>
<blockquote><p>The Facebook display button can't be selected for "yes". It automatically reverts to "no" when the settings are saved.</p></blockquote>
<p>Any ideas on how to make it work?
</p>]]></description>
					</item>
		<item>
			<title>ArnyVee on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-3845</link>
			<pubDate>Sun, 05 Jul 2009 22:21:59 +0000</pubDate>
			<dc:creator>ArnyVee</dc:creator>
			<guid isPermaLink="false">3845@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>So since I'm a newb, just want to be clear on how to get this working :)</p>
<p>I download and follow instructions on how to get it going. Then, take the bb-socialize.php file, edit it and copy and paste LidiaAnain's code (couple posts up) and save and override previous version of bb-socialize.php file, right?</p>
<p>This is definitely an important tool to help get the word out about our forums. Thanks for this! :D
</p>]]></description>
					</item>
		<item>
			<title>mgorey on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-3813</link>
			<pubDate>Sat, 04 Jul 2009 08:12:01 +0000</pubDate>
			<dc:creator>mgorey</dc:creator>
			<guid isPermaLink="false">3813@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>I have an irritating minor problem with LidiaAnain's hack.</p>
<p>The Facebook display button can't be selected for "yes". It automatically reverts to "no" when the settings are saved.
</p>]]></description>
					</item>
		<item>
			<title>circuit on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-2822</link>
			<pubDate>Sun, 15 Feb 2009 17:46:24 +0000</pubDate>
			<dc:creator>circuit</dc:creator>
			<guid isPermaLink="false">2822@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>could i request last.fm integration, please?
</p>]]></description>
					</item>
		<item>
			<title>walkerevans on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-2475</link>
			<pubDate>Mon, 29 Dec 2008 04:42:22 +0000</pubDate>
			<dc:creator>walkerevans</dc:creator>
			<guid isPermaLink="false">2475@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>Thanks for the modification code, LidiaAnain. Worked for me too! :D
</p>]]></description>
					</item>
		<item>
			<title>LidiaAnain on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-2279</link>
			<pubDate>Sat, 29 Nov 2008 23:26:22 +0000</pubDate>
			<dc:creator>LidiaAnain</dc:creator>
			<guid isPermaLink="false">2279@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>I want to thank Thion for this plugin. I wanted to use it and have support for the social networks I use most so, I went ahead and played with the plugin and added support for plurk, myspace and facebook. I will be adding support for the sites some you asked for like mybloglog and stumbleupon, plus a bunch of others as soon as I get more free time. </p>
<p>Here is the updated code for the bb-socialize.php file<br />
-------Code Begin------</p>
<pre><code>&#60;?php
/*
Plugin Name: bbSocialize
Description: Allows you to set and display your social media websites link in your profile.
Plugin URI: <a href="http://astateofmind.eu/freebies/bbsocialize" rel="nofollow">http://astateofmind.eu/freebies/bbsocialize</a>
Author: F.Thion
Author URI: <a href="http://astateofmind.eu" rel="nofollow">http://astateofmind.eu</a>
Version: 0.0.3

license: CC-GNU-GPL <a href="http://creativecommons.org/licenses/GPL/2.0/" rel="nofollow">http://creativecommons.org/licenses/GPL/2.0/</a>
donate: <a href="http://astateofmind.eu/about/support/" rel="nofollow">http://astateofmind.eu/about/support/</a>

TO DO:
   - Add support for
   	- Technorati
   	- MyBlogLog
   	- MySpace

History for 0.0.3:
	- If profiles are empty and are not set by user, then they are not displayed;
	- Added support for technorati;
	- Changed images names, from x.gif to bb_x.gif;
	- Minor modifications to look of management page;
	- Added support to display profile links in single posts;
	- Added &#34;Reset Button&#34; - you can now reset all settings to default (minor error, changes won&#39;t appear without page refresh)
*/

function bb_socialize_initialize() {
	global $bb, $bb_current_user, $bb_socialize, $bb_signatures_type;
	if ( !isset( $bb_socialize ) )
	{
		$bb_socialize = bb_get_option(&#39;bb_socialize&#39;);
		if ( !$bb_socialize )
		{
			$bb_socialize[&#39;minimum_user_level&#39;] = &#34;participate&#34;;
			$bb_socialize[&#39;images_url&#39;] = bb_get_option(&#39;uri&#39;);
			$bb_socialize[&#39;links_rel&#39;] = &#34;nofollow&#34;;
			$bb_socialize[&#39;plurk&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;twitter&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;pownce&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;facebook&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;myspace&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;flickr&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;delicious&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;digg&#39;] = &#34;true&#34;;
			$bb_socialize[&#39;technorati&#39;] = &#34;true&#34;;

		}
	}
}
add_action( &#39;bb_init&#39;, &#39;bb_socialize_initialize&#39;);

// Let&#39;s get some profiles to display
function get_plurk($user_id) {
	$user = bb_get_user( $user_id );
	$bb_plurk = $user-&#62;social_plurk;
	if ( $bb_plurk ) { return $bb_plurk; }  else  { return &#34;&#34;; }
}
function get_twitter($user_id) {
	$user = bb_get_user( $user_id );
	$bb_twitter = $user-&#62;social_twitter;
	if ( $bb_twitter ) { return $bb_twitter; }  else  { return &#34;&#34;; }
}
function get_pownce($user_id) {
	$user = bb_get_user( $user_id );
	$bb_pownce = $user-&#62;social_pownce;
	if ( $bb_pownce ) { return $bb_pownce; }  else  { return &#34;&#34;; }
}
function get_facebook($user_id) {
	$user = bb_get_user( $user_id );
	$bb_facebook = $user-&#62;social_facebook;
	if ( $bb_facebook ) { return $bb_facebook; }  else  { return &#34;&#34;; }
}
function get_myspace($user_id) {
	$user = bb_get_user( $user_id );
	$bb_myspace = $user-&#62;social_myspace;
	if ( $bb_myspace ) { return $bb_myspace; }  else  { return &#34;&#34;; }
}
function get_flickr($user_id) {
	$user = bb_get_user( $user_id );
	$bb_flickr = $user-&#62;social_flickr;
	if ( $bb_flickr ) { return $bb_flickr; }  else  { return &#34;&#34;; }
}
function get_delicious($user_id) {
	$user = bb_get_user( $user_id );
	$bb_delicious = $user-&#62;social_delicious;
	if ( $bb_delicious ) { return $bb_delicious; }  else  { return &#34;&#34;; }
}
function get_digg($user_id) {
	$user = bb_get_user( $user_id );
	$bb_digg = $user-&#62;social_digg;
	if ( $bb_digg ) { return $bb_digg; }  else  { return &#34;&#34;; }
}
function get_technorati($user_id) {
	$user = bb_get_user( $user_id );
	$bb_technorati = $user-&#62;social_technorati;
	if ( $bb_technorati ) { return $bb_technorati; }  else  { return &#34;&#34;; }
}

// Now, let&#39;s add input fields to our profile-edit page
function add_socialize_to_profile_edit() {
	global $user_id, $bb_current_user, $bb_socialize;	

if (bb_current_user_can($bb_socialize[&#39;minimum_user_level&#39;])  &#38;&#38;  bb_is_user_logged_in() ) :
$bb_plurk = get_plurk($user_id);
$bb_twitter = get_twitter($user_id);
$bb_pownce = get_pownce($user_id);
$bb_facebook = get_facebook($user_id);
$bb_myspace = get_myspace($user_id);
$bb_flickr = get_flickr($user_id);
$bb_delicious = get_delicious($user_id);
$bb_digg = get_digg($user_id);
$bb_technorati = get_technorati($user_id);

echo &#39;&#60;div class=&#34;socialize_edit&#34;&#62;
&#60;fieldset&#62;
&#60;legend&#62;&#39;. __(&#39;Social Media Profiles&#39;) .&#39;&#60;/legend&#62;

&#60;p&#62;Set your Social Media Profiles below.&#60;/p&#62;

&#60;table&#62;&#39;;
 if ( $bb_socialize[&#39;plurk&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Plurk&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_plurk&#34; value=&#34;&#39;. $bb_plurk .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
} 

if ( $bb_socialize[&#39;twitter&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Twitter&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_twitter&#34; value=&#34;&#39;. $bb_twitter .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;pownce&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Pownce&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_pownce&#34; value=&#34;&#39;. $bb_pownce .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

 if ( $bb_socialize[&#39;facebook&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Facebook Account #&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_facebook&#34; value=&#34;&#39;. $bb_facebook .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
} 

 if ( $bb_socialize[&#39;myspace&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;MySpace&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_myspace&#34; value=&#34;&#39;. $bb_myspace .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
} 

if ( $bb_socialize[&#39;flickr&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Flickr&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_flickr&#34; value=&#34;&#39;. $bb_flickr .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;delicious&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Delicious&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_delicious&#34; value=&#34;&#39;. $bb_delicious .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;digg&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Digg&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_digg&#34; value=&#34;&#39;. $bb_digg .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

if ( $bb_socialize[&#39;technorati&#39;] == true ) {
echo &#39;&#60;tr class=&#34;form-field&#34;&#62;
	&#60;th scope=&#34;row&#34;&#62;Technorati&#60;/th&#62;
	&#60;td&#62;
		&#60;input type=&#34;text&#34; name=&#34;bb_technorati&#34; value=&#34;&#39;. $bb_technorati .&#39;&#34; /&#62;
	&#60;/td&#62;
&#60;/tr&#62;&#39;;
}

echo &#39;&#60;/table&#62;&#60;/fieldset&#62;

&#60;/div&#62;&#39;;
	endif;
}
add_action(&#39;extra_profile_info&#39;, &#39;add_socialize_to_profile_edit&#39;);

// The following function can be used to display profiles on user-profile-page
function get_socialize() {
	global $user_id, $bb_current_user, $bb_socialize;

	$user_id = bb_get_user( $user_id );
	$bb_plurk = $user_id-&#62;social_plurk;
	$bb_twitter = $user_id-&#62;social_twitter;
   $bb_facebook = $user_id-&#62;social_facebook;
	$bb_myspace = $user_id-&#62;social_myspace;
	$bb_flickr = $user_id-&#62;social_flickr;
	$bb_pownce = $user_id-&#62;social_pownce;
	$bb_delicious = $user_id-&#62;social_delicious;
	$bb_digg = $user_id-&#62;social_digg;
	$bb_technorati = $user_id-&#62;social_technorati;

	echo &#39;&#60;div class=&#34;socialize_wrap&#34;&#62;&#39;;
   if ( $bb_socialize[&#39;plurk&#39;] == true ) { if ( !empty( $bb_plurk ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_plurk.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://plurk.com/&#39;.$bb_plurk.&#39;&#34; title=&#34;User Plurk account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_plurk.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;twitter&#39;] == true ) { if ( !empty( $bb_twitter ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_twitter.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://twitter.com/&#39;.$bb_twitter.&#39;&#34; title=&#34;User Twitter account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_twitter.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;pownce&#39;] == true ) { if ( !empty( $bb_pownce ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_pownce.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://pownce.com/&#39;.$bb_pownce.&#39;&#34; title=&#34;User Pownce account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_pownce.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;facebook&#39;] == true ) { if ( !empty( $bb_facebook ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_facebook.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://www.facebook.com/profile.php?id=&#39;.$bb_facebook.&#39;&#34; title=&#34;User Facebook account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_facebook.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;myspace&#39;] == true ) { if ( !empty( $bb_myspace ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_myspace.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://myspace.com/&#39;.$bb_myspace.&#39;&#34; title=&#34;User MySpace page&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_myspace.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;flickr&#39;] == true ) { if ( !empty( $bb_flickr ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_flickr.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://flickr.com/photos/&#39;.$bb_flickr.&#39;&#34; title=&#34;User Flickr account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_flickr.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;delicious&#39;] == true ) { if ( !empty( $bb_delicious ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_delicious.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://delicious.com/&#39;.$bb_delicious.&#39;&#34; title=&#34;User Delicious account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_delicious.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;digg&#39;] == true ) { if ( !empty( $bb_digg ) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_digg.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://digg.com/users/&#39;.$bb_digg.&#39;&#34; title=&#34;User Digg account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_digg.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }
	if ( $bb_socialize[&#39;technorati&#39;] == true ) { if ( !empty( $bb_technorati) ) { echo &#39;&#60;dd&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_technorati.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;a href=&#34;http://technorati.com/people/technorati/&#39;.$bb_technorati.&#39;&#34; title=&#34;User Technorati account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;span&#62;&#39;.$bb_technorati.&#39;&#60;/span&#62;&#60;/a&#62;&#60;/dd&#62;&#39;; } }

	echo &#39;&#60;/div&#62;&#39;;
}

// The following function can be used in posts; just put get_socialize_post(get_post_author_id()); somewhere :)
function get_socialize_post( $user_id ) {
	global $bb, $bb_socialize;

	$user_id = bb_get_user( $user_id );
	$bb_plurk = $user_id-&#62;social_plurk;
	$bb_twitter = $user_id-&#62;social_twitter;
	$bb_pownce = $user_id-&#62;social_pownce;
	$bb_facebook = $user_id-&#62;social_facebook;
	$bb_myspace = $user_id-&#62;social_myspace;
	$bb_flickr = $user_id-&#62;social_flickr;
	$bb_delicious = $user_id-&#62;social_delicious;
	$bb_digg = $user_id-&#62;social_digg;
	$bb_technorati = $user_id-&#62;social_technorati;

	echo &#39;&#60;div class=&#34;post_socialize_wrap&#34;&#62;&#39;;
   if ( $bb_socialize[&#39;plurk&#39;] == true ) { if ( !empty( $bb_plurk ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://plurk.com/&#39;.$bb_plurk.&#39;&#34; title=&#34;User Plurk account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_plurk.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;twitter&#39;] == true ) { if ( !empty( $bb_twitter ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://twitter.com/&#39;.$bb_twitter.&#39;&#34; title=&#34;User Twitter account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_twitter.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
   if ( $bb_socialize[&#39;pownce&#39;] == true ) { if ( !empty( $bb_pownce ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://pownce.com/&#39;.$bb_pownce.&#39;&#34; title=&#34;User Pownce account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_pownce.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;facebook&#39;] == true ) { if ( !empty( $bb_facebook ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://www.facebook.com/profile.php?id=&#39;.$bb_facebook.&#39;&#34; title=&#34;User Facebook account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_facebook.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;myspace&#39;] == true ) { if ( !empty( $bb_myspace ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://myspace.com/&#39;.$bb_myspace.&#39;&#34; title=&#34;User MySpace page&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_myspace.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;flickr&#39;] == true ) { if ( !empty( $bb_flickr ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://flickr.com/photos/&#39;.$bb_flickr.&#39;&#34; title=&#34;User Flickr account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_flickr.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;delicious&#39;] == true ) { if ( !empty( $bb_delicious ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://delicious.com/&#39;.$bb_delicious.&#39;&#34; title=&#34;User Delicious account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_delicious.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;digg&#39;] == true ) { if ( !empty( $bb_digg ) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://digg.com/users/&#39;.$bb_digg.&#39;&#34; title=&#34;User Digg account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_digg.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }
	if ( $bb_socialize[&#39;technorati&#39;] == true ) { if ( !empty( $bb_technorati) ) { echo &#39;&#60;span&#62;&#60;a href=&#34;http://technorati.com/people/technorati/&#39;.$bb_technorati.&#39;&#34; title=&#34;User Technorati account&#34; rel=&#34;&#39;.$bb_socialize[&#39;links_rel&#39;].&#39;&#34;&#62;&#60;img src=&#34;&#39;.$bb_socialize[&#39;images_url&#39;].&#39;/bb_technorati.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62;&#60;/a&#62;&#60;/span&#62;&#39;; } }

	echo &#39;&#60;/div&#62;&#39;;
}

function update_user_socialize() {
	global $user_id, $bb_socialize;

	$bb_plurk = $_POST[&#39;bb_plurk&#39;];
	$bb_twitter = $_POST[&#39;bb_twitter&#39;];
	$bb_pownce = $_POST[&#39;bb_pownce&#39;];
	$bb_facebook = $_POST[&#39;bb_facebook&#39;];
	$bb_myspace = $_POST[&#39;bb_myspace&#39;];
	$bb_flickr = $_POST[&#39;bb_flickr&#39;];
	$bb_delicious = $_POST[&#39;bb_delicious&#39;];
	$bb_digg = $_POST[&#39;bb_digg&#39;];
	$bb_technorati = $_POST[&#39;bb_technorati&#39;];

	if ( $bb_plurk )
	{
		$bb_plurk = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_plurk) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_plurk&#34;,$bb_plurk);
	}
	else {bb_delete_usermeta($user_id, &#34;social_plurk&#34;);} 

	if ( $bb_twitter )
	{
		$bb_twitter = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_twitter) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_twitter&#34;,$bb_twitter);
	}
	else {bb_delete_usermeta($user_id, &#34;social_twitter&#34;);}

	if ( $bb_pownce )
	{
		$bb_pownce = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_pownce) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_pownce&#34;,$bb_pownce);
	}
	else {bb_delete_usermeta($user_id, &#34;social_pownce&#34;);}

	if ( $bb_facebook )
	{
		$bb_facebook = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_facebook) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_facebook&#34;,$bb_facebook);
	}
	else {bb_delete_usermeta($user_id, &#34;social_facebook&#34;);} 

	if ( $bb_myspace )
	{
		$bb_myspace = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_myspace) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_myspace&#34;,$bb_myspace);
	}
	else {bb_delete_usermeta($user_id, &#34;social_myspace&#34;);} 

	if ( $bb_flickr )
	{
		$bb_flickr = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_flickr) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_flickr&#34;,$bb_flickr);
	}
	else {bb_delete_usermeta($user_id, &#34;social_flickr&#34;);}

	if ( $bb_delicious )
	{
		$bb_delicious = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_delicious) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_delicious&#34;,$bb_delicious);
	}
	else {bb_delete_usermeta($user_id, &#34;social_delicious&#34;);}

	if ( $bb_digg )
	{
		$bb_digg = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_digg) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_digg&#34;,$bb_digg);
	}
	else {bb_delete_usermeta($user_id, &#34;social_digg&#34;);}	

	if ( $bb_technorati )
	{
		$bb_technorati = bb_filter_kses( stripslashes( balanceTags( bb_code_trick( bb_encode_bad($bb_technorati) ), true) ) );
		bb_update_usermeta($user_id, &#34;social_technorati&#34;,$bb_technorati);
	}
	else {bb_delete_usermeta($user_id, &#34;social_technorati&#34;);}
}
add_action(&#39;profile_edited&#39;, &#39;update_user_socialize&#39;);

function bb_socialize_admin_page() {
	global $bb_socialize;
	?&#62;
	&#60;h2&#62;bbPress Social Profiles Management&#60;/h2&#62;

	&#60;form method=&#34;post&#34; name=&#34;bb_socialize_form&#34; id=&#34;bb_socialize_form&#34;&#62;
	&#60;fieldset&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;bb_socialize&#34; value=&#34;1&#34;&#62;

		&#60;table class=&#34;widefat&#34;&#62;
			&#60;thead&#62;
				&#60;tr&#62;&#60;th width=&#34;170&#34;&#62;Option&#60;/th&#62;&#60;th&#62;Setting&#60;/th&#62;&#60;/tr&#62;
			&#60;/thead&#62;
			&#60;tbody&#62;
				&#60;tr&#62;
					&#60;td&#62;&#60;label for=&#34;images_url&#34;&#62;&#60;b&#62;URL to images&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input type=&#34;text&#34; name=&#34;images_url&#34; class=&#34;text long&#34; value=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;&#34;&#62; Please provide full url, but without final slash.
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;label for=&#34;links_rel&#34;&#62;&#60;b&#62;Links REL&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input type=&#34;text&#34; name=&#34;links_rel&#34; class=&#34;text long&#34; value=&#34;&#60;?php echo $bb_socialize[&#39;links_rel&#39;]; ?&#62;&#34;&#62; e.g. follow
					&#60;/td&#62;
				&#60;/tr&#62;
			&#60;/tbody&#62;
		&#60;/table&#62;

		&#60;h3&#62;Set social sites&#60;/h3&#62;

		&#60;p&#62;Use the settings below to decide, which social media websites will be used on your forum. Set &#34;yes&#34; if you want to allow users to set their account for this specific website, or set &#34;no&#34; to hide the specific website. You can change these settings anytime you want.&#60;/p&#62;

		&#60;table class=&#34;widefat&#34;&#62;
			&#60;thead&#62;
				&#60;tr&#62;&#60;th width=&#34;170&#34;&#62;Social Media Site&#60;/th&#62;&#60;th&#62;Display&#60;/th&#62;&#60;/tr&#62;
			&#60;/thead&#62;
			&#60;tbody&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_plurk.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;plurk&#34;&#62;&#60;b&#62;Plurk&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;plurk&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;plurk&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;plurk&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;plurk&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_twitter.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;twitter&#34;&#62;&#60;b&#62;Twitter&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;twitter&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;twitter&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;twitter&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;twitter&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_pownce.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;pownce&#34;&#62;&#60;b&#62;Pownce&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;pownce&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;pownce&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;pownce&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;pownce&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_facebook.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;facebook&#34;&#62;&#60;b&#62;Facebook&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;facebook&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;facebook&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;facebook&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;facebook&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_myspace.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;myspace&#34;&#62;&#60;b&#62;MySpace&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;myspace&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;myspace&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;myspace&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;myspace&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_flickr.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;flickr&#34;&#62;&#60;b&#62;Flickr&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;flickr&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;flickr&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;flickr&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;flickr&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_delicious.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;delicious&#34;&#62;&#60;b&#62;Delicious&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;delicious&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;delicious&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;delicious&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;delicious&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

				&#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_digg.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;digg&#34;&#62;&#60;b&#62;Digg&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;digg&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;digg&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;digg&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;digg&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

	        &#60;tr&#62;
					&#60;td&#62;&#60;img src=&#34;&#60;?php echo $bb_socialize[&#39;images_url&#39;]; ?&#62;/bb_technorati.png&#34; width=&#34;16&#34; height=&#34;16&#34; border=&#34;0&#34; /&#62; &#60;label for=&#34;technorati&#34;&#62;&#60;b&#62;Technorati&#60;/b&#62;&#60;/label&#62;&#60;/td&#62;

					&#60;td&#62;
						&#60;input name=&#34;technorati&#34; value=&#34;1&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;technorati&#39;] == true ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62; Yes &#38;nbsp; &#38;nbsp;
						&#60;input name=&#34;technorati&#34; value=&#34;0&#34; type=&#34;radio&#34; &#60;?php if ( $bb_socialize[&#39;technorati&#39;] == false ) { echo &#39;checked=&#34;checked&#34;&#39;; } ?&#62;&#62;No
					&#60;/td&#62;
				&#60;/tr&#62;

			&#60;/tbody&#62;
		&#60;/table&#62;
		&#60;p class=&#34;submit&#34;&#62;&#60;input type=&#34;submit&#34; name=&#34;bb_socialize_submit&#34; value=&#34;Save bbSocialize settings&#34;&#62; &#60;input type=&#34;submit&#34; name=&#34;bb_socialize_reset&#34; value=&#34;Reset settings&#34;&#62;&#60;/p&#62;
	&#60;/fieldset&#62;
	&#60;/form&#62;

	&#60;hr /&#62;

	&#60;p&#62;If you like this plugin, please donate few bucks so I could keep developing it. Or at least &#60;a href=&#34;http://twitter.com/t_thion/&#34;&#62;follow me on Twitter&#60;/a&#62; :).

	&#60;form action=&#34;https://www.paypal.com/cgi-bin/webscr&#34; method=&#34;post&#34;&#62;

	&#60;input type=&#34;hidden&#34; name=&#34;cmd&#34; value=&#34;_donations&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;business&#34; value=&#34;wojciech.usarzewicz@gmail.com&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;item_name&#34; value=&#34;bbPages Donation&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;item_number&#34; value=&#34;bbPages Donation&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;no_shipping&#34; value=&#34;0&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;no_note&#34; value=&#34;1&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;currency_code&#34; value=&#34;USD&#34; /&#62;

	Type donation amount: $ &#60;input type=&#34;text&#34; name=&#34;amount&#34; value=&#34;1&#34; /&#62;

	&#60;input type=&#34;hidden&#34; name=&#34;tax&#34; value=&#34;0&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;lc&#34; value=&#34;US&#34;&#62;
	&#60;input type=&#34;hidden&#34; name=&#34;bn&#34; value=&#34;PP-DonationsBF&#34;&#62;

	&#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Donate with PayPal!&#34; alt=&#34;PayPal - The safer, easier way to pay online!&#34;&#62;
	&#60;img alt=&#34;&#34; border=&#34;0&#34; src=&#34;https://www.paypal.com/pl_PL/i/scr/pixel.gif&#34; width=&#34;1&#34; height=&#34;1&#34;&#62;
	&#60;/form&#62;
	&#60;/p&#62;

	&#60;?php
}

function bb_socialize_process_post() {
	if ( isset( $_POST[&#39;bb_socialize_submit&#39;] ) &#38;&#38; isset( $_POST[&#39;bb_socialize&#39;] ) )
	{
		global $bb_socialize;

		foreach( array_keys($bb_socialize) as $key) {
			if ( isset( $_POST[$key] ) ) { $bb_socialize[$key] = $_POST[$key]; }
		}

		bb_update_option(&#39;bb_socialize&#39;,$bb_socialize);
	} elseif ( isset( $_POST[&#39;bb_socialize_reset&#39;] ) ) {
		global $bb_socialize;

		foreach( array_keys($bb_socialize) as $key) {
			if ( isset( $_POST[$key] ) ) { $bb_socialize[$key] = $_POST[$key]; }
		}

		bb_delete_option(&#39;bb_socialize&#39;);
	}
}
add_action( &#39;bb_admin-header.php&#39;,&#39;bb_socialize_process_post&#39;);

function bb_socialize_add_admin_page() {
	bb_admin_add_submenu(__(&#39;Social Profiles&#39;), &#39;administrate&#39;, &#39;bb_socialize_admin_page&#39; );
}
add_action( &#39;bb_admin_menu_generator&#39;, &#39;bb_socialize_add_admin_page&#39; );

?&#62;</code></pre>
<p>-------End Code ------</p>
<p>Works great on my site.  </p>
<p>Thanks again Thion.
</p>]]></description>
					</item>
		<item>
			<title>Thion on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1913</link>
			<pubDate>Mon, 08 Sep 2008 15:25:06 +0000</pubDate>
			<dc:creator>Thion</dc:creator>
			<guid isPermaLink="false">1913@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>I think I will have to update readme a little - you have to put the following code into your post.php file:</p>
<p><code>get_socialize_post( get_post_author_id() );</code></p>
<p>Otherwise it won't work.
</p>]]></description>
					</item>
		<item>
			<title>meitershaker on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1910</link>
			<pubDate>Mon, 08 Sep 2008 10:22:07 +0000</pubDate>
			<dc:creator>meitershaker</dc:creator>
			<guid isPermaLink="false">1910@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>oh yes, i have corrected and put get_socialize_post in posts :p</p>
<p>so, i have an error in posts:</p>
<p><code><br />
Missing argument 1 for get_socialize_post(), called in /home/toto/forum/bb-templates/strapontins2/post.php on line 9 and defined in /home/toto/forum/bb-plugins/bbsocialize/bb-socialize.php on line 245<br />
</code></p>
<p>line 245 is:<br />
<code><br />
function get_socialize_post( $user_id ) {<br />
</code></p>
<p>++
</p>]]></description>
					</item>
		<item>
			<title>Thion on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1909</link>
			<pubDate>Mon, 08 Sep 2008 06:27:02 +0000</pubDate>
			<dc:creator>Thion</dc:creator>
			<guid isPermaLink="false">1909@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>Are you sure you are using correct function? As the code you showed is displayed in profile page only, in posts should be <code>&#60;div class=&#34;post_socialize_wrap&#34;&#62;</code> - see readme to make sure you're using the correct function, functions for profile page and posts are two different things.
</p>]]></description>
					</item>
		<item>
			<title>meitershaker on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1906</link>
			<pubDate>Sun, 07 Sep 2008 16:28:57 +0000</pubDate>
			<dc:creator>meitershaker</dc:creator>
			<guid isPermaLink="false">1906@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>i do that but i have only a<br />
<code>&#60;div class="socialize_wrap"&#62;&#60;/div&#62;</code><br />
displayed in source code :/
</p>]]></description>
					</item>
		<item>
			<title>Thion on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1905</link>
			<pubDate>Sun, 07 Sep 2008 16:14:38 +0000</pubDate>
			<dc:creator>Thion</dc:creator>
			<guid isPermaLink="false">1905@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>Make sure you have set up images url in management panel, but without final slash. Also, make sure you have put proper function within post.php file in your template (see readme for more details).
</p>]]></description>
					</item>
		<item>
			<title>meitershaker on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1903</link>
			<pubDate>Sun, 07 Sep 2008 13:06:41 +0000</pubDate>
			<dc:creator>meitershaker</dc:creator>
			<guid isPermaLink="false">1903@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>hi,</p>
<p>there are no profiles buttons in posts with the 0.0.3   :(</p>
<p>++
</p>]]></description>
					</item>
		<item>
			<title>Thion on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1799</link>
			<pubDate>Tue, 26 Aug 2008 05:52:36 +0000</pubDate>
			<dc:creator>Thion</dc:creator>
			<guid isPermaLink="false">1799@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>I'm sure this is 1.0 Alpha, right? This might be an issue of Backpress, but I will have to look into code today. But if I may ask - why do you need this:</p>
<p><code>add_action(&#39;get_profile_info_keys&#39;,&#39;get_socialize&#39;);</code></p>
<p>If you're trying to display profiles buttons in posts, then know that 0.0.3 have already this function so just be patient and I will upload it soon ;)
</p>]]></description>
					</item>
		<item>
			<title>csseur3 on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1796</link>
			<pubDate>Mon, 25 Aug 2008 19:08:09 +0000</pubDate>
			<dc:creator>csseur3</dc:creator>
			<guid isPermaLink="false">1796@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>hi Thion,</p>
<p>i try to add:<br />
<code>add_action('get_profile_info_keys','get_socialize');</code><br />
at the end of the plugin.</p>
<p>So, in the profile page, i have this error:<br />
<code>Catchable fatal error: Object of class stdClass could not be converted to string in forum/bb-includes/backpress/functions.core.php on line 156</code></p>
<p>why?</p>
<p>bye.
</p>]]></description>
					</item>
		<item>
			<title>Thion on "bbSocialize"</title>
			<link>http://bbpress.org/plugins/topic/bbsocialize/#post-1753</link>
			<pubDate>Wed, 20 Aug 2008 05:38:00 +0000</pubDate>
			<dc:creator>Thion</dc:creator>
			<guid isPermaLink="false">1753@http://bbpress.org/plugins/</guid>
			<description><![CDATA[<p>It would be possible, but I have to code few additional lines of code (read: added to my TO DO list). And I think that current architecture of the plugin will turn your bbPress into worse server-killer than phpBB2 by Przemo lol. So I guess if I'm going to do this, then not sooner than in v1.0 because I will have to strongly optimize the code (and I don't have budget for that yet).</p>
<p>As for jabber - maybe in v2.0 :P
</p>]]></description>
					</item>

	</channel>
</rss>

