Changeset 531937
- Timestamp:
- 04/16/2012 06:15:58 PM (14 years ago)
- Location:
- pinterest-rss-widget/trunk
- Files:
-
- 3 edited
-
pinterest-rss-widget.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
-
style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pinterest-rss-widget/trunk/pinterest-rss-widget.php
r531397 r531937 5 5 Description: 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> 6 6 Author: bkmacdaddy designs 7 Version: 1.57 Version: 2.0 8 8 Author URI: http://bkmacdaddy.com/ 9 9 … … 31 31 32 32 function add_pinterest_rss_css() { 33 33 34 $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 35 38 if ( file_exists($pinterest_rss_myStyleFile) ) { 36 39 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' ); 38 46 } 39 47 } … … 67 75 $content .= '<a href="'.$item->get_permalink().'"'; 68 76 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 72 79 if ($thumb = $item->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail') ) { 73 80 $thumb = $thumb[0]['attribs']['']['url']; 74 $content .= '<img src="'.$ pinterest_timthumbUrl.'?src='.$thumb.'&a=t&w='.$thumbwidth.'&h='.$thumbheight.'"';81 $content .= '<img src="'.$thumb.'"'; 75 82 $content .= ' alt="'.$item->get_title().'"/>'; 76 83 } else if ( $useenclosures == 'yes' && $enclosure = $item->get_enclosure() ) { 77 84 $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().'"'; 79 86 $content .= ' alt="'.$item->get_title().'"/>'; 80 87 } else { … … 83 90 84 91 if ($matches) { 85 $content .= '<img src="'.$ pinterest_timthumbUrl.'?src='.$src.'&a=t&w='.$thumbwidth.'&h='.$thumbheight.'"';92 $content .= '<img src="'.$src.'"'; 86 93 $content .= ' alt="'.$item->get_title().'"/>'; 87 94 } else { … … 99 106 endforeach; 100 107 $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>'; 102 113 $pinterest_followButton = plugins_url('follow-on-pinterest-button.png', __FILE__); 103 114 if ($showfollow == 'large') { -
pinterest-rss-widget/trunk/readme.txt
r531397 r531937 19 19 Version 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). 20 20 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/)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/). 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. 22 22 23 23 == Installation == … … 62 62 `<?php get_pins_feed_list('bkmacdaddy', 'design-inspiration', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'large'); ?>` 63 63 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-basics71 72 64 == Screenshots == 73 65 … … 77 69 78 70 == Changelog == 71 72 = 2.0 = 73 * Removed timthumb.php and replaced jQuery NailThumb for image resizing 79 74 80 75 = 1.5 = -
pinterest-rss-widget/trunk/style.css
r498203 r531937 30 30 31 31 .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.