Plugin Directory

Changeset 862311


Ignore:
Timestamp:
02/21/2014 12:14:18 PM (12 years ago)
Author:
kilozwo
Message:

published v1.0.7.
German translation error fixed

Location:
new-post-notification
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • new-post-notification/trunk/languages/npn_plugin-de_DE.po

    r809604 r862311  
    8484#@ npn_plugin
    8585msgid "You can deactivate the subscription in your"
    86 msgstr "Du kannst diese Benachrichtigungen deacktivieren: "
     86msgstr "Du kannst diese Benachrichtigungen deaktivieren: "
    8787
    8888#: npn_plugin.php:98
  • new-post-notification/trunk/npn_plugin.php

    r829663 r862311  
    44 * Plugin URI:  http://kilozwo.de/wordpress-new-post-notification-plugin
    55 * Description: Simply notifies users if a new post has been published. This is an addon for User-Access-Manager. Users will only be notified if they have access. Your subscribers can also decide which posts they would like to be noticed on.
    6  * Version:     1.0.6
     6 * Version:     1.0.7
    77 * Author:      Jan Eichhorn
    88 * Author URI:  http://kilozwo.de
     
    183183    if ( 'npn_mailnotify' == $column_name ){
    184184        $mailstatus = get_user_meta($user_id, 'npn_mailnotify');
    185         if ($mailstatus[0]=='1') {return __('active','npn_plugin');} else {return __('not active','npn_plugin');}
     185        $user_cats = get_user_meta($user->ID, 'npn_mailnotify_category');
     186        if ($mailstatus[0]=='1') {
     187        $user_cats = explode(',',$user_cats[0]);
     188        $out = '';
     189        foreach ($user_cats as $category){
     190          $out .= get_cat_name($category).', ';       
     191        }
     192        if ($out == ', ') {return __('All categories','npn_plugin');} else return $out;   
     193      }
     194      else
     195      {
     196        return __('not active','npn_plugin');
     197      }
    186198    }
    187199    return $value;
  • new-post-notification/trunk/readme.txt

    r829668 r862311  
    55Requires at least: 3.0.1
    66Tested up to: 3.8
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Simply notifies users if a new post has been published. This is an addon for User-Access-Manager. Users will only be notified if they have access.
     11Simply notifies users if a new post has been published. This can also be used as an addon for User-Access-Manager. Users will only be notified if they have access.
    1212
    1313== Description ==
     
    1515Simply notifies registered users if a new post has been published. If you use the User-Access-Manager (UAM) Plugin by GM_Alex, users will only be notified if they have access to the post. Notifies the admin if a user changes his subscription status. There is zero configuration. Available in English, German and Japan.
    1616
    17 The subscription to new posts is activated to new users be default. Based on the post category, users are able to choose which notifications they would like to receive. They can also deactivate all notifications.
     17The subscription to new posts is activated to new users by default. Based on the post category, users are able to choose which notifications they would like to receive. They can also deactivate all notifications.
    1818
    1919
     
    3030
    3131== Changelog ==
     32
     33= 1.0.7 =
     34* Error in German translation fixed
    3235
    3336= 1.0.6 =
Note: See TracChangeset for help on using the changeset viewer.