Plugin Directory

Changeset 531937


Ignore:
Timestamp:
04/16/2012 06:15:58 PM (14 years ago)
Author:
bkmacdaddy
Message:

updating to version 2.0

Location:
pinterest-rss-widget/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pinterest-rss-widget/trunk/pinterest-rss-widget.php

    r531397 r531937  
    55Description: Display up to 25 of your latest Pinterest Pins in your sidebar. You are welcome to express your gratitude for this plugin by donating via <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXTEL7YLUSFFC" target="_blank"><strong>PayPal</strong></a>
    66Author: bkmacdaddy designs
    7 Version: 1.5
     7Version: 2.0
    88Author URI: http://bkmacdaddy.com/
    99
     
    3131
    3232function add_pinterest_rss_css() {
     33
    3334    $pinterest_rss_myStyleUrl = plugins_url('style.css', __FILE__); // Respects SSL, Style.css is relative to the current file
    34     $pinterest_rss_myStyleFile = WP_PLUGIN_DIR . '/pinterest-rss-widget/style.css';
     35    $pinterest_rss_myStyleFile = WP_PLUGIN_DIR . '/pinterest-rss-widget/style.css';
     36    $pinterest_rss_nailThumb = plugins_url('jquery.nailthumb.1.0.min.js', __FILE__);
     37
    3538    if ( file_exists($pinterest_rss_myStyleFile) ) {
    3639        wp_register_style('pinterestRSScss', $pinterest_rss_myStyleUrl);
    37         wp_enqueue_style( 'pinterestRSScss');
     40        wp_enqueue_style( 'pinterestRSScss');       
     41        wp_deregister_script( 'jquery' );
     42        wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
     43        wp_enqueue_script( 'jquery' );     
     44        wp_register_script( 'pinterestRSSjs', $pinterest_rss_nailThumb);       
     45        wp_enqueue_script( 'pinterestRSSjs' );
    3846    }
    3947}
     
    6775                    $content .= '<a href="'.$item->get_permalink().'"';
    6876                    if ($target == 'newwindow') { $content .= 'target="_BLANK" '; };
    69                     $content .= 'title="'.$item->get_title().' - Pinned on '.$item->get_date('M d, Y').'">';
    70                    
    71                                     $pinterest_timthumbUrl = plugins_url('timthumb.php', __FILE__);
     77                    $content .= 'title="'.$item->get_title().' - Pinned on '.$item->get_date('M d, Y').'">';                   
     78                                   
    7279                                    if ($thumb = $item->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail') ) {
    7380                                        $thumb = $thumb[0]['attribs']['']['url'];
    74                                         $content .= '<img src="'.$pinterest_timthumbUrl.'?src='.$thumb.'&a=t&w='.$thumbwidth.'&h='.$thumbheight.'"';
     81                                        $content .= '<img src="'.$thumb.'"';
    7582                                        $content .= ' alt="'.$item->get_title().'"/>';
    7683                                     } else if ( $useenclosures == 'yes' && $enclosure = $item->get_enclosure() ) {
    7784                                        $enclosure = $item->get_enclosures();
    78                                         $content .= '<img src="'.$pinterest_timthumbUrl.'?src='.$enclosure[0]->get_link().'&a=t&w='.$thumbwidth.'&h='.$thumbheight.'"';
     85                                        $content .= '<img src="'.$enclosure[0]->get_link().'"';
    7986                                        $content .= ' alt="'.$item->get_title().'"/>';
    8087                                    }  else {
     
    8390                                       
    8491                                        if ($matches) {
    85                                           $content .= '<img src="'.$pinterest_timthumbUrl.'?src='.$src.'&a=t&w='.$thumbwidth.'&h='.$thumbheight.'"';
     92                                          $content .= '<img src="'.$src.'"';
    8693                                        $content .= ' alt="'.$item->get_title().'"/>';
    8794                                        } else {
     
    99106                  endforeach;
    100107                  $content .= '<div class="pinsClear"></div>';
    101                 $content .= '</ul>';
     108                $content .= '</ul>';
     109                $content .= '<script type="text/javascript">';
     110                $content .= 'jQuery(document).ready(function() {';
     111                $content .= "jQuery('.pins-feed-item img').nailthumb({width:".$thumbwidth.",height:".$thumbheight."})";
     112                $content .= '}); </script>';
    102113                    $pinterest_followButton = plugins_url('follow-on-pinterest-button.png', __FILE__);
    103114                    if ($showfollow == 'large') {
  • pinterest-rss-widget/trunk/readme.txt

    r531397 r531937  
    1919Version 1.4 adds the capability of showing pins from a specific board in the widget or shortcode, rather than just all of the latest pins from a specific user. (See FAQs for instructions).
    2020
    21 Note: This plugin is heavily based on the Image Feed Widget plugin created by Yorik van Havre (http://wordpress.org/extend/plugins/image-feed-widget/). It also utilizes the timthumb PHP script for image resizing (http://code.google.com/p/timthumb/)
     21Note: This plugin is heavily based on the Image Feed Widget plugin created by Yorik van Havre (http://wordpress.org/extend/plugins/image-feed-widget/). As of version 2.0 it also utilizes the jQuery NailThumb script for image resizing (http://www.garralab.com/nailthumb.php) and no longer utilizes the timthumb.php script.
    2222
    2323== Installation ==
     
    6262`<?php get_pins_feed_list('bkmacdaddy', 'design-inspiration', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'large'); ?>`
    6363
    64 = The images are not showing. What went wrong? =
    65 
    66 There are so many variables that are related to hosting servers and such that it's impossible to provide all of the possible answers. However, images not showing is most likely a problem with the timthumb image resizing script. Here are some possible solutions:
    67 
    68 * TimThumb requires the GD library, which is available on any host sever with PHP 4.3+ installed. Make sure your host has this installed (most do).
    69 * Once installed and in-use, TimThumb will automatically create a /prw_tmp/ subfolder in your/ wp-content/uploads/ directory with proper write-permissions. If your host server doesn't allow this by default, be sure to manually create the /prw_tmp/ subfolder in your/ wp-content/uploads/ directory and set the /prw_tmp/ folder permissions to 755. If this still doesn't work, try setting the /cache/ folder permissions to 777.
    70 * Known issue with timthumb.php on **Hostgator**: If your website is hosted on Hostgator, you may need to contact HostGator to request "mod_security whitelisting". More info here: http://support.hostgator.com/articles/specialized-help/technical/timthumb-basics
    71 
    7264== Screenshots ==
    7365
     
    7769
    7870== Changelog ==
     71
     72= 2.0 =
     73* Removed timthumb.php and replaced jQuery NailThumb for image resizing
    7974
    8075= 1.5 =
  • pinterest-rss-widget/trunk/style.css

    r498203 r531937  
    3030
    3131.pinsClear { clear:both; }
     32
     33/*NailThumb Styles*/
     34.nailthumb-container{width:auto;height:auto;margin:0 0 11px;padding:0;overflow:hidden;text-align:left}.nailthumb-container img.nailthumb-image{margin:0;padding:0;max-width:none;text-align:left;float:left}.nailthumb-container span.nailthumb-title{background:none repeat scroll 0 0 rgba(0,0,0,0.5);bottom:0;color:White;display:block;font-size:9px;height:20px;left:0;margin-top:2px;line-height:20px;position:relative;text-align:center;width:100%;overflow:hidden;float:left}.nailthumb-container span.nailthumb-title .nailthumb-title-scroller{padding-left:2px}.nailthumb-container img{max-width:none;text-align:left}
Note: See TracChangeset for help on using the changeset viewer.