<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<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>WordPress.com Forums &#187; Topic: Pinterest</title>
		<link>http://en.forums.wordpress.com/topic/pinterest-22</link>
		<description>WordPress.com Forums &#187; Topic: Pinterest</description>
		<language>en</language>
		<pubDate>Thu, 23 May 2013 03:42:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/pinterest-22" rel="self" type="application/rss+xml" />

		<item>
			<title>timethief on "Pinterest"</title>
			<link>http://en.forums.wordpress.com/topic/pinterest-22#post-1133228</link>
			<pubDate>Thu, 24 Jan 2013 22:03:05 +0000</pubDate>
			<dc:creator>timethief</dc:creator>
			<guid isPermaLink="false">1133228@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>5. Lastly, you can have an ordinary Pinterest account for "people" or a "business" account.<br />
From: <a href="http://blog.pinterest.com/post/35710687813/new-tools-for-businesses-in-the-pinterest-community" rel="nofollow">http://blog.pinterest.com/post/35710687813/new-tools-for-businesses-in-the-pinterest-community</a><br />
To verify a Pinterest business account see &#62; <a href="http://en.support.wordpress.com/webmaster-tools/#pinterest-site-verification" rel="nofollow">http://en.support.wordpress.com/webmaster-tools/#pinterest-site-verification</a>
</p>
]]></description>
					</item>
		<item>
			<title>timethief on "Pinterest"</title>
			<link>http://en.forums.wordpress.com/topic/pinterest-22#post-1133223</link>
			<pubDate>Thu, 24 Jan 2013 21:58:53 +0000</pubDate>
			<dc:creator>timethief</dc:creator>
			<guid isPermaLink="false">1133223@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Why did you post all that code here? </p>
<p> There is no FTP access to free hosted WordPress.com blogs and we bloggers cannot install any plugins. They are only for WordPress.org installs. There is no upgrade you can purchase that changes that reality.<br />
<a href="http://support.wordpress.com/com-vs-org/" rel="nofollow">http://support.wordpress.com/com-vs-org/</a></p>
<p>You can use any widget that has pure HTML but you cannot use any widgets that contain restricted codes like iframes or JavaScript widgets. In the case of Pinterest, you cannot use the Pin-it Javascript code on a WordPress.com blog. <a href="http://en.support.wordpress.com/code/" rel="nofollow">http://en.support.wordpress.com/code/</a></p>
<p>But you can put the code for the Pinterest follow button in a text widget.<br />
1. Go to this site, choose which one of the red Follow Me images you want, and copy the code for it. <a href="http://pinterest.com/about/goodies/" rel="nofollow">http://pinterest.com/about/goodies/</a></p>
<p>2. Then, go to your widgets &#62; Appearance &#62; Widgets and select a text widget.<a href="http://en.support.wordpress.com/widgets/text-widget/" rel="nofollow">http://en.support.wordpress.com/widgets/text-widget/</a></p>
<p>3. Paste the Pinterest follow button code into the text widget, "save" the widget, "close" the widget and place it where you want it to display in your sidebar.<br />
<a href="http://en.support.wordpress.com/widgets/text-widget/" rel="nofollow">http://en.support.wordpress.com/widgets/text-widget/</a><br />
<a href="http://en.support.wordpress.com/links/text-widget-links/" rel="nofollow">http://en.support.wordpress.com/links/text-widget-links/</a><br />
<a href="http://en.support.wordpress.com/widgets/text-widget/#adding-an-image" rel="nofollow">http://en.support.wordpress.com/widgets/text-widget/#adding-an-image</a></p>
<p>4. Please see here for enabling sharing buttons including Pinterest on your blog. <a href="http://en.support.wordpress.com/sharing/" rel="nofollow">http://en.support.wordpress.com/sharing/</a>
</p>
]]></description>
					</item>
		<item>
			<title>andresandos13 on "Pinterest"</title>
			<link>http://en.forums.wordpress.com/topic/pinterest-22#post-1133219</link>
			<pubDate>Thu, 24 Jan 2013 21:54:11 +0000</pubDate>
			<dc:creator>andresandos13</dc:creator>
			<guid isPermaLink="false">1133219@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>&#60;?php<br />
