Plugin Directory

Changeset 345964


Ignore:
Timestamp:
02/15/2011 04:58:22 PM (15 years ago)
Author:
Razesdark
Message:

New features and stuff

Location:
just-another-author-widget/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • just-another-author-widget/trunk/readme.txt

    r279029 r345964  
    5353== Changelog ==
    5454
     55= 0.2.5 =
     56* Added the posibility to disable widget for specified users.
     57* Fixed some more bugs!
     58
    5559= 0.2.1 =
    5660* Fixed some bugs!
  • just-another-author-widget/trunk/show_author.php

    r279029 r345964  
    44Plugin URI: http://blog.tommyolsen.net/category/programming/wp-prog/
    55Description: Shows information about the Post author in the Widget Area
    6 Version: 0.2.1
     6Version: 0.2.5
    77Author: Tommy Stigen Olsen
    88Author URI: http://blog.tommyolsen.net
     
    1818        global $authordata;
    1919        $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       
    2031       
    2132        // Finding plugin install dir,
     
    132143        $newoptions['text_author'] = strip_tags(stripslashes($_POST['jaaw-text_author']));
    133144        $newoptions['avatar_size'] = strip_tags(stripslashes($_POST['jaaw-avatar_size']));
    134        
     145        $newoptions['disabled_users'] = strip_tags(stripslashes($_POST['jaaw-disabled_users']));
    135146       
    136147        // Show Image
     
    205216    $print_args['textauthor'] = $options['text_author'];
    206217    $print_args['avatarsize'] = $options['avatar_size'];
    207    
     218    $print_args['disabledusers'] = $options['disabled_users'];
    208219    // Display IMG
    209220    $print_args['displayimg'] = "";
     
    310321            'enable_tag_authorfullname' => true,
    311322            'avatar_size' => 96,
    312             'microtime' => false
     323            'microtime' => false,
     324            'disabled_users' => ''
    313325            )
    314326        );
  • just-another-author-widget/trunk/template_controlpanel.html

    r279029 r345964  
    5454[MICROTIMER]
    5555</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>
    5660<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">
    33    <h3 class="jaaw-author_name">[AUTHOR]</h3>
    44    <div class="jaaw-image_holder">
     
    99    [WEBPAGELINK]<br />
    1010</div>
     11</div>
Note: See TracChangeset for help on using the changeset viewer.