Plugin Directory

Changeset 323892


Ignore:
Timestamp:
12/17/2010 02:29:03 PM (15 years ago)
Author:
jimaek
Message:

new version 0.6

Location:
simple-author-highlighter/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • simple-author-highlighter/trunk/readme.txt

    r290975 r323892  
    44Tags: comments, highlight, comment, admin, author, post, style, highlighter, global, user,
    55Requires at least: 2.8.0
    6 Tested up to: 3.0.1
    7 Stable tag: 0.5
     6Tested up to: 3.0.3
     7Stable tag: 0.6
    88
    99Simple Author Highlighter is a wordpress plugin that allows you to easy highlight authors comments. More on our website www.dakulov.eu
     
    1313Simple Author Highlighter is a simple WordPress plug-in that can customize the color of the author's comments. The installation process is extremely simple and accessible and after install, Simple Author Highlighter can be found in the "Plugins" menu in WordPress.
    1414
    15 Tested on WP v2.9.2 and v3.0.1
    1615
    1716
     
    3130Yes
    3231
     32= Can i select multiple users in Global Highlighting? =
     33
     34Yes, you can use comma to delimit multiple users. For example:
     35dimitris,nikos,stratos
     36
    3337== Screenshots ==
    3438
     
    3741
    3842== Changelog ==
     43
     44= 0.6 =
     45* New feature: Ability to select multiple users in Global Highlighting
    3946
    4047= 0.5 =
  • simple-author-highlighter/trunk/sah.php

    r290975 r323892  
    44Plugin URI: http://www.dakulov.eu#page5
    55Description: Easy highlight authors comments
    6 Version: 0.5
     6Version: 0.6
    77Author: Akulov Dmitriy
    88Author URI: http://www.dakulov.eu
     
    2525
    2626function sah_addHeaderCode() {
     27        $sah_users = get_option('user');
     28        $sah_userArray = explode(",", $sah_users);
    2729        echo "\n".'<!-- Start Simple Author Highlighter -->'."\n";
    2830        echo '<style type="text/css">' . "\n";
    2931        echo '.bypostauthor {background-color: ' . get_option('color_code') . ' !important; color: ' . get_option('color_code2') . ' ;}' . "\n";
    30         echo '.comment-author-' . get_option('user') . ' {background-color: ' . get_option('user_color_code') . ' !important; color: ' . get_option('user_color_code2') . ' ;}' . "\n";
     32        for($i = 0; $i < count($sah_userArray); $i++){
     33    echo '.comment-author-' . $sah_userArray[$i] . ' {background-color: ' . get_option('user_color_code') . ' !important; color: ' . get_option('user_color_code2') . ' ;}' . "\n";
     34}
    3135        echo '</style>'."\n";
    3236        echo '<!-- Stop Simple Author Highlighter -->'."\n";
     
    4953
    5054function sah_register_mysettings() {
    51     //register our settings
     55    //register settings
    5256    register_setting( 'sah-settings-group', 'color_code' );
    5357    register_setting( 'sah-settings-group', 'color_code2' );
     
    7478        </tr>
    7579    </table>
    76     <h2>Global highlight a user</h2>
     80    <h2>Global highlight users</h2>
    7781     <table class="form-table">
    7882    <tr valign="top">
    79         <th scope="row">Enter the user's login name</th>
    80         <td><input type="text" name="user" value="<?php echo get_option('user'); ?>" /> <i>For example: admin</i><br/></td>
     83        <th scope="row">Enter the users login names</th>
     84        <td><input type="text" name="user" value="<?php echo get_option('user'); ?>" /> <i>For example: admin For multiple users use comma as a delimiter</i><br/></td>
    8185        </tr>
    8286        <tr valign="top">
Note: See TracChangeset for help on using the changeset viewer.