/*<br />
Plugin Name: Easy Pinterest<br />
Plugin URI: <a href="http://thisismyurl.com/downloads/wordpress-plugins/easy-pinterest/" rel="nofollow">http://thisismyurl.com/downloads/wordpress-plugins/easy-pinterest/</a><br />
Description: An easy to use WordPress function to add Easy Pinterest to any theme as a function or Widget.<br />
Author: Christopher Ross<br />
Tags: easy pinterest, thisismyurl, pin terest, pintrest, social media, photo sharing, block pinterest<br />
Author URI: <a href="http://thisismyurl.com" rel="nofollow">http://thisismyurl.com</a><br />
Version: 1.1.1<br />
*/</p>
<p>/*  Copyright 2012 Christopher Ross  ( email : [email redacted] )</p>
<p>    This program is free software; you can redistribute it and/or modify<br />
    it under the terms of the GNU General Public License as published by<br />
    the Free Software Foundation; either version 2 of the License, or<br />
    ( at your option ) any later version.</p>
<p>    This program is distributed in the hope that it will be useful,<br />
    but WITHOUT ANY WARRANTY; without even the implied warranty of<br />
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br />
    GNU General Public License for more details.</p>
<p>    You should have received a copy of the GNU General Public License<br />
    along with this program; if not, write to the Free Software<br />
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA<br />
*/</p>
<p>class thisismyurl_easy_pinterest_widget extends WP_Widget<br />
{</p>
<p>	function thisismyurl_easy_pinterest_widget() {<br />
		$widget_ops = array( 	'classname' =&#62; 'widget_thisismyurl_easy_pinterest',<br />
								'description' =&#62; __( "A WordPress widget to add your recent Pinterest posts to your WordPress website. Learn more at <a href="http://thisismyurl.com" rel="nofollow">http://thisismyurl.com</a>" ) );<br />
		$control_ops = array( 'width' =&#62; 300, 'height' =&#62; 300 );<br />
		$this-&#62;WP_Widget( 'thisismyurl_easy_pinterest_widget', __( 'Easy Pinterest' ), $widget_ops, $control_ops );<br />
	}</p>
<p>	function update( $new_instance, $old_instance ) {<br />
		$instance = $old_instance;<br />
		$instance['title'] = strip_tags( stripslashes( $new_instance['title'] ) );<br />
		$instance['pinterest_username'] = strip_tags( stripslashes( $new_instance['pinterest_username'] ) );<br />
		$instance['pinterest_quantity'] = strip_tags( stripslashes( $new_instance['pinterest_quantity'] ) );</p>
<p>		return $instance;<br />
	}</p>
<p>	function form( $instance ) {<br />
		$instance = wp_parse_args( ( array ) $instance, array( 'title'=&#62;'Pinterest Activity', 'pinterest_username'=&#62;'thisismyurl', 'pinterest_quantity'=&#62;'12' ) );</p>
<p>		$title = htmlspecialchars( $instance['title'] );<br />
		$pinterest_username = ( $instance['pinterest_username'] );<br />
		$pinterest_quantity = ( $instance['pinterest_quantity'] );</p>
<p>		echo '&#60;p style="text-align:left;"&#62;&#60;label for="' . $this-&#62;get_field_name( 'title' ) . '"&#62;' . __( 'Title:' ) . '&#60;/label&#62;<br />
				&#60;input style="width: 300px;" id="' . $this-&#62;get_field_id( 'title' ) . '" name="' . $this-&#62;get_field_name( 'title' ) . '" type="text" value="' . $title . '" /&#62;&#60;/p&#62;';</p>
<p>		echo '&#60;p style="text-align:left;"&#62;&#60;label for="' . $this-&#62;get_field_name( 'pinterest_username' ) . '"&#62;' . __( 'Pinterest Username:' ) . '&#60;/label&#62;<br />
				&#60;input style="width: 300px;" id="' . $this-&#62;get_field_id( 'pinterest_username' ) . '" name="' . $this-&#62;get_field_name( 'pinterest_username' ) . '" type="text" value="' . $pinterest_username . '" /&#62;&#60;/p&#62;';</p>
<p>		echo '&#60;p style="text-align:left;"&#62;&#60;label for="' . $this-&#62;get_field_name( 'pinterest_quantity' ) . '"&#62;' . __( '# to Show:' ) . '&#60;/label&#62;<br />
				&#60;input style="width: 300px;" id="' . $this-&#62;get_field_id( 'pinterest_quantity' ) . '" name="' . $this-&#62;get_field_name( 'pinterest_quantity' ) . '" type="text" value="' . $pinterest_quantity . '" /&#62;&#60;/p&#62;';</p>
<p>	}</p>
<p>	function widget( $args, $instance ) {</p>
<p>		extract( $args );<br />
		$instance = wp_parse_args( ( array ) $instance, array( 'title'=&#62;'Pinterest Activity', 'pinterest_username'=&#62;'thisismyurl', 'pinterest_quantity'=&#62;'12') );</p>
<p>		$pinterest_feed = fetch_feed( "http://pinterest.com/" . $instance['pinterest_username'] . "/feed.rss" );</p>
<p>		if (!is_wp_error( $pinterest_feed ) ) :<br />
			$maxitems = $pinterest_feed-&#62;get_item_quantity( $instance['pinterest_quantity'] );<br />
			$pinterest_feed = $pinterest_feed-&#62;get_items(0, $maxitems);<br />
		endif;</p>
<p>		if ( !empty( $pinterest_feed ) ) {</p>
<p>			echo $before_widget;</p>
<p>			echo '&#60;h4 class="widgettitle pinterest-title"&#62;&#60;a href="http://pinterest.com/' . $instance['pinterest_username'] . '"<br />
				target="_blank"&#62;' . $instance['title'].'&#60;/h4&#62;';</p>
<p>			echo '&#60;div class="content"&#62;&#60;div class="textwidget"&#62;';<br />
			echo '&#60;ul class="easy-pinterest"&#62;';<br />
			foreach ( $pinterest_feed as $item ) {<br />
				$pinterest_content = $item-&#62;get_content();<br />
				$pinterest_content = str_replace( '&#62;','&#62;',$pinterest_content );<br />
				$pinterest_content = str_replace( '&#60;','&#60;',$pinterest_content );<br />
				$pinterest_content = str_replace( '&#60;a','&#60;a target="_blank"',$pinterest_content );</p>
<p>				$pinterest_content = strip_tags($pinterest_content, "<a>,&#60;img&#62;");<br />
				$pinterest_content_array = explode("</a>", $pinterest_content);<br />
				$pinterest_content = $pinterest_content_array[0];</p>
<p>				?&#62;
<ol><a>get_permalink() ); ?&#62;'<br />
					title='&#60;?php echo 'Posted '.$item-&#62;get_date('j F Y &#124; g:i a'); ?&#62;'&#62;&#60;?php echo $pinterest_content; ?&#62;</a></ol>
&#60;?php<br />
			}</p>
<p>			echo "";</p>
<p>			$options = get_option( 'thisismyurl_easy_pinterest' );<br />
			$options_thankyou = $options-&#62;easy_pinterest_thankyou;</p>
<p>			if ( $options_thankyou == "1")<br />
				echo '&#60;p class="easy-pinterest-credit"&#62;&#60;a 	href="http://thisismyurl.com/downloads/wordpress-plugins/"<br />
															title="Easy Pinterest Plugins for WordPress"<br />
															target="_blank"&#62;Easy Pinterest by thisismyurl.com&#60;/p&#62;';</p>
<p>			echo $after_widget;<br />
		}<br />
	}</p>
<p>}</p>
<p>function thisismyurl_easy_pinterest_css() {<br />
	echo "&#60;!-- Easy Pinterest by Christopher Ross (<a href="http://thisismyurl.com" rel="nofollow">http://thisismyurl.com</a>) --&#62;&#60;style&#62;</p>
<p>		h4.pinterest-title {background: url(" . plugins_url( 'images/pinterest-red.png' , __FILE__ ) . ") no-repeat right; padding-top:20px;}<br />
		ul.easy-pinterest ol {float:left; width: 90px; height: 90px; overflow: hidden; margin-right: 10px; margin: 0px 10px 10px 0px; background: #efefef;display:table-cell; vertical-align:middle;}<br />
		ul.easy-pinterest ol img {max-width: 100%; height: auto;}<br />
		ul.easy-pinterest ol p {display: none;}</p>
<p>		p.easy-pinterest-credit {font-size: .5em; opacity: .5;}</p>
<p>	&#60;/style&#62;";<br />
}<br />
add_action( 'wp_head', 'thisismyurl_easy_pinterest_css' );</p>
<p>function thisismyurl_easy_pinterest_widget_Init() {<br />
	register_widget( 'thisismyurl_easy_pinterest_widget' );<br />
}<br />
add_action( 'widgets_init', 'thisismyurl_easy_pinterest_widget_Init' );</p>
<p>// add menu to WP admin</p>
<p>function thisismyurl_easy_pinterest_menu() {add_options_page( __( 'Easy Pinterest' ), __( 'Easy Pinterest' ), 10,'thisismyurl_easy_pinterest.php', 'thisismyurl_easy_pinterest_options' );}<br />
add_action( 'admin_menu', 'thisismyurl_easy_pinterest_menu' );</p>
<p>function thisismyurl_easy_pinterest_options( $options='' ) {</p>
<p>	$options = get_option( 'thisismyurl_easy_pinterest' );</p>
<p>	// save page options<br />
	if ( $_GET['page'] == 'thisismyurl_easy_pinterest.php' &#38;&#38; !empty( $_POST['easy_pinterest_update'] ) ) {</p>
<p>		$options-&#62;easy_pinterest_block = 					$_POST['easy_pinterest_block'];<br />
		$options-&#62;easy_pinterest_thankyou = 				$_POST['easy_pinterest_thankyou'];</p>
<p>		update_option( 'thisismyurl_easy_pinterest',$options );<br />
		$options = get_option( 'thisismyurl_easy_pinterest' );<br />
	}</p>
<p>?&#62;</p>
<p>   &#60;div class="wrap"&#62;	</p>
<p>    &#60;div class='plugin_header' style='background:#EEF0F7; margin-top: 20px; padding: 20px; -moz-border-radius: 5px; border-radius: 5px;'&#62;<br />
    	&#60;div  style='float:left; width: 55%;'&#62;<br />
            &#60;h2&#62;&#60;?php _e( 'Easy Pinterest by Christopher Ross','easy_pinterest' ) ?&#62;&#60;/h2&#62;<br />
            &#60;p&#62;An easy way to add recent Pinterest posts to your WordPress website as a widget.&#60;/p&#62;<br />
            &#60;form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post"&#62;<br />
            &#60;input type="hidden" name="cmd" value="_xclick"&#62;<br />
            &#60;input type="hidden" name="business" value="[email redacted]"&#62;<br />
            &#60;input type="hidden" name="item_name" value="Donation for &#60;?php echo $cr_wplink;?&#62;"&#62;<br />
            &#60;input type="hidden" name="currency_code" value="USD"&#62;<br />
            &#60;input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal"&#62;<br />
            &#60;/form&#62;<br />
        &#60;/div&#62;<br />
        <a href='http://thisismyurl.com/downloads/wordpress-plugins/'>&#60;img style='width: 100%; height: auto;' src='&#60;?php echo WP_PLUGIN_URL .'/'.str_replace( basename( __FILE__ ),"",plugin_basename( __FILE__ ) );?&#62;/images/plugin-logo.png' /&#62;</a><br />
    	&#60;div style='clear:both'&#62;&#60;/div&#62;<br />
    &#60;/div&#62;</p>
<p>	&#60;div class="postbox-container" style="width:60%; margin-right: 5%;"&#62;</p>
<p>    &#60;form action='options-general.php?page=thisismyurl_easy_pinterest.php' method='POST'&#62;<br />
    	&#60;input type="hidden" name="easy_pinterest_update" value="1"&#62;<br />
		&#60;div class="metabox-holder"&#62;<br />
		&#60;div id="normal-sortables" class="meta-box-sortables"&#62;</p>
<p>			&#60;div id="easy_pinterestsettings" class="postbox"&#62;<br />
			&#60;div class="handlediv" title="Click to toggle"&#62;<br />&#60;/div&#62;<br />
			&#60;h3 class="hndle"&#62;&#60;span&#62;&#60;?php _e( 'Easy Pinterest Settings','easy_pinterest' ) ?&#62;&#60;/span&#62;&#60;/h3&#62;<br />
			&#60;div class="inside"&#62;<br />
				&#60;p&#62;&#60;label&#62;&#60;input name="easy_pinterest_block" type="checkbox" value="1" &#60;?php if ( $options-&#62;easy_pinterest_block == '1' ) { echo "checked";}?&#62; /&#62;&#160;&#60;?php _e( 'Block Pinterest from this domain','easy_pinterest' ) ?&#62;&#60;/label&#62;&#60;/p&#62;</p>
<p>                &#60;p&#62;&#60;label&#62;&#60;input name="easy_pinterest_thankyou" type="checkbox" value="1" &#60;?php if ( $options-&#62;easy_pinterest_thankyou == '1' ) { echo "checked";}?&#62; /&#62;&#160;&#60;?php _e( 'Include a link to thisismyurl.com discreetly under the widget.','easy_pinterest' ) ?&#62;&#60;/label&#62;&#60;/p&#62;<br />
			&#60;/div&#62;<br />
			&#60;/div&#62;</p>
<p>		&#60;input style='margin-bottom: 20px;' type="submit" class="button-primary" value="&#60;?php _e( 'Save Changes','easy_pinterest' ) ?&#62;" /&#62;<br />
		&#60;/div&#62;<br />
		&#60;/div&#62;</p>
<p>		&#60;/form&#62;<br />
	&#60;/div&#62;</p>
<p>&#60;/div&#62;<br />
&#60;/div&#62;<br />
&#60;?php<br />
}</p>
<p>function thisismyurl_easy_pinterest_block() {</p>
<p>	// look to see if the block option is active and if it is, add a meta tag to the head of the HTML page</p>
<p>	$options = get_option( 'thisismyurl_easy_pinterest' );<br />
	$options_block = $options-&#62;easy_pinterest_block;<br />
	if ( $options_block == "1") echo '&#60;meta name="pinterest" content="nopin" /&#62;';</p>
<p>}<br />
add_action('wp_head', 'thisismyurl_easy_pinterest_block');</p>
<p>?&#62;
</p>
]]></description>
					</item>

	</channel>
</rss>
