Changeset 974151
- Timestamp:
- 08/27/2014 06:15:42 PM (12 years ago)
- Location:
- minimalist-instagram-widget
- Files:
-
- 13 added
- 3 edited
-
tags/1.6 (added)
-
tags/1.6/cache (added)
-
tags/1.6/img (added)
-
tags/1.6/img/closelabel.gif (added)
-
tags/1.6/img/loading.gif (added)
-
tags/1.6/img/logo.png (added)
-
tags/1.6/img/nextlabel.gif (added)
-
tags/1.6/img/prevlabel.gif (added)
-
tags/1.6/index.php (added)
-
tags/1.6/options.php (added)
-
tags/1.6/readme.txt (added)
-
tags/1.6/slimbox2.js (added)
-
tags/1.6/wp-insta.css (added)
-
trunk/index.php (modified) (3 diffs)
-
trunk/options.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
minimalist-instagram-widget/trunk/index.php
r969924 r974151 2 2 /* Plugin Name: Minimalist Instagram Widget 3 3 Plugin URI: http://impression11.co.uk/ 4 Version: 1. 54 Version: 1.6 5 5 Description: A minimalist Instagram widget to display your photos and videos. 6 6 Author: Ethan Gibson … … 115 115 $result = fetchData($url); 116 116 $result = json_decode($result); 117 if(isset($result->data)){ 117 118 foreach($result->data as $test11){ 118 119 $username = strtolower($username); 119 120 if ($username == $test11->username){$newid = $test11->id;} 120 121 } 122 }else { 123 echo 'Please check the instagram widget has been set up correctly'; 124 if($options['debug']==1){ 125 echo '<h3>Debug Info</h3>'; 126 print_r($result); 127 echo '<br>';}} 128 if ($newid ==''){echo 'Please check that the username you entered exists.<br><br>';} 121 129 $userid = $newid; 122 130 } … … 150 158 if($socket =@ fsockopen($host, 80, $errno, $errstr, 30)) { 151 159 echo 'Please check your Account Details and ensure your Instagram Account has photos'; 160 if($options['debug']==1){echo'<h3>Debug Info</h3>';print_r($result); if($userid==''){echo 'Please check that the username you entered exists.';}} 152 161 fclose($socket); 153 162 } else { -
minimalist-instagram-widget/trunk/options.php
r917535 r974151 53 53 </tr> 54 54 </table> 55 <h3>Debug Mode</h3> 56 <p>If Debug mode is active it will give a read out of technical infomation along with the friendly error message, use this to figure out exactly what is wrong</p> 57 <table class="form-table"> 58 <tr valign="top"> 59 <th scope="row"><?php _e( 'Enable Debug Mode', 'sampletheme' ); ?></th> 60 <td><input id="debug" name="instagram_plugin_options[debug]" type="checkbox" value="1" <?php checked( '1', $options['debug'] ); ?> /></td> 61 </tr> 62 </table> 55 63 <p class="submit"> 56 64 <input type="submit" class="button-primary" value="<?php _e( 'Save Options', 'sampletheme' ); ?>" /> … … 67 75 $input['caching'] = null; 68 76 $input['caching'] = ( $input['caching'] == 1 ? 1 : 0 ); 77 if ( ! isset( $input['debug'] ) ) 78 $input['debug'] = null; 79 $input['debug'] = ( $input['debug'] == 1 ? 1 : 0 ); 80 69 81 return $input; 70 82 } -
minimalist-instagram-widget/trunk/readme.txt
r970144 r974151 4 4 Requires at least: 3.6 5 5 Tested up to: 3.9.2 6 Stable tag: 1. 56 Stable tag: 1.6 7 7 8 8 A quick and efficient Instagram widget to display recent Instagram Photos & Videos. … … 13 13 14 14 To avoid API limits there is an optional cache feature which can be set to expire after a user defined amount of hours. 15 16 = Features =17 * Custom Widget Title18 * Load User Instagram Photos & Videos19 * The option to not display Videos20 * Smart caching retrieves the newer Photo only meaning less API calls (and less waiting!)21 * Fits in perfectly with (just about) all themes!22 23 Something not working? [Contact Me](http://impression11.co.uk/contact/)24 25 [View our other plugins](http://profiles.wordpress.org/impression11/)26 15 27 16 == Installation == … … 37 26 == Changelog == 38 27 39 = 1.5 = 28 = 1.6 = 29 * Added a quick Debug Mode, when enabled errors in retrieving images will display raw feed data to help in diagnosing issues. 30 31 = 1.4 = 40 32 * Fixed issue where the wrong user’s images are shown (I think the API username search on the Instagram side has stopped putting exact matches at the top). 41 33
Note: See TracChangeset
for help on using the changeset viewer.