Changeset 345964
- Timestamp:
- 02/15/2011 04:58:22 PM (15 years ago)
- Location:
- just-another-author-widget/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (1 diff)
-
show_author.php (modified) (5 diffs)
-
template_controlpanel.html (modified) (1 diff)
-
template_widget.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
just-another-author-widget/trunk/readme.txt
r279029 r345964 53 53 == Changelog == 54 54 55 = 0.2.5 = 56 * Added the posibility to disable widget for specified users. 57 * Fixed some more bugs! 58 55 59 = 0.2.1 = 56 60 * Fixed some bugs! -
just-another-author-widget/trunk/show_author.php
r279029 r345964 4 4 Plugin URI: http://blog.tommyolsen.net/category/programming/wp-prog/ 5 5 Description: Shows information about the Post author in the Widget Area 6 Version: 0.2. 16 Version: 0.2.5 7 7 Author: Tommy Stigen Olsen 8 8 Author URI: http://blog.tommyolsen.net … … 18 18 global $authordata; 19 19 $options = get_option('showauthor_widget'); 20 21 $disablees = explode(",", $options['disabled_users']); 22 23 foreach($disablees as $user) 24 { 25 if($user == $authordata->user_login) 26 return; 27 if($user == $authordata->ID) 28 return; 29 } 30 20 31 21 32 // Finding plugin install dir, … … 132 143 $newoptions['text_author'] = strip_tags(stripslashes($_POST['jaaw-text_author'])); 133 144 $newoptions['avatar_size'] = strip_tags(stripslashes($_POST['jaaw-avatar_size'])); 134 145 $newoptions['disabled_users'] = strip_tags(stripslashes($_POST['jaaw-disabled_users'])); 135 146 136 147 // Show Image … … 205 216 $print_args['textauthor'] = $options['text_author']; 206 217 $print_args['avatarsize'] = $options['avatar_size']; 207 218 $print_args['disabledusers'] = $options['disabled_users']; 208 219 // Display IMG 209 220 $print_args['displayimg'] = ""; … … 310 321 'enable_tag_authorfullname' => true, 311 322 'avatar_size' => 96, 312 'microtime' => false 323 'microtime' => false, 324 'disabled_users' => '' 313 325 ) 314 326 ); -
just-another-author-widget/trunk/template_controlpanel.html
r279029 r345964 54 54 [MICROTIMER] 55 55 </p> 56 <p> 57 <b>Disable widget for certain users</b><br /> 58 <input type="text" name="jaaw-disabled_users" id="jaaw-disabled_users" class="jaaw-input" value="[DISABLEDUSERS]" /><br /> 59 <font size="1">Accepts both userid and nicknames, separated by commas. No need to put spaces after the commas!</font> 56 60 <input type='hidden' name='jaaw-submit' value="yes" /> -
just-another-author-widget/trunk/template_widget.html
r279021 r345964 1 <div id=" show_author_widget" class="sidebar-box widget_show_author">2 [TITLE] 1 <div id="tag_cloud-3" class="widget widget_tag_cloud"><h3 class="widgettitle">[TITLE]</h3> 2 <div class="widgetcontent"> 3 3 <h3 class="jaaw-author_name">[AUTHOR]</h3> 4 4 <div class="jaaw-image_holder"> … … 9 9 [WEBPAGELINK]<br /> 10 10 </div> 11 </div>
Note: See TracChangeset
for help on using the changeset viewer.