Changeset 323892
- Timestamp:
- 12/17/2010 02:29:03 PM (15 years ago)
- Location:
- simple-author-highlighter/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (4 diffs)
-
sah.php (modified) (4 diffs)
-
screenshot-1.jpg (modified) (previous)
-
screenshot-2.jpg (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
simple-author-highlighter/trunk/readme.txt
r290975 r323892 4 4 Tags: comments, highlight, comment, admin, author, post, style, highlighter, global, user, 5 5 Requires at least: 2.8.0 6 Tested up to: 3.0. 17 Stable tag: 0. 56 Tested up to: 3.0.3 7 Stable tag: 0.6 8 8 9 9 Simple Author Highlighter is a wordpress plugin that allows you to easy highlight authors comments. More on our website www.dakulov.eu … … 13 13 Simple 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. 14 14 15 Tested on WP v2.9.2 and v3.0.116 15 17 16 … … 31 30 Yes 32 31 32 = Can i select multiple users in Global Highlighting? = 33 34 Yes, you can use comma to delimit multiple users. For example: 35 dimitris,nikos,stratos 36 33 37 == Screenshots == 34 38 … … 37 41 38 42 == Changelog == 43 44 = 0.6 = 45 * New feature: Ability to select multiple users in Global Highlighting 39 46 40 47 = 0.5 = -
simple-author-highlighter/trunk/sah.php
r290975 r323892 4 4 Plugin URI: http://www.dakulov.eu#page5 5 5 Description: Easy highlight authors comments 6 Version: 0. 56 Version: 0.6 7 7 Author: Akulov Dmitriy 8 8 Author URI: http://www.dakulov.eu … … 25 25 26 26 function sah_addHeaderCode() { 27 $sah_users = get_option('user'); 28 $sah_userArray = explode(",", $sah_users); 27 29 echo "\n".'<!-- Start Simple Author Highlighter -->'."\n"; 28 30 echo '<style type="text/css">' . "\n"; 29 31 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 } 31 35 echo '</style>'."\n"; 32 36 echo '<!-- Stop Simple Author Highlighter -->'."\n"; … … 49 53 50 54 function sah_register_mysettings() { 51 //register oursettings55 //register settings 52 56 register_setting( 'sah-settings-group', 'color_code' ); 53 57 register_setting( 'sah-settings-group', 'color_code2' ); … … 74 78 </tr> 75 79 </table> 76 <h2>Global highlight a user</h2>80 <h2>Global highlight users</h2> 77 81 <table class="form-table"> 78 82 <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> 81 85 </tr> 82 86 <tr valign="top">
Note: See TracChangeset
for help on using the changeset viewer.