WordPress.org

Plugin Directory

Changeset 714353


Ignore:
Timestamp:
05/17/13 12:50:04 (11 months ago)
Author:
eskapism
Message:

version 1.3

Location:
simple-history
Files:
2 deleted
12 edited
15 copied

Legend:

Unmodified
Added
Removed
  • simple-history/tags/1.3/index.php

    r701396 r714353  
    44Plugin URI: http://eskapism.se/code-playground/simple-history/ 
    55Description: Get a log/history/audit log/version history of the changes made by users in WordPress. 
    6 Version: 1.2 
     6Version: 1.3 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    2828load_plugin_textdomain('simple-history', false, "/simple-history/languages"); 
    2929 
    30 define( "SIMPLE_HISTORY_VERSION", "1.2"); 
    31 define( "SIMPLE_HISTORY_NAME", "Simple History");  
     30define( "SIMPLE_HISTORY_VERSION", "1.3"); 
     31define( "SIMPLE_HISTORY_NAME", "Simple History"); 
    3232 
    3333// Find the plugin directory URL 
     
    250250        // DB version is 1, upgrade to 2 
    251251        if ( 1 == intval($db_version) ) { 
    252              
    253             // Add column for free text 
    254             // require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 
    255             // update_option("simple_history_db_version", 2); 
     252 
     253            // Add column for action description in non-translateable free text 
     254            $sql = "ALTER TABLE {$table_name} ADD COLUMN action_description longtext"; 
     255            mysql_query($sql); 
     256 
     257            simple_history_add("action=" . 'upgraded it\'s database' . "&object_type=plugin&object_name=" . SIMPLE_HISTORY_NAME . "&description=Database version is now version 2"); 
     258            update_option("simple_history_db_version", 2); 
    256259 
    257260        } 
     
    302305    } 
    303306 
     307    /** 
     308     * Log failed login attempt to username that exists 
     309     */ 
     310    function log_wp_authenticate_user($user, $password) { 
     311 
     312        if ( ! wp_check_password($password, $user->user_pass, $user->ID) ) { 
     313             
     314            // call __() to make translation exist 
     315            __("failed to log in because they entered the wrong password", "simple-history"); 
     316 
     317            $description = ""; 
     318            $description .= "HTTP_USER_AGENT: " . $_SERVER["HTTP_USER_AGENT"]; 
     319            $description .= "\nHTTP_REFERER: " . $_SERVER["HTTP_REFERER"]; 
     320            $description .= "\nREMOTE_ADDR: " . $_SERVER["REMOTE_ADDR"]; 
     321 
     322            $args = array( 
     323                        "object_type" => "user", 
     324                        "object_name" => $user->user_login, 
     325                        "action" => "failed to log in because they entered the wrong password", 
     326                        "object_id" => $user->ID, 
     327                        "description" => $description 
     328                    ); 
     329             
     330            simple_history_add($args); 
     331 
     332        } 
     333 
     334        return $user; 
     335 
     336    } 
     337 
     338    /** 
     339     * Init for both public and admin 
     340     */ 
    304341    function init() { 
    305342     
    306         // users and stuff 
     343        // user login and logout 
    307344        add_action("wp_login", "simple_history_wp_login"); 
    308345        add_action("wp_logout", "simple_history_wp_logout"); 
     346 
     347        // user failed login attempt to username that exists 
     348        #$user = apply_filters('wp_authenticate_user', $user, $password); 
     349        add_action("wp_authenticate_user", array($this, "log_wp_authenticate_user"), 10, 2); 
     350 
     351        // user profile page modifications 
    309352        add_action("delete_user", "simple_history_delete_user"); 
    310353        add_action("user_register", "simple_history_user_register"); 
     
    441484            $user = $user_obj->user_login; 
    442485        }; 
    443      
     486 
    444487        // page to show. 1 = first page. 
    445488        $page = 0; 
     
    947990        "object_name" => null, 
    948991        "user_id" => null, 
     992        "description" => null 
    949993    ); 
    950994 
     
    952996 
    953997    $action = mysql_real_escape_string($args["action"]); 
    954     $object_type = $args["object_type"]; 
    955     $object_subtype = $args["object_subtype"]; 
    956     $object_id = $args["object_id"]; 
     998    $object_type = mysql_real_escape_string($args["object_type"]); 
     999    $object_subtype = mysql_real_escape_string($args["object_subtype"]); 
     1000    $object_id = mysql_real_escape_string($args["object_id"]); 
    9571001    $object_name = mysql_real_escape_string($args["object_name"]); 
    9581002    $user_id = $args["user_id"]; 
     1003    $description = mysql_real_escape_string($args["description"]); 
    9591004 
    9601005    global $wpdb; 
     
    9661011        $current_user_id = (int) $current_user->ID; 
    9671012    } 
    968      
     1013 
    9691014    // date, store at utc or local time 
    9701015    // anything is better than now() anyway! 
     
    9731018    // local time is: date_i18n($timezone_format)); 
    9741019    $localtime = current_time("mysql"); 
    975     $sql = "INSERT INTO {$tableprefix}simple_history SET date = '$localtime', action = '$action', object_type = '$object_type', object_subtype = '$object_subtype', user_id = '$current_user_id', object_id = '$object_id', object_name = '$object_name'"; 
     1020    $sql = " 
     1021        INSERT INTO {$tableprefix}simple_history  
     1022        SET  
     1023            date = '$localtime',  
     1024            action = '$action',  
     1025            object_type = '$object_type',  
     1026            object_subtype = '$object_subtype',  
     1027            user_id = '$current_user_id',  
     1028            object_id = '$object_id',  
     1029            object_name = '$object_name', 
     1030            action_description = '$description' 
     1031        "; 
    9761032    $wpdb->query($sql); 
    9771033} 
     
    15151571                    } else if (strpos(strtolower($one_row->action), $search) !== FALSE) { 
    15161572                        $do_add = TRUE; 
     1573                    } else if (strpos(strtolower($one_row->action_description), $search) !== FALSE) { 
     1574                        $do_add = TRUE; 
    15171575                    } 
    15181576                } else { 
     
    15791637     
    15801638    $arr_events = simple_history_get_items_array($args); 
     1639    #sf_d($arr_events); 
    15811640    #sf_d($args);sf_d($arr_events); 
    15821641    $defaults = array( 
     
    16091668            $user_id = $one_row->user_id; 
    16101669            $action = $one_row->action; 
     1670            $action_description = $one_row->action_description; 
    16111671            $occasions = $one_row->occasions; 
    16121672            $num_occasions = sizeof($occasions); 
     
    18151875                } 
    18161876 
    1817                 /* 
    1818                 $user_avatar = get_avatar($user->user_email, "50");  
    1819                 if ($user_link) { 
    1820                     $user_out .= "<a class='simple-history-attachment-thumbnail' href='$user_link'>$user_avatar</a>"; 
    1821                 } else { 
    1822                     $user_out .= "<span class='simple-history-attachment-thumbnail' href='$user_link'>$user_avatar</span>"; 
    1823                 } 
    1824                 */ 
    1825  
    18261877                $user_out .= " " . esc_html__($action, "simple-history"); 
    18271878                 
     
    18691920            $output .= $diff_str; 
    18701921            $output .= "<span class='when_detail'>".sprintf(__('%s at %s', 'simple-history'), $date_i18n_date, $date_i18n_time)."</span>"; 
     1922 
     1923            // action description 
     1924            if ( trim( $action_description ) )  { 
     1925                $output .= sprintf( 
     1926                    ' 
     1927                    <a href="#" class="simple-history-item-description-toggler">%2$s</a> 
     1928                    <div class="simple-history-item-description-wrap"> 
     1929                        <div class="simple-history-action-description">%1$s</div> 
     1930                    </div> 
     1931                    ', 
     1932                    nl2br( esc_attr( $action_description ) ), // 2 
     1933                    __("Details", "simple-history") // 2 
     1934                ); 
     1935            } 
    18711936             
    18721937            $output .= "</div>"; 
     
    18961961                    $output .= "<a class='simple-history-occasion-show' href='#'>$many_occasion</a>"; 
    18971962                } 
     1963                 
    18981964                $output .= "<ul class='simple-history-occasions hidden'>"; 
    18991965                foreach ($occasions as $one_occasion) { 
     1966                 
    19001967                    $output .= "<li>"; 
     1968                 
    19011969                    $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_occasion->date), $gmt=false); 
    19021970                    $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_occasion->date), $gmt=false);      
    1903                     $output .= sprintf( __('%s ago (%s at %s)', "simple-history"), human_time_diff(strtotime($one_occasion->date), $now), $date_i18n_date, $date_i18n_time ); 
     1971                 
     1972                    $output .= "<div class='simple-history-occasions-one-when'>"; 
     1973                    $output .= sprintf( 
     1974                            __('%s ago (%s at %s)', "simple-history"),  
     1975                            human_time_diff(strtotime($one_occasion->date), $now),  
     1976                            $date_i18n_date,  
     1977                            $date_i18n_time 
     1978                        ); 
     1979                     
     1980                    if ( trim( $one_occasion->action_description ) )  { 
     1981                        $output .= "<a href='#' class='simple-history-occasions-details-toggle'>" . __("Details", "simple-history") . "</a>"; 
     1982                    } 
     1983                     
     1984                    $output .= "</div>"; 
     1985 
     1986                    if ( trim( $one_occasion->action_description ) )  { 
     1987                        $output .= sprintf( 
     1988                            '<div class="simple-history-occasions-one-action-description">%1$s</div>', 
     1989                            nl2br( esc_attr( $one_occasion->action_description ) ) 
     1990                        ); 
     1991                    } 
     1992 
    19041993 
    19051994                    $output .= "</li>"; 
    19061995                } 
     1996 
    19071997                $output .= "</ul>"; 
     1998 
    19081999                $output .= "</div>"; 
    19092000            } 
     
    19462037 
    19472038            $output .= " 
    1948                 <p class='hidden simple-history-no-more-items'>$no_found</p>             
     2039                <p class='simple-history-no-more-items'>$no_found</p>            
    19492040                <p class='simple-history-rss-feed-dashboard'><a title='$view_rss' href='$view_rss_link'>$view_rss</a></p> 
    19502041                <p class='simple-history-rss-feed-page'><a title='$view_rss' href='$view_rss_link'><span></span>$view_rss</a></p> 
  • simple-history/tags/1.3/languages/simple-history-ar.po

    r686348 r714353  
    1414"X-Generator: Poedit 1.5.5\n" 
    1515 
     16# 'action' => $retval[$module]['active'] ? __('activated', 'sh-extender') : __('deactivated', 'sh-extender'), 
     17# 'type'   => __('Simple History Extender Module', 'sh-extender'), 
     18# 'name'   => $field['title'], 
     19msgid "Simple History Extender Module" 
     20msgstr "زيادة التاريخ المبسط" 
     21 
     22# public function modules_settings_intro(){ 
     23# echo '<p>'. __( 'Activate or deactivate the events you want to log. Read the Help tab if you want to know which actions are supported and which aren\'t.', 'sh-extender') .'</p>'; 
     24# } 
     25msgid "" 
     26"Activate or deactivate the events you want to log. Read the Help tab if you " 
     27"want to know which actions are supported and which aren't." 
     28msgstr "" 
     29"قم بتنشيط أو تعطيل الأحداث التي تريد تسجيلها. إقرأ تبويبة مساعدة إذا أردت " 
     30"معرفة الأحداث المدعومة وتلك غير المدعومة." 
     31 
     32# public function register_settings(){ 
     33# add_settings_section( $this->modules_section, __('Simple History Extender Modules', 'sh-extender'), array( $this, 'modules_settings_intro' ), $this->page ); 
     34# register_setting( $this->opt_group, $this->modules_name, array( $this, 'modules_settings_sanitize' ) ); 
     35msgid "Simple History Extender Modules" 
     36msgstr "زيادات التاريخ المبسط" 
     37 
     38# 0 => __('The Simple History Extender plugin was deactivated because the Simple History plugin was not found installed or active.', 'sh-extender'), 
     39# 1 => __('The Simple History Extender plugin was deactivated.', 'sh-extender') 
     40# ); 
     41msgid "The Simple History Extender plugin was deactivated." 
     42msgstr "إضافة زيادات التاريخ المبسط تم تعطيلها." 
     43 
     44# $messages = array( 
     45# 0 => __('The Simple History Extender plugin was deactivated because the Simple History plugin was not found installed or active.', 'sh-extender'), 
     46# 1 => __('The Simple History Extender plugin was deactivated.', 'sh-extender') 
     47msgid "" 
     48"The Simple History Extender plugin was deactivated because the Simple " 
     49"History plugin was not found installed or active." 
     50msgstr "" 
     51"إضافة زيادات التاريخ المبسط تم تعطيلها لأنه لم يتم إيجاد إضافة التاريخ " 
     52"المبسط منصبة أو مفعلة." 
     53 
     54# 
     55# $content .= '</p><p><strong>'. sprintf( __('The %s module does not support the following events:', 'sh-extender'), $this->title ) .'</strong></p><p>'; 
     56# 
     57msgid "The %s module does not support the following events:" 
     58msgstr "زيادة %s لا تدعم الأحداث التالية:" 
     59 
     60# // Build content string starting with supporting events 
     61# $content = '<p><strong>'. sprintf( __('The %s module logs the following events:', 'sh-extender'), $this->title ) .'</strong></p><p>'; 
     62# 
     63msgid "The %s module logs the following events:" 
     64msgstr "زيادة %s تسجل الأحداث التالية:" 
     65 
     66# ? sprintf( __('Log events for the %s plugin.', 'sh-extender'), $this->title ) 
     67# : sprintf( __('Log events for %s.', 'sh-extender'), $this->title ) 
     68# ); 
     69msgid "Log events for %s." 
     70msgstr "سجل أحداث %s." 
     71 
     72# else 
     73# $action = __('added to sidebar %s', 'sh-extender'); 
     74# 
     75msgid "added to sidebar %s" 
     76msgstr "تمت الإضافة إلى مربع جانبي %s" 
     77 
     78# elseif ( isset( $wp_registered_widgets[$_POST['widget-id']] ) ) 
     79# $action = __('updated in sidebar %s', 'sh-extender'); 
     80# else 
     81msgid "updated in sidebar %s" 
     82msgstr "تم التحديث في مربع جانبي %s" 
     83 
     84# if ( isset( $_POST['delete_widget'] ) ) 
     85# $action = __('removed from sidebar %s', 'sh-extender'); 
     86# elseif ( isset( $wp_registered_widgets[$_POST['widget-id']] ) ) 
     87msgid "removed from sidebar %s" 
     88msgstr "تم الحذف من مربع جانبي %s" 
     89 
     90# $bbp_roles = bbp_get_dynamic_roles(); 
     91# $this->extend_user( $user_id, sprintf( __('changed forum role to %s', 'sh-extender'), !empty( $new_role ) ? translate_user_role( $bbp_roles[$new_role]['name'] ) : __('none') ) ); 
     92# } 
     93msgid "changed forum role to %s" 
     94msgstr "تم تغيير دور المنتدى إلى %s" 
     95 
     96# public function user_register( $user_id ){ 
     97# $this->extend_user( $user_id, __('registered', 'sh-extender') ); 
     98# } 
     99msgid "registered" 
     100msgstr "تم التسجيل" 
     101 
     102# public function profile_update( $user_id, $old_user_data ){ 
     103# $this->extend_user( $user_id, __('profile updated', 'sh-extender') ); 
     104# } 
     105msgid "profile updated" 
     106msgstr "تم تحديث الملف الشخصي" 
     107 
     108# public function remove_user_subscription( $user_id, $topic_id ){ 
     109# $this->extend_topic( $topic_id, __('unsubscribed', 'sh-extender') ); 
     110# } 
     111msgid "unsubscribed" 
     112msgstr "تم إلغاء الاشتراك" 
     113 
     114# public function add_user_subscription( $user_id, $topic_id ){ 
     115# $this->extend_topic( $topic_id, __('subscribed', 'sh-extender') ); 
     116# } 
     117msgid "subscribed" 
     118msgstr "تم الاشتراك" 
     119 
     120# public function remove_user_favorite( $user_id, $topic_id ){ 
     121# $this->extend_topic( $topic_id, __('unfavorited', 'sh-extender') ); 
     122# } 
     123msgid "unfavorited" 
     124msgstr "تم إلغاء التفضيل" 
     125 
     126# public function add_user_favorite( $user_id, $topic_id ){ 
     127# $this->extend_topic( $topic_id, __('favorited', 'sh-extender') ); 
     128# } 
     129msgid "favorited" 
     130msgstr "تم التفضيل" 
     131 
     132# $topic_id, 
     133# $this->events['edit'] .' '. sprintf( __('in forum %s', 'sh-extender'), bbp_get_forum_title( $forum_id ) ) 
     134# ); 
     135msgid "in forum %s" 
     136msgstr "في منتدى %s" 
     137 
     138# 'action' => sprintf( __('by %s', 'sh-extender'), $user->user_login ) .' '. $action, 
     139# 'type'   => __('Reply', 'bbpress'), 
     140# 'name'   => bbp_get_reply_title( $reply_id ), 
     141msgid "Reply" 
     142msgstr "رد" 
     143 
     144# $this->extend( array( 
     145# 'action' => sprintf( __('by %s', 'sh-extender'), $user->user_login ) .' '. $action, 
     146# 'type'   => __('Reply', 'bbpress'), 
     147msgid "by %s" 
     148msgstr "عن طريق %s" 
     149 
     150# 'action' => $action, 
     151# 'type'   => __('Topic Tag', 'bbpress'), 
     152# 'name'   => bbp_get_topic_tag_name( $tag ), 
     153msgid "Topic Tag" 
     154msgstr "وسم موضوع" 
     155 
     156# 'action'  => $action, 
     157# 'type'    => __('Topic', 'bbpress'), 
     158# 'name'    => bbp_get_topic_title( $topic_id ), 
     159msgid "Topic" 
     160msgstr "موضوع" 
     161 
     162# 'action' => $action, 
     163# 'type'   => __('Forum', 'bbpress'), 
     164# 'name'   => bbp_get_forum_title( $forum_id ), 
     165msgid "Forum" 
     166msgstr "منتدى" 
     167 
     168# default: 
     169# $action = __('changed status', 'sh-extender'); 
     170# } 
     171msgid "changed status" 
     172msgstr "تم تغيير الحالة" 
     173 
     174# default : 
     175# $action = __('restored', 'sh-extender'); 
     176# } 
     177msgid "restored" 
     178msgstr "تم الاستعادة" 
     179 
     180# $form_id, 
     181# sprintf( __('field %s deleted', 'sh-extender'), $field['label'] .' (ID: '. $field_id .')' ) 
     182# ); 
     183msgid "field %s deleted" 
     184msgstr "تم حذف حقل %s" 
     185 
     186# ? __('without entries deleted', 'sh-extender') 
     187# : sprintf( __('with %d entries deleted', 'sh-extender'), $entries ) 
     188# ); 
     189msgid "with %d entries deleted" 
     190msgstr "مع %d مدخل تم حذفه" 
     191 
     192# 0 == $entries 
     193# ? __('without entries deleted', 'sh-extender') 
     194# : sprintf( __('with %d entries deleted', 'sh-extender'), $entries ) 
     195msgid "without entries deleted" 
     196msgstr "بدون حذف مدخلات" 
     197 
     198# 'action' => $created_by ? $this->created_by( $entry_id ) . $action : $action, 
     199# 'type'   => __('Form entry', 'sh-extender'), 
     200# 'name'   => $this->entry_form_title( $entry_id ), 
     201msgid "Form entry" 
     202msgstr "مدخل استمارة" 
     203 
     204# 'action' => $action, 
     205# 'type'   => __('Form', 'sh-extender'), 
     206# 'name'   => $this->form_title( $form_id ), 
     207msgid "Form" 
     208msgstr "استمارة" 
     209 
     210# } else 
     211# $from = __('from unknown', 'sh-extender'); 
     212# 
     213msgid "from unknown" 
     214msgstr "بواسطة غير معروف" 
     215 
     216# $user = get_userdata( $user_id ); 
     217# $from = sprintf( __('from %s', 'sh-extender'), $user->user_login ); 
     218# } else 
     219msgid "from %s" 
     220msgstr "بواسطة %s" 
     221 
     222# echo "<div class='simple-history-settings-page-updated'><p>"; 
     223# _e("Created new secret RSS address", 'simple-history'); 
     224# echo "</p></div>"; 
     225msgid "Created new secret RSS address" 
     226msgstr "تم إنشاء عنوان تغذية RSS سري جديد" 
     227 
     228# $dummy = __("modified", "simple-history"); 
     229# $dummy = __("upgraded it\'s database", "simple-history"); 
     230# } 
     231msgid "upgraded it's database" 
     232msgstr "تم تحديث قاعدة بياناته" 
     233 
     234# $dummy = __("added", "simple-history"); 
     235# $dummy = __("modified", "simple-history"); 
     236# $dummy = __("upgraded it\'s database", "simple-history"); 
     237msgid "modified" 
     238msgstr "تم التعديل" 
     239 
     240# $dummy = __("logged out", "simple-history"); 
     241# $dummy = __("added", "simple-history"); 
     242# $dummy = __("modified", "simple-history"); 
     243msgid "added" 
     244msgstr "تمت الإضافة" 
     245 
     246# __('Moving widgets between sidebars.', 'sh-extender'), 
     247# __('Setting a widget to active/inactive.', 'sh-extender') 
     248# ) 
     249msgid "Setting a widget to active/inactive." 
     250msgstr "تعيين مربع جانبي كمفعل/معطل." 
     251 
     252# 'lacks'    => array( 
     253# __('Moving widgets between sidebars.', 'sh-extender'), 
     254# __('Setting a widget to active/inactive.', 'sh-extender') 
     255msgid "Moving widgets between sidebars." 
     256msgstr "تحويل المربعات الجانبية من مكان إلى آخر." 
     257 
     258# 'supports' => array( 
     259# __('Adding, updating and deleting widgets in/from a sidebar.', 'sh-extender'), 
     260# ), 
     261msgid "Adding, updating and deleting widgets in/from a sidebar." 
     262msgstr "إضافة، تحديث وحذف مربعات جانبية." 
     263 
     264# 'plugin'      => false, 
     265# 'description' => __('Log events for the Widgets section of your WP install.', 'sh-extender'), 
     266# 'tabs'        => array( 
     267msgid "Log events for the Widgets section of your WP install." 
     268msgstr "قم بتسجيل الأحداث في قسم المربعات الجانبية في تنصيب ووردبريس الخاص بك." 
     269 
     270# 'id'          => 'widgets', 
     271# 'title'       => __('Widgets', 'sh-extender'), 
     272# 'plugin'      => false, 
     273msgid "Widgets" 
     274msgstr "المربعات الجانبية" 
     275 
     276# 'read'   => __('marked as read', 'sh-extender'), 
     277# 'unread' => __('marked as unread', 'sh-extender'), 
     278# ); 
     279msgid "marked as unread" 
     280msgstr "تم التعيين كغير مقروء" 
     281 
     282# 'unstar' => __('unstarred', 'sh-extender'), 
     283# 'read'   => __('marked as read', 'sh-extender'), 
     284# 'unread' => __('marked as unread', 'sh-extender'), 
     285msgid "marked as read" 
     286msgstr "تم التعيين كمقروء" 
     287 
     288# 'star'   => __('starred', 'sh-extender'), 
     289# 'unstar' => __('unstarred', 'sh-extender'), 
     290# 'read'   => __('marked as read', 'sh-extender'), 
     291msgid "unstarred" 
     292msgstr "تم إلغاء التفضيل" 
     293 
     294# $events = array( 
     295# 'star'   => __('starred', 'sh-extender'), 
     296# 'unstar' => __('unstarred', 'sh-extender'), 
     297msgid "starred" 
     298msgstr "تم التفضيل" 
     299 
     300# __('Duplicating a form.', 'sh-extender'), 
     301# __('Setting a form to active/inactive.', 'sh-extender') 
     302# ) 
     303msgid "Setting a form to active/inactive." 
     304msgstr "تعيين استمارة كمفعلة/معطلة." 
     305 
     306# 'lacks'    => array( 
     307# __('Duplicating a form.', 'sh-extender'), 
     308# __('Setting a form to active/inactive.', 'sh-extender') 
     309msgid "Duplicating a form." 
     310msgstr "نسخ استمارة." 
     311 
     312# __('Submitting, editing and deleting an entry.', 'sh-extender'), 
     313# __('Changing the status of an entry, including read/unread and star/unstar.', 'sh-extender') 
     314# ), 
     315msgid "Changing the status of an entry, including read/unread and star/unstar." 
     316msgstr "تغيير حالة مدخل، يتضمن ذلك مقروء/غير مقروء وتفضيل/إلغاء تفضيل." 
     317 
     318# __('Deleting a field from an existing form.', 'sh-extender'), 
     319# __('Submitting, editing and deleting an entry.', 'sh-extender'), 
     320# __('Changing the status of an entry, including read/unread and star/unstar.', 'sh-extender') 
     321msgid "Submitting, editing and deleting an entry." 
     322msgstr "إرسال، تعديل وحذف مدخل." 
     323 
     324# __('Creating, editing and deleting a form.', 'sh-extender'), 
     325# __('Deleting a field from an existing form.', 'sh-extender'), 
     326# __('Submitting, editing and deleting an entry.', 'sh-extender'), 
     327msgid "Deleting a field from an existing form." 
     328msgstr "حذف حقل من استمارة موجودة." 
     329 
     330# 'supports' => array( 
     331# __('Creating, editing and deleting a form.', 'sh-extender'), 
     332# __('Deleting a field from an existing form.', 'sh-extender'), 
     333msgid "Creating, editing and deleting a form." 
     334msgstr "إنشاء، تعديل وحذف استمارة." 
     335 
     336# 'id'     => 'gravityforms', 
     337# 'title'  => __('Gravity Forms', 'sh-extender'), 
     338# 'plugin' => 'gravityforms/gravityforms.php', 
     339msgid "Gravity Forms" 
     340msgstr "Gravity Forms" 
     341 
     342# 'merge'       => __('in forum %s merged into %s', 'sh-extender'), 
     343# 'split'       => __('in forum %s split from reply %s by %s into %s in forum %s', 'sh-extender') 
     344# ); 
     345msgid "in forum %s split from reply %s by %s into %s in forum %s" 
     346msgstr "في منتدى %s تم الفصل من رد %s بواسطة %s في %s في منتدى %s" 
     347 
     348# 'hide'        => __('set to hidden', 'sh-extender'), 
     349# 'merge'       => __('in forum %s merged into %s', 'sh-extender'), 
     350# 'split'       => __('in forum %s split from reply %s by %s into %s in forum %s', 'sh-extender') 
     351msgid "in forum %s merged into %s" 
     352msgstr "في منتدى %s تم الدمج في %s" 
     353 
     354# 'privatize'   => __('set to private', 'sh-extender'), 
     355# 'hide'        => __('set to hidden', 'sh-extender'), 
     356# 'merge'       => __('in forum %s merged into %s', 'sh-extender'), 
     357msgid "set to hidden" 
     358msgstr "تم التعيين كمخفي" 
     359 
     360# 'publicize'   => __('set to public', 'sh-extender'), 
     361# 'privatize'   => __('set to private', 'sh-extender'), 
     362# 'hide'        => __('set to hidden', 'sh-extender'), 
     363msgid "set to private" 
     364msgstr "تم التعيين كخاص" 
     365 
     366# 'normalize'   => __('set to forum type', 'sh-extender'), 
     367# 'publicize'   => __('set to public', 'sh-extender'), 
     368# 'privatize'   => __('set to private', 'sh-extender'), 
     369msgid "set to public" 
     370msgstr "تم التعيين كعام" 
     371 
     372# 'categorize'  => __('set to category type', 'sh-extender'), 
     373# 'normalize'   => __('set to forum type', 'sh-extender'), 
     374# 'publicize'   => __('set to public', 'sh-extender'), 
     375msgid "set to forum type" 
     376msgstr "تعيين لنوع منتدي" 
     377 
     378# 'unstick'     => __('unmarked as sticky', 'sh-extender'), 
     379# 'categorize'  => __('set to category type', 'sh-extender'), 
     380# 'normalize'   => __('set to forum type', 'sh-extender'), 
     381msgid "set to category type" 
     382msgstr "تعيين لنوع تصنيف" 
     383 
     384# 'super-stick' => __('marked as super sticky', 'sh-extender'), 
     385# 'unstick'     => __('unmarked as sticky', 'sh-extender'), 
     386# 'categorize'  => __('set to category type', 'sh-extender'), 
     387msgid "unmarked as sticky" 
     388msgstr "تم حذف التعليم كمثبت" 
     389 
     390# 'stick'       => __('marked as sticky', 'sh-extender'), 
     391# 'super-stick' => __('marked as super sticky', 'sh-extender'), 
     392# 'unstick'     => __('unmarked as sticky', 'sh-extender'), 
     393msgid "marked as super sticky" 
     394msgstr "تم التعليم كمثبت جداً" 
     395 
     396# 'open'        => __('opened', 'sh-extender'), 
     397# 'stick'       => __('marked as sticky', 'sh-extender'), 
     398# 'super-stick' => __('marked as super sticky', 'sh-extender'), 
     399msgid "marked as sticky" 
     400msgstr "تم التعليم كمثبت" 
     401 
     402# 'close'       => __('closed', 'sh-extender'), 
     403# 'open'        => __('opened', 'sh-extender'), 
     404# 'stick'       => __('marked as sticky', 'sh-extender'), 
     405msgid "opened" 
     406msgstr "تم الفتح" 
     407 
     408# $events = array( 
     409# 'close'       => __('closed', 'sh-extender'), 
     410# 'open'        => __('opened', 'sh-extender'), 
     411msgid "closed" 
     412msgstr "تم الإغلاق" 
     413 
     414# 'untrash' => __('untrashed', 'sh-extender'), 
     415# 'submit'  => __('submitted', 'sh-extender') 
     416# ); 
     417msgid "submitted" 
     418msgstr "تم الإرسال" 
     419 
     420# 'spam'    => __('marked as spam', 'sh-extender'), 
     421# 'unspam'  => __('unmarked as spam', 'sh-extender'), 
     422# 'trash'   => __('trashed', 'sh-extender'), 
     423msgid "unmarked as spam" 
     424msgstr "تم حذف التعليم كمزعج" 
     425 
     426# : ( $this->plugin 
     427# ? sprintf( __('Log events for the %s plugin.', 'sh-extender'), $this->title ) 
     428# : sprintf( __('Log events for %s.', 'sh-extender'), $this->title ) 
     429msgid "Log events for the %s plugin." 
     430msgstr "سجل الأحداث للإضافة %s." 
     431 
     432# __('A user (un)favoriting and (un)subscribing to a topic.', 'sh-extender'), 
     433# __('A user saving his/her profile.', 'sh-extender') 
     434# ) 
     435msgid "A user saving his/her profile." 
     436msgstr "مستخدم يقوم بحفظ ملفه الشخصي" 
     437 
     438# __('Updating, merging and deleting a topic tag.', 'sh-extender'), 
     439# __('A user (un)favoriting and (un)subscribing to a topic.', 'sh-extender'), 
     440# __('A user saving his/her profile.', 'sh-extender') 
     441msgid "A user (un)favoriting and (un)subscribing to a topic." 
     442msgstr "مستخدم يقوم بإلغاء تفضيل وإلغاء اشتراك في موضوع." 
     443 
     444# __('Merging and splitting a topic.', 'sh-extender'), 
     445# __('Updating, merging and deleting a topic tag.', 'sh-extender'), 
     446# __('A user (un)favoriting and (un)subscribing to a topic.', 'sh-extender'), 
     447msgid "Updating, merging and deleting a topic tag." 
     448msgstr "تحديث، دمج وحذف وسم موضوع." 
     449 
     450# __('Marking and unmarking a topic as sticky.', 'sh-extender'), 
     451# __('Merging and splitting a topic.', 'sh-extender'), 
     452# __('Updating, merging and deleting a topic tag.', 'sh-extender'), 
     453msgid "Merging and splitting a topic." 
     454msgstr "دمج وفصل موضوع." 
     455 
     456# __('Marking and unmarking a topic, reply as spam.', 'sh-extender'), 
     457# __('Marking and unmarking a topic as sticky.', 'sh-extender'), 
     458# __('Merging and splitting a topic.', 'sh-extender'), 
     459msgid "Marking and unmarking a topic as sticky." 
     460msgstr "تعليم وإلغاء تعليم موضوع كمثبت." 
     461 
     462# __('Trashing and untrashing a forum, topic, reply.', 'sh-extender'), 
     463# __('Marking and unmarking a topic, reply as spam.', 'sh-extender'), 
     464# __('Marking and unmarking a topic as sticky.', 'sh-extender'), 
     465msgid "Marking and unmarking a topic, reply as spam." 
     466msgstr "تعليم وإلغاء تعليم موضوع أو تعليق كمزعج." 
     467 
     468# __('Setting the forum visibility to public, private or hidden.', 'sh-extender'), 
     469# __('Trashing and untrashing a forum, topic, reply.', 'sh-extender'), 
     470# __('Marking and unmarking a topic, reply as spam.', 'sh-extender'), 
     471msgid "Trashing and untrashing a forum, topic, reply." 
     472msgstr "مسح وإلغاء مسح منتدى، موضوع، رد." 
     473 
     474# __('Setting the status of a forum, topic to open or closed.', 'sh-extender'), 
     475# __('Setting the forum visibility to public, private or hidden.', 'sh-extender'), 
     476# __('Trashing and untrashing a forum, topic, reply.', 'sh-extender'), 
     477msgid "Setting the forum visibility to public, private or hidden." 
     478msgstr "تعيين رؤية منتدى لعام، خاص أو مخفي." 
     479 
     480# __('Setting the type of a forum to category or forum.', 'sh-extender'), 
     481# __('Setting the status of a forum, topic to open or closed.', 'sh-extender'), 
     482# __('Setting the forum visibility to public, private or hidden.', 'sh-extender'), 
     483msgid "Setting the status of a forum, topic to open or closed." 
     484msgstr "تعيين حالة منتدى أو موضوع كمفتوح أو مغلق." 
     485 
     486# __('Creating, editing and deleting a forum, topic, reply.', 'sh-extender'), 
     487# __('Setting the type of a forum to category or forum.', 'sh-extender'), 
     488# __('Setting the status of a forum, topic to open or closed.', 'sh-extender'), 
     489msgid "Setting the type of a forum to category or forum." 
     490msgstr "تعيين نوع منتدى لتصنيف أو منتدى." 
     491 
     492# 'supports' => array( 
     493# __('Creating, editing and deleting a forum, topic, reply.', 'sh-extender'), 
     494# __('Setting the type of a forum to category or forum.', 'sh-extender'), 
     495msgid "Creating, editing and deleting a forum, topic, reply." 
     496msgstr "إنشاء، تعديل أو حذف منتدى، موضوع، رد." 
     497 
     498# 'id'     => 'bbpress', 
     499# 'title'  => __('BBPress', 'sh-extender'), 
     500# 'plugin' => 'bbpress/bbpress.php', 
     501msgid "BBPress" 
     502msgstr "BBPress" 
     503 
    16504# echo "<br />"; 
    17505# _e("This is a secret RSS feed for Simple History. Only share the link with people you trust", 'simple-history'); 
     
    21509"people you trust" 
    22510msgstr "هذه تغذية RSS سرّية خاصة بالتاريخ. شارك الرابط فقط مع أناس تثق بهم." 
    23  
    24 # echo "<div class='simple-history-settings-page-updated'><p>"; 
    25 # _e("Created new secret RSS adress", 'simple-history'); 
    26 # echo "</p></div>"; 
    27 msgid "Created new secret RSS adress" 
    28 msgstr "تم إنشاء عنوان RSS سرّي جديد" 
    29511 
    30512# <?php 
     
    190672msgstr "تم التفعيل" 
    191673 
    192 # case "deactivated": 
    193 # $unknown_action = __("deactivated", 'simple-history'); 
    194 # break; 
     674# Simple_History_Extend::extend( array( 
     675# 'action' => $retval[$module]['active'] ? __('activated', 'sh-extender') : __('deactivated', 'sh-extender'), 
     676# 'type'   => __('Simple History Extender Module', 'sh-extender'), 
    195677msgid "deactivated" 
    196678msgstr "تم التعطيل" 
    197679 
    198 # case "activated": 
    199 # $unknown_action = __("activated", 'simple-history'); 
    200 # break; 
     680# Simple_History_Extend::extend( array( 
     681# 'action' => $retval[$module]['active'] ? __('activated', 'sh-extender') : __('deactivated', 'sh-extender'), 
     682# 'type'   => __('Simple History Extender Module', 'sh-extender'), 
    201683msgid "activated" 
    202684msgstr "تم التنشيط" 
     
    236718msgstr "امسحها الآن." 
    237719 
    238 # $link = esc_html(add_query_arg("simple_history_user_to_show", "")); 
    239 # $str_users .= "<li $css><a href='$link'>" . __("By all users", 'simple-history') ."</a> | </li>"; 
    240 # foreach ($arr_users as $user_id => $user_info) { 
     720# $user = $_POST["user"]; 
     721# if ($user == __( "By all users", 'simple-history' )) { $user = "";    } 
     722# 
    241723msgid "By all users" 
    242724msgstr "عن طريق جميع الأعضاء" 
     
    256738# <title><?php printf(__("History for %s", 'simple-history'), get_bloginfo("name")) ?></title> 
    257739# <description><?php printf(__("WordPress History for %s", 'simple-history'), get_bloginfo("name")) ?></description> 
    258 # <link><?php echo get_bloginfo("siteurl") ?></link> 
     740# <link><?php echo get_bloginfo("url") ?></link> 
    259741msgid "WordPress History for %s" 
    260742msgstr "تاريخ ووردبريس ل%s" 
     
    272754msgstr "مسح السجل" 
    273755 
    274 # $no_found = __("No matching items found.", 'simple-history'); 
    275 # $view_rss = __("RSS feed", 'simple-history'); 
    276 # $view_rss_link = simple_history_get_rss_address(); 
     756# add_settings_field("simple_history_settings_field_5", __("Number of items per page", "simple-history"),       "simple_history_settings_field_number_of_items",            "simple_history_settings_menu_slug", "simple_history_settings_section"); 
     757# add_settings_field("simple_history_settings_field_2", __("RSS feed", "simple-history"),           "simple_history_settings_field_rss",                        "simple_history_settings_menu_slug", "simple_history_settings_section"); 
     758# add_settings_field("simple_history_settings_field_4", __("Clear log", "simple-history"),          "simple_history_settings_field_clear_log",                  "simple_history_settings_menu_slug", "simple_history_settings_section"); 
    277759msgid "RSS feed" 
    278760msgstr "تغذية RSS" 
     
    290772msgstr "إظهار التاريخ المبسط" 
    291773 
    292 # <form method="post" action="options.php"> 
    293 # <h2><?php _e("Simple History Settings", "simple-history") ?></h2> 
    294 # <?php do_settings_sections("simple_history_settings_menu_slug"); ?> 
     774# if ($show_settings_page) { 
     775# add_options_page(__('Simple History Settings', "simple-history"), SIMPLE_HISTORY_NAME, $this->view_history_capability, "simple_history_settings_menu_slug", array($this, 'settings_page')); 
     776# } 
    295777msgid "Simple History Settings" 
    296778msgstr "إعدادات التاريخ المبسط" 
    297779 
    298 # add_settings_field("simple_history_settings_field_4", __("Clear log", "simple-history"),          "simple_history_settings_field_clear_log",                  "simple_history_settings_menu_slug", "simple_history_settings_section"); 
    299 # add_settings_field("simple_history_settings_field_3", __("Donate", "simple-history"),                 "simple_history_settings_field_donate",                     "simple_history_settings_menu_slug", "simple_history_settings_section"); 
    300 # 
     780# $links, 
     781# array( sprintf( '<a href="http://eskapism.se/sida/donate/?utm_source=wordpress&utm_medium=pluginpage&utm_campaign=simplehistory">%1$s</a>', __('Donate', "simple-history") ) ) 
     782# ); 
    301783msgid "Donate" 
    302784msgstr "تبرع" 
     
    308790msgstr "ووردبريس %1$s" 
    309791 
    310 # <div class="wrap"> 
    311 # <h2><?php echo __("History", 'simple-history') ?></h2> 
    312 # <?php 
     792# if (current_user_can($this->view_history_capability)) { 
     793# wp_add_dashboard_widget("simple_history_dashboard_widget", __("History", 'simple-history'), "simple_history_dashboard"); 
     794# } 
    313795msgid "History" 
    314796msgstr "التاريخ" 
     
    316798# $dummy = __("logged in", "simple-history"); 
    317799# $dummy = __("logged out", "simple-history"); 
    318 # } 
     800# $dummy = __("added", "simple-history"); 
    319801msgid "logged out" 
    320802msgstr "سجّل الخروج" 
     
    332814msgstr "تعليق" 
    333815 
    334 # $dummy = __("settings page", "simple-history"); 
    335 # $dummy = __("edited", "simple-history"); 
    336 # $dummy = __("comment", "simple-history"); 
     816# 'new'     => __('created', 'sh-extender'), 
     817# 'edit'    => __('edited', 'sh-extender'), 
     818# 'delete'  => __('deleted', 'sh-extender'), 
    337819msgid "edited" 
    338820msgstr "تم التحرير" 
     
    344826msgstr "صفحة الإعدادات" 
    345827 
    346 # $user_out = ""; 
    347 # $user_out .= __("user", 'simple-history'); 
    348 # $user = get_user_by("id", $object_id); 
     828# 'action' => $action, 
     829# 'type'   => __('User'), 
     830# 'name'   => apply_filters( 'she_extend_user_name', $user->user_login ), 
    349831msgid "user" 
    350832msgstr "المستخدم" 
    351833 
    352 # $attachment_out = ""; 
    353 # $attachment_out .= __("attachment", 'simple-history') . " "; 
    354 # 
     834# $dummy = __("nav_menu_item", "simple-history"); 
     835# $dummy = __("attachment", "simple-history"); 
     836# $dummy = __("user", "simple-history"); 
    355837msgid "attachment" 
    356838msgstr "المرفق" 
     
    362844msgstr "عنصر القائمة" 
    363845 
    364 # $dummy = __("deleted", "simple-history"); 
    365 # $dummy = __("updated", "simple-history"); 
    366 # $dummy = __("nav_menu_item", "simple-history"); 
     846# $args = array( 
     847# 'action'         => isset( $r['action']  ) ? $r['action']  : __('updated'), 
     848# 'object_type'    => isset( $r['type']    ) ? $r['type']    : null, 
    367849msgid "updated" 
    368850msgstr "تم التحديث" 
    369851 
    370 # $dummy = __("created", "simple-history"); 
    371 # $dummy = __("deleted", "simple-history"); 
    372 # $dummy = __("updated", "simple-history"); 
     852# 'edit'    => __('edited', 'sh-extender'), 
     853# 'delete'  => __('deleted', 'sh-extender'), 
     854# 'spam'    => __('marked as spam', 'sh-extender'), 
    373855msgid "deleted" 
    374856msgstr "تم الحذف" 
    375857 
    376 # $dummy = __("untrashed", "simple-history"); 
    377 # $dummy = __("created", "simple-history"); 
    378 # $dummy = __("deleted", "simple-history"); 
     858# $events = array( 
     859# 'new'     => __('created', 'sh-extender'), 
     860# 'edit'    => __('edited', 'sh-extender'), 
    379861msgid "created" 
    380862msgstr "تم الإنشاء" 
    381863 
    382 # $dummy = __("trashed", "simple-history"); 
    383 # $dummy = __("untrashed", "simple-history"); 
    384 # $dummy = __("created", "simple-history"); 
     864# 'trash'   => __('trashed', 'sh-extender'), 
     865# 'untrash' => __('untrashed', 'sh-extender'), 
     866# 'submit'  => __('submitted', 'sh-extender') 
    385867msgid "untrashed" 
    386868msgstr "تم إلغاء الحذف" 
    387869 
    388 # $dummy = __("marked as spam", "simple-history"); 
    389 # $dummy = __("trashed", "simple-history"); 
    390 # $dummy = __("untrashed", "simple-history"); 
     870# 'unspam'  => __('unmarked as spam', 'sh-extender'), 
     871# 'trash'   => __('trashed', 'sh-extender'), 
     872# 'untrash' => __('untrashed', 'sh-extender'), 
    391873msgid "trashed" 
    392874msgstr "تم الحذف" 
    393875 
    394 # $dummy = __("unapproved", "simple-history"); 
    395 # $dummy = __("marked as spam", "simple-history"); 
    396 # $dummy = __("trashed", "simple-history"); 
     876# 'delete'  => __('deleted', 'sh-extender'), 
     877# 'spam'    => __('marked as spam', 'sh-extender'), 
     878# 'unspam'  => __('unmarked as spam', 'sh-extender'), 
    397879msgid "marked as spam" 
    398880msgstr "تم التعليم كتعليق غير مرغوب فيه" 
  • simple-history/tags/1.3/languages/simple-history.pot

    r607619 r714353  
    1 # Copyright (C) 2012  
     1# Copyright (C) 2013  
    22# This file is distributed under the same license as the  package. 
    33msgid "" 
     
    55"Project-Id-Version:  \n" 
    66"Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-history\n" 
    7 "POT-Creation-Date: 2012-10-03 19:20:16+00:00\n" 
     7"POT-Creation-Date: 2013-04-22 06:14:22+00:00\n" 
    88"MIME-Version: 1.0\n" 
    99"Content-Type: text/plain; charset=UTF-8\n" 
    1010"Content-Transfer-Encoding: 8bit\n" 
    11 "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n" 
     11"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
    1313"Language-Team: LANGUAGE <LL@li.org>\n" 
    1414 
    15 #: index.php:66 
     15#: index.php:93 index.php:110 
     16msgid "added" 
     17msgstr "" 
     18 
     19#: index.php:94 
    1620msgid "approved" 
    1721msgstr "" 
    1822 
    19 #: index.php:67 
     23#: index.php:95 
    2024msgid "unapproved" 
    2125msgstr "" 
    2226 
    23 #: index.php:68 
     27#: index.php:96 simple-history-extender/class.simple-history-extend.php:92 
    2428msgid "marked as spam" 
    2529msgstr "" 
    2630 
    27 #: index.php:69 
     31#: index.php:97 simple-history-extender/class.simple-history-extend.php:94 
    2832msgid "trashed" 
    2933msgstr "" 
    3034 
    31 #: index.php:70 
     35#: index.php:98 simple-history-extender/class.simple-history-extend.php:95 
    3236msgid "untrashed" 
    3337msgstr "" 
    3438 
    35 #: index.php:71 
     39#: index.php:99 simple-history-extender/class.simple-history-extend.php:89 
    3640msgid "created" 
    3741msgstr "" 
    3842 
    39 #: index.php:72 
     43#: index.php:100 simple-history-extender/class.simple-history-extend.php:91 
    4044msgid "deleted" 
    4145msgstr "" 
    4246 
    43 #: index.php:73 
     47#: index.php:101 simple-history-extender/class.simple-history-extend.php:239 
    4448msgid "updated" 
    4549msgstr "" 
    4650 
    47 #: index.php:74 
     51#: index.php:102 
    4852msgid "nav_menu_item" 
    4953msgstr "" 
    5054 
    51 #: index.php:75 index.php:1423 
     55#: index.php:103 index.php:1715 
    5256msgid "attachment" 
    5357msgstr "" 
    5458 
    55 #: index.php:76 index.php:1456 
     59#: index.php:104 index.php:1796 
    5660msgid "user" 
    5761msgstr "" 
    5862 
    59 #: index.php:77 
     63#: index.php:105 
    6064msgid "settings page" 
    6165msgstr "" 
    6266 
    63 #: index.php:78 
     67#: index.php:106 simple-history-extender/class.simple-history-extend.php:90 
    6468msgid "edited" 
    6569msgstr "" 
    6670 
    67 #: index.php:79 
     71#: index.php:107 
    6872msgid "comment" 
    6973msgstr "" 
    7074 
    71 #: index.php:80 
     75#: index.php:108 
    7276msgid "logged in" 
    7377msgstr "" 
    7478 
    75 #: index.php:81 
     79#: index.php:109 
    7680msgid "logged out" 
    7781msgstr "" 
    7882 
    79 #: index.php:94 index.php:242 index.php:882 
     83#: index.php:111 
     84msgid "modified" 
     85msgstr "" 
     86 
     87#: index.php:112 
     88msgid "upgraded it\\'s database" 
     89msgstr "" 
     90 
     91#: index.php:113 
     92msgid "plugin" 
     93msgstr "" 
     94 
     95#: index.php:126 index.php:285 index.php:1027 
    8096msgid "History" 
    8197msgstr "" 
    8298 
    83 #: index.php:154 
     99#: index.php:186 
    84100msgid "WordPress %1$s" 
    85101msgstr "" 
    86102 
    87 #: index.php:167 index.php:257 
     103#: index.php:199 index.php:301 
    88104msgid "Donate" 
    89105msgstr "" 
    90106 
    91 #: index.php:228 index.php:249 
     107#: index.php:271 index.php:292 
    92108msgid "Simple History Settings" 
    93109msgstr "" 
    94110 
    95 #: index.php:254 
     111#: index.php:297 
    96112msgid "Show Simple History" 
    97113msgstr "" 
    98114 
    99 #: index.php:255 index.php:1584 
     115#: index.php:298 
     116msgid "Number of items per page" 
     117msgstr "" 
     118 
     119#: index.php:299 index.php:1938 
    100120msgid "RSS feed" 
    101121msgstr "" 
    102122 
    103 #: index.php:256 
     123#: index.php:300 
    104124msgid "Clear log" 
    105125msgstr "" 
    106126 
    107 #: index.php:297 index.php:340 
     127#: index.php:353 index.php:412 
    108128msgid "History for %s" 
    109129msgstr "" 
    110130 
    111 #: index.php:298 index.php:341 
     131#: index.php:354 index.php:413 
    112132msgid "WordPress History for %s" 
    113133msgstr "" 
    114134 
    115 #: index.php:310 
     135#: index.php:377 
    116136msgid "By %s" 
    117137msgstr "" 
    118138 
    119 #: index.php:314 
     139#: index.php:381 
    120140msgid "%d occasions" 
    121141msgstr "" 
    122142 
    123 #: index.php:345 
     143#: index.php:416 
    124144msgid "Wrong RSS secret" 
    125145msgstr "" 
    126146 
    127 #: index.php:346 
     147#: index.php:417 
    128148msgid "" 
    129149"Your RSS secret for Simple History RSS feed is wrong. Please see WordPress " 
     
    131151msgstr "" 
    132152 
    133 #: index.php:366 index.php:1064 
    134 msgid "By all users" 
    135 msgstr "" 
    136  
    137 #: index.php:415 index.php:1116 
     153#: index.php:496 index.php:1397 
    138154msgid "One item" 
    139155msgid_plural "%1$d items" 
     
    141157msgstr[1] "" 
    142158 
    143 #: index.php:456 
     159#: index.php:559 
    144160msgid "on the dashboard" 
    145161msgstr "" 
    146162 
    147 #: index.php:461 
     163#: index.php:564 
    148164msgid "as a page under the dashboard menu" 
    149165msgstr "" 
    150166 
    151 #: index.php:476 
     167#: index.php:579 
    152168msgid "Cleared database" 
    153169msgstr "" 
    154170 
    155 #: index.php:484 
     171#: index.php:587 
    156172msgid "Items in the database are automatically removed after 60 days." 
    157173msgstr "" 
    158174 
    159 #: index.php:486 
     175#: index.php:589 
    160176msgid "Clear it now." 
    161177msgstr "" 
    162178 
    163 #: index.php:500 
     179#: index.php:603 
    164180msgid "" 
    165181"\n" 
     
    173189msgstr "" 
    174190 
    175 #: index.php:536 
    176 msgid "Created new secret RSS adress" 
    177 msgstr "" 
    178  
    179 #: index.php:547 
     191#: index.php:637 
     192msgid "Created new secret RSS address" 
     193msgstr "" 
     194 
     195#: index.php:648 
    180196msgid "" 
    181197"This is a secret RSS feed for Simple History. Only share the link with " 
     
    183199msgstr "" 
    184200 
    185 #: index.php:550 
     201#: index.php:651 
    186202msgid "" 
    187203"You can <a href='%s'>generate a new address</a> for the RSS feed. This is " 
     
    189205msgstr "" 
    190206 
    191 #: index.php:573 index.php:589 index.php:621 
     207#: index.php:702 index.php:718 index.php:750 
    192208msgid "From %1$s on %2$s" 
    193209msgstr "" 
    194210 
    195 #: index.php:975 
     211#: index.php:1144 
    196212msgid "All types" 
    197213msgstr "" 
    198214 
    199 #: index.php:1083 
     215#: index.php:1305 index.php:1309 
     216msgid "By all users" 
     217msgstr "" 
     218 
     219#: index.php:1363 
    200220msgid "Search" 
    201221msgstr "" 
    202222 
    203 #: index.php:1120 
     223#: index.php:1401 
    204224msgid "Go to the first page" 
    205225msgstr "" 
    206226 
    207 #: index.php:1121 
     227#: index.php:1402 
    208228msgid "Go to the previous page" 
    209229msgstr "" 
    210230 
    211 #: index.php:1122 
     231#: index.php:1403 
    212232msgid "Current page" 
    213233msgstr "" 
    214234 
    215 #: index.php:1123 
     235#: index.php:1404 
    216236msgid "of" 
    217237msgstr "" 
    218238 
    219 #: index.php:1124 
     239#: index.php:1405 
    220240msgid "Go to the next page" 
    221241msgstr "" 
    222242 
    223 #: index.php:1125 
     243#: index.php:1406 
    224244msgid "Go to the last page" 
    225245msgstr "" 
    226246 
    227 #: index.php:1385 
     247#: index.php:1669 
    228248msgid "Unknown or deleted user" 
    229249msgstr "" 
    230250 
    231 #: index.php:1506 
     251#: index.php:1764 
     252msgid "File name:" 
     253msgstr "" 
     254 
     255#: index.php:1765 
     256msgid "File size:" 
     257msgstr "" 
     258 
     259#: index.php:1767 
     260msgid "Dimensions:" 
     261msgstr "" 
     262 
     263#: index.php:1768 
     264msgid "Length:" 
     265msgstr "" 
     266 
     267#: index.php:1848 simple-history-extender/simple-history-extender.php:274 
    232268msgid "activated" 
    233269msgstr "" 
    234270 
    235 #: index.php:1509 
     271#: index.php:1851 simple-history-extender/simple-history-extender.php:274 
    236272msgid "deactivated" 
    237273msgstr "" 
    238274 
    239 #: index.php:1512 
     275#: index.php:1854 
    240276msgid "enabled" 
    241277msgstr "" 
    242278 
    243 #: index.php:1515 
     279#: index.php:1857 
    244280msgid "disabled" 
    245281msgstr "" 
    246282 
    247 #: index.php:1530 
     283#: index.php:1873 
    248284msgid "<span class=\"when\">%1$s ago</span> by %2$s" 
    249285msgstr "" 
    250286 
    251 #: index.php:1532 
     287#: index.php:1875 
    252288msgid "%s at %s" 
    253289msgstr "" 
    254290 
    255 #: index.php:1539 
     291#: index.php:1897 
    256292msgid "+ 1 occasion" 
    257293msgstr "" 
    258294 
    259 #: index.php:1542 
     295#: index.php:1900 
    260296msgid "+ %d occasions" 
    261297msgstr "" 
    262298 
    263 #: index.php:1550 
     299#: index.php:1908 
    264300msgid "%s ago (%s at %s)" 
    265301msgstr "" 
    266302 
    267 #: index.php:1575 
     303#: index.php:1931 
    268304msgid "Show 5 more" 
    269305msgstr "" 
    270306 
    271 #: index.php:1576 
     307#: index.php:1932 
    272308msgid "Show 15 more" 
    273309msgstr "" 
    274310 
    275 #: index.php:1577 
     311#: index.php:1933 
    276312msgid "Show 50 more" 
    277313msgstr "" 
    278314 
    279 #: index.php:1578 
     315#: index.php:1934 
    280316msgid "Show 100 more" 
    281317msgstr "" 
    282318 
    283 #: index.php:1581 
     319#: index.php:1937 
     320msgid "No matching items found." 
     321msgstr "" 
     322 
     323#: index.php:1940 
     324msgid "Show" 
     325msgstr "" 
     326 
     327#: index.php:1946 
    284328msgid "Loading..." 
    285329msgstr "" 
    286330 
    287 #: index.php:1583 
    288 msgid "No matching items found." 
    289 msgstr "" 
    290  
    291 #: index.php:1586 
    292 msgid "Show" 
    293 msgstr "" 
    294  
    295 #: index.php:1605 
     331#: index.php:1965 
    296332msgid "No history items found." 
    297333msgstr "" 
    298334 
    299 #: index.php:1606 
     335#: index.php:1966 
    300336msgid "" 
    301337"Please note that Simple History only records things that happen after this " 
     
    303339msgstr "" 
    304340 
    305 #: index.php:1619 
     341#: index.php:1979 
    306342msgid "General Settings" 
    307343msgstr "" 
    308344 
    309 #: index.php:1620 
     345#: index.php:1980 
    310346msgid "Writing Settings" 
    311347msgstr "" 
    312348 
    313 #: index.php:1621 
     349#: index.php:1981 
    314350msgid "Reading Settings" 
    315351msgstr "" 
    316352 
    317 #: index.php:1622 
     353#: index.php:1982 
    318354msgid "Discussion Settings" 
    319355msgstr "" 
    320356 
    321 #: index.php:1623 
     357#: index.php:1983 
    322358msgid "Media Settings" 
    323359msgstr "" 
    324360 
    325 #: index.php:1624 
     361#: index.php:1984 
    326362msgid "Privacy Settings" 
    327363msgstr "" 
    328364 
    329 #: index.php:1640 
     365#: index.php:2000 
    330366msgid "Permalink Settings" 
    331367msgstr "" 
     368 
     369#: simple-history-extender/class.simple-history-extend.php:68 
     370msgid "Log events for the %s plugin." 
     371msgstr "" 
     372 
     373#: simple-history-extender/class.simple-history-extend.php:69 
     374msgid "Log events for %s." 
     375msgstr "" 
     376 
     377#: simple-history-extender/class.simple-history-extend.php:93 
     378msgid "unmarked as spam" 
     379msgstr "" 
     380 
     381#: simple-history-extender/class.simple-history-extend.php:96 
     382msgid "submitted" 
     383msgstr "" 
     384 
     385#: simple-history-extender/class.simple-history-extend.php:150 
     386msgid "The %s module logs the following events:" 
     387msgstr "" 
     388 
     389#: simple-history-extender/class.simple-history-extend.php:165 
     390msgid "The %s module does not support the following events:" 
     391msgstr "" 
     392 
     393#: simple-history-extender/class.simple-history-extend.php:263 
     394msgid "User" 
     395msgstr "" 
     396 
     397#: simple-history-extender/modules/bbpress.php:28 
     398msgid "BBPress" 
     399msgstr "" 
     400 
     401#: simple-history-extender/modules/bbpress.php:32 
     402msgid "Creating, editing and deleting a forum, topic, reply." 
     403msgstr "" 
     404 
     405#: simple-history-extender/modules/bbpress.php:33 
     406msgid "Setting the type of a forum to category or forum." 
     407msgstr "" 
     408 
     409#: simple-history-extender/modules/bbpress.php:34 
     410msgid "Setting the status of a forum, topic to open or closed." 
     411msgstr "" 
     412 
     413#: simple-history-extender/modules/bbpress.php:35 
     414msgid "Setting the forum visibility to public, private or hidden." 
     415msgstr "" 
     416 
     417#: simple-history-extender/modules/bbpress.php:36 
     418msgid "Trashing and untrashing a forum, topic, reply." 
     419msgstr "" 
     420 
     421#: simple-history-extender/modules/bbpress.php:37 
     422msgid "Marking and unmarking a topic, reply as spam." 
     423msgstr "" 
     424 
     425#: simple-history-extender/modules/bbpress.php:38 
     426msgid "Marking and unmarking a topic as sticky." 
     427msgstr "" 
     428 
     429#: simple-history-extender/modules/bbpress.php:39 
     430msgid "Merging and splitting a topic." 
     431msgstr "" 
     432 
     433#: simple-history-extender/modules/bbpress.php:40 
     434msgid "Updating, merging and deleting a topic tag." 
     435msgstr "" 
     436 
     437#: simple-history-extender/modules/bbpress.php:41 
     438msgid "A user (un)favoriting and (un)subscribing to a topic." 
     439msgstr "" 
     440 
     441#: simple-history-extender/modules/bbpress.php:42 
     442msgid "A user saving his/her profile." 
     443msgstr "" 
     444 
     445#: simple-history-extender/modules/bbpress.php:53 
     446msgid "closed" 
     447msgstr "" 
     448 
     449#: simple-history-extender/modules/bbpress.php:54 
     450msgid "opened" 
     451msgstr "" 
     452 
     453#: simple-history-extender/modules/bbpress.php:55 
     454msgid "marked as sticky" 
     455msgstr "" 
     456 
     457#: simple-history-extender/modules/bbpress.php:56 
     458msgid "marked as super sticky" 
     459msgstr "" 
     460 
     461#: simple-history-extender/modules/bbpress.php:57 
     462msgid "unmarked as sticky" 
     463msgstr "" 
     464 
     465#: simple-history-extender/modules/bbpress.php:58 
     466msgid "set to category type" 
     467msgstr "" 
     468 
     469#: simple-history-extender/modules/bbpress.php:59 
     470msgid "set to forum type" 
     471msgstr "" 
     472 
     473#: simple-history-extender/modules/bbpress.php:60 
     474msgid "set to public" 
     475msgstr "" 
     476 
     477#: simple-history-extender/modules/bbpress.php:61 
     478msgid "set to private" 
     479msgstr "" 
     480 
     481#: simple-history-extender/modules/bbpress.php:62 
     482msgid "set to hidden" 
     483msgstr "" 
     484 
     485#: simple-history-extender/modules/bbpress.php:63 
     486msgid "in forum %s merged into %s" 
     487msgstr "" 
     488 
     489#: simple-history-extender/modules/bbpress.php:64 
     490msgid "in forum %s split from reply %s by %s into %s in forum %s" 
     491msgstr "" 
     492 
     493#: simple-history-extender/modules/bbpress.php:131 
     494msgid "Forum" 
     495msgstr "" 
     496 
     497#: simple-history-extender/modules/bbpress.php:141 
     498msgid "Topic" 
     499msgstr "" 
     500 
     501#: simple-history-extender/modules/bbpress.php:150 
     502msgid "Topic Tag" 
     503msgstr "" 
     504 
     505#: simple-history-extender/modules/bbpress.php:161 
     506msgid "by %s" 
     507msgstr "" 
     508 
     509#: simple-history-extender/modules/bbpress.php:162 
     510msgid "Reply" 
     511msgstr "" 
     512 
     513#: simple-history-extender/modules/bbpress.php:174 
     514msgid "as child of %s" 
     515msgstr "" 
     516 
     517#: simple-history-extender/modules/bbpress.php:235 
     518#: simple-history-extender/modules/bbpress.php:245 
     519msgid "in forum %s" 
     520msgstr "" 
     521 
     522#: simple-history-extender/modules/bbpress.php:358 
     523msgid "favorited" 
     524msgstr "" 
     525 
     526#: simple-history-extender/modules/bbpress.php:362 
     527msgid "unfavorited" 
     528msgstr "" 
     529 
     530#: simple-history-extender/modules/bbpress.php:366 
     531msgid "subscribed" 
     532msgstr "" 
     533 
     534#: simple-history-extender/modules/bbpress.php:370 
     535msgid "unsubscribed" 
     536msgstr "" 
     537 
     538#: simple-history-extender/modules/bbpress.php:374 
     539msgid "profile updated" 
     540msgstr "" 
     541 
     542#: simple-history-extender/modules/bbpress.php:378 
     543msgid "registered" 
     544msgstr "" 
     545 
     546#: simple-history-extender/modules/bbpress.php:390 
     547msgid "changed forum role to %s" 
     548msgstr "" 
     549 
     550#: simple-history-extender/modules/bbpress.php:390 
     551msgid "none" 
     552msgstr "" 
     553 
     554#: simple-history-extender/modules/gravityforms.php:28 
     555msgid "Gravity Forms" 
     556msgstr "" 
     557 
     558#: simple-history-extender/modules/gravityforms.php:32 
     559msgid "Creating, editing and deleting a form." 
     560msgstr "" 
     561 
     562#: simple-history-extender/modules/gravityforms.php:33 
     563msgid "Deleting a field from an existing form." 
     564msgstr "" 
     565 
     566#: simple-history-extender/modules/gravityforms.php:34 
     567msgid "Submitting, editing and deleting an entry." 
     568msgstr "" 
     569 
     570#: simple-history-extender/modules/gravityforms.php:35 
     571msgid "Changing the status of an entry, including read/unread and star/unstar." 
     572msgstr "" 
     573 
     574#: simple-history-extender/modules/gravityforms.php:38 
     575msgid "Duplicating a form." 
     576msgstr "" 
     577 
     578#: simple-history-extender/modules/gravityforms.php:39 
     579msgid "Setting a form to active/inactive." 
     580msgstr "" 
     581 
     582#: simple-history-extender/modules/gravityforms.php:48 
     583msgid "starred" 
     584msgstr "" 
     585 
     586#: simple-history-extender/modules/gravityforms.php:49 
     587msgid "unstarred" 
     588msgstr "" 
     589 
     590#: simple-history-extender/modules/gravityforms.php:50 
     591msgid "marked as read" 
     592msgstr "" 
     593 
     594#: simple-history-extender/modules/gravityforms.php:51 
     595msgid "marked as unread" 
     596msgstr "" 
     597 
     598#: simple-history-extender/modules/gravityforms.php:110 
     599msgid "from %s" 
     600msgstr "" 
     601 
     602#: simple-history-extender/modules/gravityforms.php:112 
     603msgid "from unknown" 
     604msgstr "" 
     605 
     606#: simple-history-extender/modules/gravityforms.php:120 
     607msgid "Form" 
     608msgstr "" 
     609 
     610#: simple-history-extender/modules/gravityforms.php:129 
     611msgid "Form entry" 
     612msgstr "" 
     613 
     614#: simple-history-extender/modules/gravityforms.php:150 
     615msgid "without entries deleted" 
     616msgstr "" 
     617 
     618#: simple-history-extender/modules/gravityforms.php:151 
     619msgid "with %d entries deleted" 
     620msgstr "" 
     621 
     622#: simple-history-extender/modules/gravityforms.php:160 
     623msgid "field %s deleted" 
     624msgstr "" 
     625 
     626#: simple-history-extender/modules/gravityforms.php:201 
     627msgid "restored" 
     628msgstr "" 
     629 
     630#: simple-history-extender/modules/gravityforms.php:206 
     631msgid "changed status" 
     632msgstr "" 
     633 
     634#: simple-history-extender/modules/widgets.php:25 
     635msgid "Widgets" 
     636msgstr "" 
     637 
     638#: simple-history-extender/modules/widgets.php:27 
     639msgid "Log events for the Widgets section of your WP install." 
     640msgstr "" 
     641 
     642#: simple-history-extender/modules/widgets.php:30 
     643msgid "Adding, updating and deleting widgets in/from a sidebar." 
     644msgstr "" 
     645 
     646#: simple-history-extender/modules/widgets.php:33 
     647msgid "Moving widgets between sidebars." 
     648msgstr "" 
     649 
     650#: simple-history-extender/modules/widgets.php:34 
     651msgid "Setting a widget to active/inactive." 
     652msgstr "" 
     653 
     654#: simple-history-extender/modules/widgets.php:86 
     655msgid "removed from sidebar %s" 
     656msgstr "" 
     657 
     658#: simple-history-extender/modules/widgets.php:88 
     659msgid "updated in sidebar %s" 
     660msgstr "" 
     661 
     662#: simple-history-extender/modules/widgets.php:90 
     663msgid "added to sidebar %s" 
     664msgstr "" 
     665 
     666#: simple-history-extender/modules/widgets.php:95 
     667msgid "Widget" 
     668msgstr "" 
     669 
     670#: simple-history-extender/simple-history-extender.php:139 
     671msgid "Settings" 
     672msgstr "" 
     673 
     674#: simple-history-extender/simple-history-extender.php:162 
     675msgid "" 
     676"The Simple History Extender plugin was deactivated because the Simple " 
     677"History plugin was not found installed or active." 
     678msgstr "" 
     679 
     680#: simple-history-extender/simple-history-extender.php:163 
     681msgid "The Simple History Extender plugin was deactivated." 
     682msgstr "" 
     683 
     684#: simple-history-extender/simple-history-extender.php:167 
     685msgid "Return" 
     686msgstr "" 
     687 
     688#: simple-history-extender/simple-history-extender.php:226 
     689msgid "Simple History Extender Modules" 
     690msgstr "" 
     691 
     692#: simple-history-extender/simple-history-extender.php:236 
     693msgid "" 
     694"Activate or deactivate the events you want to log. Read the Help tab if you " 
     695"want to know which actions are supported and which aren't." 
     696msgstr "" 
     697 
     698#: simple-history-extender/simple-history-extender.php:275 
     699msgid "Simple History Extender Module" 
     700msgstr "" 
  • simple-history/tags/1.3/readme.txt

    r701396 r714353  
    55Requires at least: 3.5.1 
    66Tested up to: 3.5.1 
    7 Stable tag: 1.2 
     7Stable tag: 1.3 
    88 
    99View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more. 
     
    2424* **User profiles** - info about added, updated or removed users 
    2525* **User logins** - see when a user login & logut 
     26* **Failed user logins** - see when someone has tried to log in, but failed. The log will then include ip address of the possible hacker. 
    2627* **bbPress** - view changes to forums and topics and view user changes 
    2728* **Gravity Forms** - see who created, edited or deleted a form, field, or entry 
     
    6364    simple_history_add(array( 
    6465        "object_type" => "Email", 
    65         "action" => "sent", 
    66         "object_name" => "Hi there" 
     66        "object_name" => "Hi there", 
     67        "action" => "was sent" 
    6768    )); 
    6869 
     
    7273    # Will show the history item "Starship USS Enterprise repaired" 
    7374    simple_history_add("action=repaired&object_type=Starship&object_name=USS Enterprise"); 
    74      
     75 
     76    # Log with some extra details about the email 
     77    simple_history_add(array( 
     78        "object_type" => "Email", 
     79        "object_name" => "Hi there", 
     80        "action" => "was sent", 
     81        "description" => "The database query to generate the email took .3 seconds. This is email number 4 that is sent to this user" 
     82    )); 
     83 
    7584?> 
    7685` 
     
    147156== Screenshots == 
    148157 
    149 1. Simple History showing som recent changes to my posts, users and attachments. 
     1581. Simple History showing som recent changes to my posts, users and attachments. Also showing several failed login attempts to one of my users. 
    150159 
    1511602. Simple History settings. Choose to show the plugin on your dashboard, or as a separately page. Or both. Or none, since you can choose 
     
    1541633. The RSS feed with changes, as shown in Firefox. 
    155164 
    156 4. Widgets can be tracked too! 
    157  
    158165 
    159166== Changelog == 
     167 
     168= 1.3 = 
     169- Added: history events can store text description with a more detailed explanation of the history item 
     170- Added: now logs failed login attempts for existing username. Uses the new text description to store more info, for example user agent and remote ip address (REMOTE_ADDR) 
     171- Fixed: box did not change height when clicking on occasions 
     172- Fixed: use on() instead of live() in JavaScript 
    160173 
    161174= 1.2 = 
  • simple-history/tags/1.3/scripts.js

    r701396 r714353  
    1919 
    2020        // so wrapper does not collapse when loading new items 
    21         elms.ol_wrapper.height( elms.ol_wrapper.height() ); 
     21        //elms.ol_wrapper.height( elms.ol_wrapper.height() ); 
     22        elms.ol_wrapper.css("max-height", elms.ol_wrapper.height() ); 
    2223 
    2324        addListeners(); 
    2425 
    2526        elms.wrap.addClass("simple-history-is-ready simple-history-has-items"); 
     27 
     28    } 
     29 
     30    function make_wrapper_expandable() { 
     31        elms.ol_wrapper.css("max-height", "1000px"); 
    2632    } 
    2733 
     
    5864 
    5965        // show occasions 
    60         $("a.simple-history-occasion-show").live("click", function(e) { 
    61             $(this).closest("li").find("ul.simple-history-occasions").toggle("fast"); 
     66        $(document).on("click", "a.simple-history-occasion-show", function(e) { 
     67 
     68            $(this).closest("li").find("ul.simple-history-occasions").toggle(); 
     69 
     70            make_wrapper_expandable(); 
     71 
    6272            e.preventDefault(); 
     73 
     74        }); 
     75 
     76        // show details for main entry 
     77        $(document).on("click", ".simple-history-item-description-toggler", function(e) { 
     78            e.preventDefault(); 
     79            var self = $(this); 
     80            make_wrapper_expandable(); 
     81            self.closest("li").toggleClass("simple-history-item-description-wrap-is-open"); 
     82        }); 
     83 
     84        // show details for occasions 
     85        $(document).on("click", ".simple-history-occasions-details-toggle", function(e) { 
     86            e.preventDefault(); 
     87            var self = $(this); 
     88            make_wrapper_expandable(); 
     89            self.closest("li").toggleClass("simple-history-occasions-one-description-is-open"); 
    6390        }); 
    6491 
     
    116143// click on filter-link/change value is filter dropdowns = load new via ajax 
    117144// begin at position 0 unless click on pagination then check pagination page 
    118 jQuery("select.simple-history-filter, .simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a").live("click change", function(e, extraParams) { 
     145//jQuery("select.simple-history-filter, .simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a").live("click change", function(e, extraParams) { 
     146jQuery(document).on("click change", "select.simple-history-filter, .simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a", function(e, extraParams) { 
    119147 
    120148    var $t = jQuery(this), 
     
    191219 
    192220    simple_history_jqXHR = jQuery.post(ajaxurl, data, function(data, textStatus, XMLHttpRequest){ 
    193          
     221 
    194222        // If no more can be loaded show message about that 
    195223        if (data.error == "noMoreItems") { 
    196              
     224 
    197225            jQuery(".simple-history-ol-wrapper").height("auto"); 
    198226            $simple_history_wrap.removeClass("simple-history-has-items simple-history-is-loading"); 
     227            $simple_history_wrap.addClass("simple-history-no-items-found"); 
    199228 
    200229            $displaying_num.html(0); 
     
    204233 
    205234            // Items found, add and show 
     235            $simple_history_wrap.removeClass("simple-history-is-loading simple-history-no-items-found"); 
    206236 
    207237            // update number of existing items and total pages 
     
    212242 
    213243            // set wrapper to the height required to show items 
    214             $wrapper.height( $ol.height() ); 
     244            //$wrapper.height( $ol.height() ); 
     245            $wrapper.css( "max-height", $ol.height() ); 
    215246            $simple_history_wrap.removeClass("simple-history-is-loading"); 
    216247 
  • simple-history/tags/1.3/styles.css

    r701381 r714353  
    5555ol.simple-history .second { 
    5656    color: #999; 
     57    margin-top: .5em; 
    5758} 
    5859 
     
    6061    margin-top: .5em; 
    6162} 
    62 ol.simple-history .third ul { 
     63/*ol.simple-history .third ul { 
    6364    margin-top: .5em; 
    6465} 
    65  
     66*/ 
    6667.simple-history-who-avatar { 
    6768    position: absolute; 
     
    124125} 
    125126 
     127.simple-history-item-description-wrap { 
     128    margin: 0.5em 0; 
     129} 
     130 
     131 
     132.simple-history-item-description-toggler { 
     133    border-left: 1px solid #bbb; 
     134    padding-left: .75em; 
     135    margin-left: .75em; 
     136    line-height: 1; 
     137} 
     138 
     139.simple-history-item-description-toggler:before { 
     140    /*content: "+ ";*/ 
     141} 
     142 
     143.simple-history-action-description, 
     144.simple-history-occasions-one-action-description { 
     145    margin: .75em 0 .75em .5ex; 
     146    line-height: 1.4; 
     147    display: none; 
     148    background-color: #ddd; 
     149    padding: .5em; 
     150} 
     151 
     152.simple-history-item-description-wrap-is-open .simple-history-item-description-toggler:before { 
     153    /*content: "- ";*/ 
     154} 
     155 
     156.simple-history-item-description-wrap-is-open .simple-history-action-description{ 
     157    display: block; 
     158} 
     159 
     160.simple-history-occasions-details-toggle { 
     161    margin-left: .75em; 
     162    padding-left: .75em; 
     163    border-left: 1px solid #bbb; 
     164} 
     165 
     166 
     167.simple-history-occasions-one-description-is-open .simple-history-occasions-one-action-description { 
     168    display: block; 
     169    margin-left: 2em; 
     170} 
     171 
     172 
     173.simple-history-occasions-one-action-description { 
     174    display: none; 
     175} 
     176 
     177.simple-history-occasions-details-toggle 
    126178 
    127179.simple-history-title { 
     
    139191 
    140192ul.simple-history-occasions { 
    141     margin: 0 0 0 1em; 
     193    margin: 1em 0 0 1em; 
    142194    padding: 0; 
    143195    list-style-type: none; 
    144     color: #999999; 
     196    color: #999; 
    145197} 
    146198ul.simple-history-occasions li { 
    147     margin: 0; 
     199    margin: .5em 0; 
    148200    padding: 0; 
    149201    line-height: 1.5; 
     202} 
     203 
     204.simple-history-rss-feed-dashboard { 
     205    display: none; 
     206} 
     207 
     208#simple_history_dashboard_widget .simple-history-rss-feed-dashboard { 
     209    position: absolute; 
     210    bottom: 6px; 
     211    right: 5px; 
     212    margin: 0; 
     213    display: block; 
     214} 
     215 
     216.simple-history-rss-feed-dashboard a, 
     217.simple-history-rss-feed-page span { 
     218    background: transparent url(./img/ui-icons_888888_256x240.png) no-repeat -17px -176px; 
     219    display: block; 
     220    width: 16px; 
     221    height: 16px; 
     222    text-indent: -99999px; 
     223    direction: ltr; 
     224} 
     225 
     226#simple_history_dashboard_widget .simple-history-rss-feed-page { 
     227    display: none; 
     228} 
     229 
     230.dashboard_page_simple_history_page .wrap { 
     231    position: relative; 
     232} 
     233.simple-history-rss-feed-page { 
     234    display: block; 
     235    position: absolute; 
     236    right: 0; 
     237    bottom: -3px; 
     238} 
     239 
     240.rtl .simple-history-rss-feed-page { 
     241    right: auto; 
     242    left: 0; 
     243} 
     244 
     245.simple-history-rss-feed-page span { 
     246    float: left; 
     247} 
     248 
     249.simple-history-settings-page-updated { 
     250    font-weight: bold; 
     251    margin: 5px 0 15px; 
     252    background-color: #FFFFE0; 
     253    border: 1px solid #E6DB55; 
     254} 
     255.simple-history-settings-page-updated p { 
     256    margin: 0.5em !important; 
     257} 
     258.simple-history-filter-search input[type=button] { 
     259    cursor: pointer; 
     260} 
     261 
     262.simple-history-tablenav { 
     263    visibility: hidden; 
     264} 
     265.simple-history-has-items .simple-history-tablenav { 
     266    visibility: visible; 
    150267} 
    151268 
     
    155272    border: 1px solid #E6DB55; 
    156273    font-weight: bold; 
    157 } 
    158  
    159 .simple-history-rss-feed-dashboard { 
    160     display: none; 
    161 } 
    162  
    163 #simple_history_dashboard_widget .simple-history-rss-feed-dashboard { 
    164     position: absolute; 
    165     bottom: 6px; 
    166     right: 5px; 
    167     margin: 0; 
    168     display: block; 
    169 } 
    170  
    171 .simple-history-rss-feed-dashboard a, 
    172 .simple-history-rss-feed-page span { 
    173     background: transparent url(./img/ui-icons_888888_256x240.png) no-repeat -17px -176px; 
    174     display: block; 
    175     width: 16px; 
    176     height: 16px; 
    177     text-indent: -99999px; 
    178     direction: ltr; 
    179 } 
    180  
    181 #simple_history_dashboard_widget .simple-history-rss-feed-page { 
    182     display: none; 
    183 } 
    184  
    185 .dashboard_page_simple_history_page .wrap { 
    186     position: relative; 
    187 } 
    188 .simple-history-rss-feed-page { 
    189     display: block; 
    190     position: absolute; 
    191     right: 0; 
    192     bottom: -3px; 
    193 } 
    194  
    195 .rtl .simple-history-rss-feed-page { 
    196     right: auto; 
    197     left: 0; 
    198 } 
    199  
    200 .simple-history-rss-feed-page span { 
    201     float: left; 
    202 } 
    203  
    204 .simple-history-settings-page-updated { 
    205     font-weight: bold; 
    206     margin: 5px 0 15px; 
    207     background-color: #FFFFE0; 
    208     border: 1px solid #E6DB55; 
    209 } 
    210 .simple-history-settings-page-updated p { 
    211     margin: 0.5em !important; 
    212 } 
    213 .simple-history-filter-search input[type=button] { 
    214     cursor: pointer; 
    215 } 
    216  
    217 .simple-history-tablenav { 
    218     visibility: hidden; 
    219 } 
    220 .simple-history-has-items .simple-history-tablenav { 
    221     visibility: visible; 
     274    display: none; 
     275} 
     276 
     277.simple-history-no-items-found .simple-history-no-more-items { 
     278    display: block; 
     279} 
     280 
     281.simple-history-no-items-found  .simple-history-ol-wrapper { 
     282    display: none; 
    222283} 
    223284 
     
    290351} 
    291352 
    292  
    293353.simple-history-ol-wrapper { 
    294354    overflow: hidden; 
     355} 
     356 
     357.simple-history-ol-wrapper { 
     358    /*overflow: visible;*/ 
    295359} 
    296360 
     
    298362.simple-history-ol-wrapper, 
    299363ol.simple-history, 
    300 .simple-history-tablenav 
    301  { 
     364.simple-history-tablenav { 
    302365    transition: all .15s ease-out; 
     366} 
     367 
     368.simple-history-ol-wrapper { 
     369    xtransition: max-height .15s ease-out;   
    303370} 
    304371 
  • simple-history/trunk/index.php

    r701396 r714353  
    44Plugin URI: http://eskapism.se/code-playground/simple-history/ 
    55Description: Get a log/history/audit log/version history of the changes made by users in WordPress. 
    6 Version: 1.2 
     6Version: 1.3 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    2828load_plugin_textdomain('simple-history', false, "/simple-history/languages"); 
    2929 
    30 define( "SIMPLE_HISTORY_VERSION", "1.2"); 
    31 define( "SIMPLE_HISTORY_NAME", "Simple History");  
     30define( "SIMPLE_HISTORY_VERSION", "1.3"); 
     31define( "SIMPLE_HISTORY_NAME", "Simple History"); 
    3232 
    3333// Find the plugin directory URL 
     
    250250        // DB version is 1, upgrade to 2 
    251251        if ( 1 == intval($db_version) ) { 
    252              
    253             // Add column for free text 
    254             // require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 
    255             // update_option("simple_history_db_version", 2); 
     252 
     253            // Add column for action description in non-translateable free text 
     254            $sql = "ALTER TABLE {$table_name} ADD COLUMN action_description longtext"; 
     255            mysql_query($sql); 
     256 
     257            simple_history_add("action=" . 'upgraded it\'s database' . "&object_type=plugin&object_name=" . SIMPLE_HISTORY_NAME . "&description=Database version is now version 2"); 
     258            update_option("simple_history_db_version", 2); 
    256259 
    257260        } 
     
    302305    } 
    303306 
     307    /** 
     308     * Log failed login attempt to username that exists 
     309     */ 
     310    function log_wp_authenticate_user($user, $password) { 
     311 
     312        if ( ! wp_check_password($password, $user->user_pass, $user->ID) ) { 
     313             
     314            // call __() to make translation exist 
     315            __("failed to log in because they entered the wrong password", "simple-history"); 
     316 
     317            $description = ""; 
     318            $description .= "HTTP_USER_AGENT: " . $_SERVER["HTTP_USER_AGENT"]; 
     319            $description .= "\nHTTP_REFERER: " . $_SERVER["HTTP_REFERER"]; 
     320            $description .= "\nREMOTE_ADDR: " . $_SERVER["REMOTE_ADDR"]; 
     321 
     322            $args = array( 
     323                        "object_type" => "user", 
     324                        "object_name" => $user->user_login, 
     325                        "action" => "failed to log in because they entered the wrong password", 
     326                        "object_id" => $user->ID, 
     327                        "description" => $description 
     328                    ); 
     329             
     330            simple_history_add($args); 
     331 
     332        } 
     333 
     334        return $user; 
     335 
     336    } 
     337 
     338    /** 
     339     * Init for both public and admin 
     340     */ 
    304341    function init() { 
    305342     
    306         // users and stuff 
     343        // user login and logout 
    307344        add_action("wp_login", "simple_history_wp_login"); 
    308345        add_action("wp_logout", "simple_history_wp_logout"); 
     346 
     347        // user failed login attempt to username that exists 
     348        #$user = apply_filters('wp_authenticate_user', $user, $password); 
     349        add_action("wp_authenticate_user", array($this, "log_wp_authenticate_user"), 10, 2); 
     350 
     351        // user profile page modifications 
    309352        add_action("delete_user", "simple_history_delete_user"); 
    310353        add_action("user_register", "simple_history_user_register"); 
     
    441484            $user = $user_obj->user_login; 
    442485        }; 
    443      
     486 
    444487        // page to show. 1 = first page. 
    445488        $page = 0; 
     
    947990        "object_name" => null, 
    948991        "user_id" => null, 
     992        "description" => null 
    949993    ); 
    950994 
     
    952996 
    953997    $action = mysql_real_escape_string($args["action"]); 
    954     $object_type = $args["object_type"]; 
    955     $object_subtype = $args["object_subtype"]; 
    956     $object_id = $args["object_id"]; 
     998    $object_type = mysql_real_escape_string($args["object_type"]); 
     999    $object_subtype = mysql_real_escape_string($args["object_subtype"]); 
     1000    $object_id = mysql_real_escape_string($args["object_id"]); 
    9571001    $object_name = mysql_real_escape_string($args["object_name"]); 
    9581002    $user_id = $args["user_id"]; 
     1003    $description = mysql_real_escape_string($args["description"]); 
    9591004 
    9601005    global $wpdb; 
     
    9661011        $current_user_id = (int) $current_user->ID; 
    9671012    } 
    968      
     1013 
    9691014    // date, store at utc or local time 
    9701015    // anything is better than now() anyway! 
     
    9731018    // local time is: date_i18n($timezone_format)); 
    9741019    $localtime = current_time("mysql"); 
    975     $sql = "INSERT INTO {$tableprefix}simple_history SET date = '$localtime', action = '$action', object_type = '$object_type', object_subtype = '$object_subtype', user_id = '$current_user_id', object_id = '$object_id', object_name = '$object_name'"; 
     1020    $sql = " 
     1021        INSERT INTO {$tableprefix}simple_history  
     1022        SET  
     1023            date = '$localtime',  
     1024            action = '$action',  
     1025            object_type = '$object_type',  
     1026            object_subtype = '$object_subtype',  
     1027            user_id = '$current_user_id',  
     1028            object_id = '$object_id',  
     1029            object_name = '$object_name', 
     1030            action_description = '$description' 
     1031        "; 
    9761032    $wpdb->query($sql); 
    9771033} 
     
    15151571                    } else if (strpos(strtolower($one_row->action), $search) !== FALSE) { 
    15161572                        $do_add = TRUE; 
     1573                    } else if (strpos(strtolower($one_row->action_description), $search) !== FALSE) { 
     1574                        $do_add = TRUE; 
    15171575                    } 
    15181576                } else { 
     
    15791637     
    15801638    $arr_events = simple_history_get_items_array($args); 
     1639    #sf_d($arr_events); 
    15811640    #sf_d($args);sf_d($arr_events); 
    15821641    $defaults = array( 
     
    16091668            $user_id = $one_row->user_id; 
    16101669            $action = $one_row->action; 
     1670            $action_description = $one_row->action_description; 
    16111671            $occasions = $one_row->occasions; 
    16121672            $num_occasions = sizeof($occasions); 
     
    18151875                } 
    18161876 
    1817                 /* 
    1818                 $user_avatar = get_avatar($user->user_email, "50");  
    1819                 if ($user_link) { 
    1820                     $user_out .= "<a class='simple-history-attachment-thumbnail' href='$user_link'>$user_avatar</a>"; 
    1821                 } else { 
    1822                     $user_out .= "<span class='simple-history-attachment-thumbnail' href='$user_link'>$user_avatar</span>"; 
    1823                 } 
    1824                 */ 
    1825  
    18261877                $user_out .= " " . esc_html__($action, "simple-history"); 
    18271878                 
     
    18691920            $output .= $diff_str; 
    18701921            $output .= "<span class='when_detail'>".sprintf(__('%s at %s', 'simple-history'), $date_i18n_date, $date_i18n_time)."</span>"; 
     1922 
     1923            // action description 
     1924            if ( trim( $action_description ) )  { 
     1925                $output .= sprintf( 
     1926                    ' 
     1927                    <a href="#" class="simple-history-item-description-toggler">%2$s</a> 
     1928                    <div class="simple-history-item-description-wrap"> 
     1929                        <div class="simple-history-action-description">%1$s</div> 
     1930                    </div> 
     1931                    ', 
     1932                    nl2br( esc_attr( $action_description ) ), // 2 
     1933                    __("Details", "simple-history") // 2 
     1934                ); 
     1935            } 
    18711936             
    18721937            $output .= "</div>"; 
     
    18961961                    $output .= "<a class='simple-history-occasion-show' href='#'>$many_occasion</a>"; 
    18971962                } 
     1963                 
    18981964                $output .= "<ul class='simple-history-occasions hidden'>"; 
    18991965                foreach ($occasions as $one_occasion) { 
     1966                 
    19001967                    $output .= "<li>"; 
     1968                 
    19011969                    $date_i18n_date = date_i18n(get_option('date_format'), strtotime($one_occasion->date), $gmt=false); 
    19021970                    $date_i18n_time = date_i18n(get_option('time_format'), strtotime($one_occasion->date), $gmt=false);      
    1903                     $output .= sprintf( __('%s ago (%s at %s)', "simple-history"), human_time_diff(strtotime($one_occasion->date), $now), $date_i18n_date, $date_i18n_time ); 
     1971                 
     1972                    $output .= "<div class='simple-history-occasions-one-when'>"; 
     1973                    $output .= sprintf( 
     1974                            __('%s ago (%s at %s)', "simple-history"),  
     1975                            human_time_diff(strtotime($one_occasion->date), $now),  
     1976                            $date_i18n_date,  
     1977                            $date_i18n_time 
     1978                        ); 
     1979                     
     1980                    if ( trim( $one_occasion->action_description ) )  { 
     1981                        $output .= "<a href='#' class='simple-history-occasions-details-toggle'>" . __("Details", "simple-history") . "</a>"; 
     1982                    } 
     1983                     
     1984                    $output .= "</div>"; 
     1985 
     1986                    if ( trim( $one_occasion->action_description ) )  { 
     1987                        $output .= sprintf( 
     1988                            '<div class="simple-history-occasions-one-action-description">%1$s</div>', 
     1989                            nl2br( esc_attr( $one_occasion->action_description ) ) 
     1990                        ); 
     1991                    } 
     1992 
    19041993 
    19051994                    $output .= "</li>"; 
    19061995                } 
     1996 
    19071997                $output .= "</ul>"; 
     1998 
    19081999                $output .= "</div>"; 
    19092000            } 
     
    19462037 
    19472038            $output .= " 
    1948                 <p class='hidden simple-history-no-more-items'>$no_found</p>             
     2039                <p class='simple-history-no-more-items'>$no_found</p>            
    19492040                <p class='simple-history-rss-feed-dashboard'><a title='$view_rss' href='$view_rss_link'>$view_rss</a></p> 
    19502041                <p class='simple-history-rss-feed-page'><a title='$view_rss' href='$view_rss_link'><span></span>$view_rss</a></p> 
  • simple-history/trunk/readme.txt

    r701396 r714353  
    55Requires at least: 3.5.1 
    66Tested up to: 3.5.1 
    7 Stable tag: 1.2 
     7Stable tag: 1.3 
    88 
    99View changes made by users within WordPress. See who created a page, uploaded an attachment or approved an comment, and more. 
     
    2424* **User profiles** - info about added, updated or removed users 
    2525* **User logins** - see when a user login & logut 
     26* **Failed user logins** - see when someone has tried to log in, but failed. The log will then include ip address of the possible hacker. 
    2627* **bbPress** - view changes to forums and topics and view user changes 
    2728* **Gravity Forms** - see who created, edited or deleted a form, field, or entry 
     
    6364    simple_history_add(array( 
    6465        "object_type" => "Email", 
    65         "action" => "sent", 
    66         "object_name" => "Hi there" 
     66        "object_name" => "Hi there", 
     67        "action" => "was sent" 
    6768    )); 
    6869 
     
    7273    # Will show the history item "Starship USS Enterprise repaired" 
    7374    simple_history_add("action=repaired&object_type=Starship&object_name=USS Enterprise"); 
    74      
     75 
     76    # Log with some extra details about the email 
     77    simple_history_add(array( 
     78        "object_type" => "Email", 
     79        "object_name" => "Hi there", 
     80        "action" => "was sent", 
     81        "description" => "The database query to generate the email took .3 seconds. This is email number 4 that is sent to this user" 
     82    )); 
     83 
    7584?> 
    7685` 
     
    147156== Screenshots == 
    148157 
    149 1. Simple History showing som recent changes to my posts, users and attachments. 
     1581. Simple History showing som recent changes to my posts, users and attachments. Also showing several failed login attempts to one of my users. 
    150159 
    1511602. Simple History settings. Choose to show the plugin on your dashboard, or as a separately page. Or both. Or none, since you can choose 
     
    1541633. The RSS feed with changes, as shown in Firefox. 
    155164 
    156 4. Widgets can be tracked too! 
    157  
    158165 
    159166== Changelog == 
     167 
     168= 1.3 = 
     169- Added: history events can store text description with a more detailed explanation of the history item 
     170- Added: now logs failed login attempts for existing username. Uses the new text description to store more info, for example user agent and remote ip address (REMOTE_ADDR) 
     171- Fixed: box did not change height when clicking on occasions 
     172- Fixed: use on() instead of live() in JavaScript 
    160173 
    161174= 1.2 = 
  • simple-history/trunk/scripts.js

    r701396 r714353  
    1919 
    2020        // so wrapper does not collapse when loading new items 
    21         elms.ol_wrapper.height( elms.ol_wrapper.height() ); 
     21        //elms.ol_wrapper.height( elms.ol_wrapper.height() ); 
     22        elms.ol_wrapper.css("max-height", elms.ol_wrapper.height() ); 
    2223 
    2324        addListeners(); 
    2425 
    2526        elms.wrap.addClass("simple-history-is-ready simple-history-has-items"); 
     27 
     28    } 
     29 
     30    function make_wrapper_expandable() { 
     31        elms.ol_wrapper.css("max-height", "1000px"); 
    2632    } 
    2733 
     
    5864 
    5965        // show occasions 
    60         $("a.simple-history-occasion-show").live("click", function(e) { 
    61             $(this).closest("li").find("ul.simple-history-occasions").toggle("fast"); 
     66        $(document).on("click", "a.simple-history-occasion-show", function(e) { 
     67 
     68            $(this).closest("li").find("ul.simple-history-occasions").toggle(); 
     69 
     70            make_wrapper_expandable(); 
     71 
    6272            e.preventDefault(); 
     73 
     74        }); 
     75 
     76        // show details for main entry 
     77        $(document).on("click", ".simple-history-item-description-toggler", function(e) { 
     78            e.preventDefault(); 
     79            var self = $(this); 
     80            make_wrapper_expandable(); 
     81            self.closest("li").toggleClass("simple-history-item-description-wrap-is-open"); 
     82        }); 
     83 
     84        // show details for occasions 
     85        $(document).on("click", ".simple-history-occasions-details-toggle", function(e) { 
     86            e.preventDefault(); 
     87            var self = $(this); 
     88            make_wrapper_expandable(); 
     89            self.closest("li").toggleClass("simple-history-occasions-one-description-is-open"); 
    6390        }); 
    6491 
     
    116143// click on filter-link/change value is filter dropdowns = load new via ajax 
    117144// begin at position 0 unless click on pagination then check pagination page 
    118 jQuery("select.simple-history-filter, .simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a").live("click change", function(e, extraParams) { 
     145//jQuery("select.simple-history-filter, .simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a").live("click change", function(e, extraParams) { 
     146jQuery(document).on("click change", "select.simple-history-filter, .simple-history-filter a, .simple-history-filter input[type='button'], .simple-history-tablenav a", function(e, extraParams) { 
    119147 
    120148    var $t = jQuery(this), 
     
    191219 
    192220    simple_history_jqXHR = jQuery.post(ajaxurl, data, function(data, textStatus, XMLHttpRequest){ 
    193          
     221 
    194222        // If no more can be loaded show message about that 
    195223        if (data.error == "noMoreItems") { 
    196              
     224 
    197225            jQuery(".simple-history-ol-wrapper").height("auto"); 
    198226            $simple_history_wrap.removeClass("simple-history-has-items simple-history-is-loading"); 
     227            $simple_history_wrap.addClass("simple-history-no-items-found"); 
    199228 
    200229            $displaying_num.html(0); 
     
    204233 
    205234            // Items found, add and show 
     235            $simple_history_wrap.removeClass("simple-history-is-loading simple-history-no-items-found"); 
    206236 
    207237            // update number of existing items and total pages 
     
    212242 
    213243            // set wrapper to the height required to show items 
    214             $wrapper.height( $ol.height() ); 
     244            //$wrapper.height( $ol.height() ); 
     245            $wrapper.css( "max-height", $ol.height() ); 
    215246            $simple_history_wrap.removeClass("simple-history-is-loading"); 
    216247 
  • simple-history/trunk/styles.css

    r701381 r714353  
    5555ol.simple-history .second { 
    5656    color: #999; 
     57    margin-top: .5em; 
    5758} 
    5859 
     
    6061    margin-top: .5em; 
    6162} 
    62 ol.simple-history .third ul { 
     63/*ol.simple-history .third ul { 
    6364    margin-top: .5em; 
    6465} 
    65  
     66*/ 
    6667.simple-history-who-avatar { 
    6768    position: absolute; 
     
    124125} 
    125126 
     127.simple-history-item-description-wrap { 
     128    margin: 0.5em 0; 
     129} 
     130 
     131 
     132.simple-history-item-description-toggler { 
     133    border-left: 1px solid #bbb; 
     134    padding-left: .75em; 
     135    margin-left: .75em; 
     136    line-height: 1; 
     137} 
     138 
     139.simple-history-item-description-toggler:before { 
     140    /*content: "+ ";*/ 
     141} 
     142 
     143.simple-history-action-description, 
     144.simple-history-occasions-one-action-description { 
     145    margin: .75em 0 .75em .5ex; 
     146    line-height: 1.4; 
     147    display: none; 
     148    background-color: #ddd; 
     149    padding: .5em; 
     150} 
     151 
     152.simple-history-item-description-wrap-is-open .simple-history-item-description-toggler:before { 
     153    /*content: "- ";*/ 
     154} 
     155 
     156.simple-history-item-description-wrap-is-open .simple-history-action-description{ 
     157    display: block; 
     158} 
     159 
     160.simple-history-occasions-details-toggle { 
     161    margin-left: .75em; 
     162    padding-left: .75em; 
     163    border-left: 1px solid #bbb; 
     164} 
     165 
     166 
     167.simple-history-occasions-one-description-is-open .simple-history-occasions-one-action-description { 
     168    display: block; 
     169    margin-left: 2em; 
     170} 
     171 
     172 
     173.simple-history-occasions-one-action-description { 
     174    display: none; 
     175} 
     176 
     177.simple-history-occasions-details-toggle 
    126178 
    127179.simple-history-title { 
     
    139191 
    140192ul.simple-history-occasions { 
    141     margin: 0 0 0 1em; 
     193    margin: 1em 0 0 1em; 
    142194    padding: 0; 
    143195    list-style-type: none; 
    144     color: #999999; 
     196    color: #999; 
    145197} 
    146198ul.simple-history-occasions li { 
    147     margin: 0; 
     199    margin: .5em 0; 
    148200    padding: 0; 
    149201    line-height: 1.5; 
     202} 
     203 
     204.simple-history-rss-feed-dashboard { 
     205    display: none; 
     206} 
     207 
     208#simple_history_dashboard_widget .simple-history-rss-feed-dashboard { 
     209    position: absolute; 
     210    bottom: 6px; 
     211    right: 5px; 
     212    margin: 0; 
     213    display: block; 
     214} 
     215 
     216.simple-history-rss-feed-dashboard a, 
     217.simple-history-rss-feed-page span { 
     218    background: transparent url(./img/ui-icons_888888_256x240.png) no-repeat -17px -176px; 
     219    display: block; 
     220    width: 16px; 
     221    height: 16px; 
     222    text-indent: -99999px; 
     223    direction: ltr; 
     224} 
     225 
     226#simple_history_dashboard_widget .simple-history-rss-feed-page { 
     227    display: none; 
     228} 
     229 
     230.dashboard_page_simple_history_page .wrap { 
     231    position: relative; 
     232} 
     233.simple-history-rss-feed-page { 
     234    display: block; 
     235    position: absolute; 
     236    right: 0; 
     237    bottom: -3px; 
     238} 
     239 
     240.rtl .simple-history-rss-feed-page { 
     241    right: auto; 
     242    left: 0; 
     243} 
     244 
     245.simple-history-rss-feed-page span { 
     246    float: left; 
     247} 
     248 
     249.simple-history-settings-page-updated { 
     250    font-weight: bold; 
     251    margin: 5px 0 15px; 
     252    background-color: #FFFFE0; 
     253    border: 1px solid #E6DB55; 
     254} 
     255.simple-history-settings-page-updated p { 
     256    margin: 0.5em !important; 
     257} 
     258.simple-history-filter-search input[type=button] { 
     259    cursor: pointer; 
     260} 
     261 
     262.simple-history-tablenav { 
     263    visibility: hidden; 
     264} 
     265.simple-history-has-items .simple-history-tablenav { 
     266    visibility: visible; 
    150267} 
    151268 
     
    155272    border: 1px solid #E6DB55; 
    156273    font-weight: bold; 
    157 } 
    158  
    159 .simple-history-rss-feed-dashboard { 
    160     display: none; 
    161 } 
    162  
    163 #simple_history_dashboard_widget .simple-history-rss-feed-dashboard { 
    164     position: absolute; 
    165     bottom: 6px; 
    166     right: 5px; 
    167     margin: 0; 
    168     display: block; 
    169 } 
    170  
    171 .simple-history-rss-feed-dashboard a, 
    172 .simple-history-rss-feed-page span { 
    173     background: transparent url(./img/ui-icons_888888_256x240.png) no-repeat -17px -176px; 
    174     display: block; 
    175     width: 16px; 
    176     height: 16px; 
    177     text-indent: -99999px; 
    178     direction: ltr; 
    179 } 
    180  
    181 #simple_history_dashboard_widget .simple-history-rss-feed-page { 
    182     display: none; 
    183 } 
    184  
    185 .dashboard_page_simple_history_page .wrap { 
    186     position: relative; 
    187 } 
    188 .simple-history-rss-feed-page { 
    189     display: block; 
    190     position: absolute; 
    191     right: 0; 
    192     bottom: -3px; 
    193 } 
    194  
    195 .rtl .simple-history-rss-feed-page { 
    196     right: auto; 
    197     left: 0; 
    198 } 
    199  
    200 .simple-history-rss-feed-page span { 
    201     float: left; 
    202 } 
    203  
    204 .simple-history-settings-page-updated { 
    205     font-weight: bold; 
    206     margin: 5px 0 15px; 
    207     background-color: #FFFFE0; 
    208     border: 1px solid #E6DB55; 
    209 } 
    210 .simple-history-settings-page-updated p { 
    211     margin: 0.5em !important; 
    212 } 
    213 .simple-history-filter-search input[type=button] { 
    214     cursor: pointer; 
    215 } 
    216  
    217 .simple-history-tablenav { 
    218     visibility: hidden; 
    219 } 
    220 .simple-history-has-items .simple-history-tablenav { 
    221     visibility: visible; 
     274    display: none; 
     275} 
     276 
     277.simple-history-no-items-found .simple-history-no-more-items { 
     278    display: block; 
     279} 
     280 
     281.simple-history-no-items-found  .simple-history-ol-wrapper { 
     282    display: none; 
    222283} 
    223284 
     
    290351} 
    291352 
    292  
    293353.simple-history-ol-wrapper { 
    294354    overflow: hidden; 
     355} 
     356 
     357.simple-history-ol-wrapper { 
     358    /*overflow: visible;*/ 
    295359} 
    296360 
     
    298362.simple-history-ol-wrapper, 
    299363ol.simple-history, 
    300 .simple-history-tablenav 
    301  { 
     364.simple-history-tablenav { 
    302365    transition: all .15s ease-out; 
     366} 
     367 
     368.simple-history-ol-wrapper { 
     369    xtransition: max-height .15s ease-out;   
    303370} 
    304371 
Note: See TracChangeset for help on using the changeset viewer.