WordPress.org

Plugin Directory

Changeset 1672845


Ignore:
Timestamp:
06/07/17 21:30:51 (9 months ago)
Author:
themaster5_07
Message:

Version 2.51 Bug Fixes

Location:
wp-invites/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-invites/trunk/lang/wp-invites-ru_RU.po

    r1104959 r1672845  
    7676 
    7777#: ../wp-invites.php:268 
    78 msgid "Debug log will apear in html comments in the bottom of the page code" 
     78msgid "Debug log will appear in html comments in the bottom of the page code" 
    7979msgstr "Лог отладки появится в HTML комментариях внизу кода страницы" 
    8080 
     
    170170msgstr "Ошибка:" 
    171171 
    172 #: ../wp-invites.php:391 ../wp-invites.php:483 
     172#: ../wp-invites.php:391 ../wp-invites.php:485 
    173173msgid "Invite code" 
    174174msgstr "Код инвайта" 
     
    178178msgstr "Пожалуйста, введите код инвайта, полученный от владельца блога" 
    179179 
    180 #: ../wp-invites.php:410 ../wp-invites.php:412 ../wp-invites.php:414 
     180#: ../wp-invites.php:412 ../wp-invites.php:414 ../wp-invites.php:416 
    181181msgid "Wrong invite code" 
    182182msgstr "Код инвайта неверен" 
    183183 
    184 #: ../wp-invites.php:471 ../wp-invites.php:497 
     184#: ../wp-invites.php:473 ../wp-invites.php:499 
    185185msgid "No code assigned" 
    186186msgstr "Нет кода инвайта" 
    187187 
    188 #: ../wp-invites.php:501 
     188#: ../wp-invites.php:503 
    189189msgid "Invitation code" 
    190190msgstr "Инвайт код" 
  • wp-invites/trunk/readme.txt

    r1144404 r1672845  
    11=== WP-Invites === 
    22Author: Jehy 
    3 Tags: captcha,registration,user,admin,access,authenification,register 
     3Contributors: Jehy, themaster507 
     4Donate link: http://jehy.ru/articles/donate/ 
     5Tags: user,registration,authentication,register,access 
    46Requires at least: 4.0 
    5 Tested up to: 4.2 
    6 Stable tag: 2.50 
    7 Invites system for wordpress, wordpress MU and buddypress! 
     7Tested up to: 4.7.5 
     8Stable tag: 2.51 
     9License: GPLv2 or later 
     10License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     11 
     12Invites system for WordPress, (WordPress MU and BuddyPress - CURRENTLY BUGGY)! 
    813 
    914== Description == 
     
    1318 
    1419####Compatibility 
    15 This plugin is compatible with Wordpress 4, should be compatible with buddypress and may be compatible with wordpress MU. If you find any compatibility issues for current versions - feedback appreciated. 
     20This plugin is compatible with WordPress 4.7.5 and future compatibility for BuddyPress and WordPress multi-site networks are in development. If you find any compatibility issues for current versions - feedback appreciated. 
    1621 
    1722[Changelog](https://wordpress.org/plugins/wp-invites/changelog/). 
     
    2631 
    2732####Questions 
    28 If you have troubles with my plugin, need more details, or have suggestions - please visit [my blog](http://jehy.ru/articles/2009/02/09/wordpress-plugins/#comments) for more info. 
     33If you have troubles with my plugin, need more details, or have suggestions - please use the forum. For archive support please see [Jehy's blog](http://jehy.ru/articles/2009/02/09/wordpress-plugins/#comments) for more info. 
    2934 
    3035 
    3136####Please! 
    32 If you don't rate my plugin as 5/5 - please write why - and I will change plugin, add options and fix bugs. It's very unpleasant to see silient low rates.   
     37If you don't rate my plugin as 5/5 - please write why - and I will change plugin, add options and fix bugs. It's very unpleasant to see silent low rates.   
    3338If you don't understand what plugin does - also don't rate it ;) 
    3439 
    3540####Donate or help? 
    36 If you want to ensure the future development and support of this plugin, you can make donation [on this page](http://jehy.ru/articles/donate/) or just write about this plugin in your blog. 
     41If you want to ensure the future development and support of this plugin, you can make donation [to the author](http://jehy.ru/articles/donate/) or [to the active contributor via PayPal](https://paypal.me/AnthonyMaster/5) or just write about this plugin in your blog. 
    3742 
    3843 
     
    4247== Changelog == 
    4348 
    44 0.1 - First release   
    45 0.2 - Activation and language issues with wordpress MU fixed   
    46 0.3 - Updated to work with the latest BuddyPress system    
    47 0.4 - Defined str_split function for compatibility with PHP4    
    48 1.0 - Many different fixes, including usernames's replacing and error reporting    
    49 1.1 - Fixed broken compatibility mode for MySQL 4, added some error reporting     
    50 1.2 - Crytical upgrade for WP MU (not for simple wordpress), install as soon as possible.     
    51 1.3 - Fixed registration incompatibility issues.     
     492.51 - Corrected errors in script with array elements not set - *support now being maintained by themaster507* 
     502.50 - Code rewrite in Object oriented style, debug mode implemented, fixed error with user activation. 
     512.42,2.41 - Fix for BuddyPress. 
     522.40 - Many changes for admin area, added cool styling, improved some SQL queries. Also fixed localization issues. 
     532.30 - Fixed for WordPress 4.1, direct SQL replaced with $wpdb queries, added missing menu button. 
     542.21 - Fix for simple WordPress & BuddyPress combo errors. Hope it works. 
     552.2 - Internal release 
     562.1 - Several fixes for simple WordPress. 
     572.0 - Absolutely new version, with many functions, compatible with newest WordPress, WordPress mu and BuddyPress. 
    5258 
    53 2.0 - Absolutely new version, with many functions, compatible with newest wordpress, wordpress mu and buddypress.     
    54 2.1 - Several fixes for simple wordpress.     
    55 2.2 - Internal release     
    56 2.21 - Fix for simple wordpress & Buddypress combo errors. Hope it works.     
    57 2.30 - Fixed for wordpress 4.1, direct SQL replaced with $wpdb queries, added missing menu button.     
    58 2.40 - Many changes for admin area, added cool styling, improved some SQL queries. Also fixed localization issues.     
    59 2.41,2.42 - Fix for buddypress. 
    60 2.50 - Code rewrite in Object oriented style, debug mode implemented, fixed error with user activation. 
    61  
     591.3 - Fixed registration incompatibility issues. 
     601.2 - Critical upgrade for WP MU (not for simple WordPress), install as soon as possible. 
     611.1 - Fixed broken compatibility mode for MySQL 4, added some error reporting 
     621.0 - Many different fixes, including usernames's replacing and error reporting 
     630.4 - Defined str_split function for compatibility with PHP4 
     640.3 - Updated to work with the latest BuddyPress system 
     650.2 - Activation and language issues with WordPress MU fixed 
     660.1 - First release 
    6267 
    6368== Installation == 
     
    67722. Get activation codes through Plugins->WP-invites (Site admin->WP-invites for WP MU) link;   
    68734. Enjoy. 
    69    
    70    
    71 For old versions of Wordpress MU and Buddypress:   
     74 
     75= BuddyPress is currently buggy = 
     76Bug fixes are in development. Please stay tuned as we bring this plugin back to life. 
     77 
     78For old versions of WordPress MU and BuddyPress:   
    72791. Upload the complete folder `wp-invites` to the `/mu-plugins/` directory;   
    73802. Put file `wp-invites-MU_INIT.php` from `wp-invites` to upper directory, `mu-plugins`;   
     
    7784== Frequently Asked Questions == 
    7885 
    79 Still none. 
     86= Are there any new features in the works? = 
     87Yes, I have many new features that are currently in development as we bring this plugin back to life. If you have any additional suggestions please use the forum. 
     88 
     89* Beautify admin page to use WP tables for display so the invite codes would show like the posts or pages 
     90* Add feature to disable/delete existing invite code 
     91* Add feature to add more details when generating/manually adding codes such as custom expiration and uses allowed 
     92* Add feature to send invite code via email with link that enters code directly to registration page 
     93* Add a front-end widget for logged in users only to send an invite code to a friend. Admin will have a setting to what level user is required to access the widget. 
     94* Add a back-end admin dashboard widget to send invite codes 
     95* Add a back-end admin dashboard widget to show invite codes expiring soon, recently used, etc. 
    8096 
    8197== Screenshots == 
    82 1. Invitation code request while registering in Wordpress. 
     981. Invitation code request while registering in WordPress. 
    83992. Invitation code is displayed for administrator in user profile. 
    84 3. Invitation code is also displayed for administrator in user profile in Buddypress. 
     1003. Invitation code is also displayed for administrator in user profile in BuddyPress. 
     101 
     102== Upgrade Notice == 
     103Bug Fixes. More updates coming soon! 
  • wp-invites/trunk/wp-invites.php

    r1104959 r1672845  
    44Author URI: http://jehy.ru/articles/ 
    55Plugin URI: http://jehy.ru/articles/2009/02/09/wordpress-plugins/ 
    6 Description: Invites system for wordpress, wordpress MU and buddypress! 
     6Description: Invites system for WordPress, (WordPress MU and BuddyPress)! 
    77To set up, visit <a href="options-general.php?page=wp-invites/wp-invites.php">configuration panel</a>. 
    8 Author: Jehy 
    9 Version: 2.50 
     8Author: Jehy, themaster507 
     9Version: 2.51 
    1010*/ 
    1111if (!function_exists('str_split')) { 
     
    8383            add_filter('bp_signup_usermeta', array($this, 'wpmu_invites_add_signup_meta'), 1, 1); 
    8484 
    85             #if blog is selected, it is neccessary... 
     85            #if blog is selected, it is necessary... 
    8686            add_filter('bp_core_account_activated', array($this, 'bp_invites_on_activate_user'), 1, 2); 
    8787        } 
     
    9292            add_filter('add_signup_meta', array($this, 'wpmu_invites_add_signup_meta'), 1, 1); 
    9393        } 
    94         if (!$this->options['IS_WPMU'])#for simple wordpress 
     94        if (!$this->options['IS_WPMU'])#for simple WordPress 
    9595        { 
    9696            add_action('register_form', array($this, 'invites_add_signup_fields')); 
     
    180180 
    181181        #get the options from the database 
    182         if ($this->options['IS_WPMU']) 
     182        if(is_multisite()) 
    183183            $options = get_site_option('wp-invites'); // get the options from the database 
    184184        else 
     
    224224        } 
    225225        $this->invites_menu(); 
    226         if ($_REQUEST['action'] == 'options') { 
    227             if ($_REQUEST['step'] == '2') { 
     226        if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'options') { 
     227            if (isset($_REQUEST['wp_invites']) && isset($_REQUEST['step']) && $_REQUEST['step'] == '2') { 
    228228                if ($this->options['IS_WPMU']) 
    229229                    update_site_option('wp-invites', $_REQUEST['wp_invites']); 
     
    266266                    <tr> 
    267267                        <td><?php echo __('Enable debug output', 'wp-invites').' ('. 
    268                                 __('Debug log will apear in html comments in the bottom of the page code', 'wp-invites').')'; ?></td> 
     268                                __('Debug log will appear in html comments in the bottom of the page code', 'wp-invites').')'; ?></td> 
    269269                        <td><input type="checkbox" name="wp_invites[debug]" 
    270270                                   value="1" <?php if ($this->options['debug']) echo 'checked' ?>></td> 
     
    276276        <?php 
    277277 
    278         } elseif ($_REQUEST['action'] == 'add') { 
    279             if ($_REQUEST['step'] == '2') { 
     278        } elseif (isset($_REQUEST['action']) && $_REQUEST['action'] == 'add') { 
     279            if (isset($_REQUEST['codes']) && isset($_REQUEST['step']) && $_REQUEST['step'] == '2') { 
    280280                $codes = explode("\n", $_REQUEST['codes']); 
    281281                echo '<div class="updated">'; 
     
    301301                       style="width:80px;"></form> 
    302302        <?php 
    303         } elseif ($_REQUEST['action'] == 'view') { 
     303        } elseif (isset($_REQUEST['action']) && $_REQUEST['action'] == 'view') { 
    304304            $sql = 'SELECT value,`datetime`,(`datetime`+ INTERVAL ' . $this->options['REMOVE_INTERVAL'] . ' DAY) as `remove` 
    305305            FROM ' . $this->options['INVITES_PREFIX'] . 'invites order by `datetime`'; 
     
    315315            } 
    316316        } else { 
    317             if ($_REQUEST['step'] == '2') { 
     317            if (isset($_REQUEST['invites_num']) && isset($_REQUEST['step']) && $_REQUEST['step'] == '2') { 
    318318                ?> 
    319319                <div class="updated"><H2><?php _e('Generated invitation codes:', 'wp-invites') ?></h2> 
     
    391391            <label for="wp-invites"><?php _e('Invite code', 'wp-invites') ?></label><br/> 
    392392            <?php _e('Please, input here invitation code, received from the blog owner', 'wp-invites') ?><br> 
    393             <input type="text" name="invite_code" value="<?php echo $_REQUEST['invite_code']; ?>" 
     393            <input type="text" name="invite_code" value="<?php echo (isset($_REQUEST['invite_code'])) ? $_REQUEST['invite_code'] : ''; ?>" 
    394394                   class="regular-text ltr"> 
    395395        </p> 
     
    403403        $this->debug_info($sql); 
    404404        $wpdb->query($sql); 
    405         if ($_REQUEST['invite_code']) 
     405        if (isset($_REQUEST['invite_code']) && $_REQUEST['invite_code']){ 
    406406            $_SESSION['invite_code'] = $_REQUEST['invite_code']; 
    407  
     407        } else { 
     408            $_SESSION['invite_code'] = false; 
     409        } 
    408410        if (!$this->invites_ifreal($this->invites_unbeautify($_SESSION['invite_code']))) { 
    409411            if ($this->options['IS_BUDDYPRESS']) 
     
    420422    function invites_on_activate_user($user_id, $password = '', $meta = '') 
    421423    { 
    422         update_usermeta($user_id, 'invite_code', $meta['invite_code']); 
     424        update_user_meta($user_id, 'invite_code', $meta['invite_code']); 
    423425    } 
    424426 
     
    431433        if ($res === FALSE) 
    432434            echo $wpdb->last_error; 
    433         update_usermeta($user_id, 'invite_code', $_SESSION['invite_code']); 
     435        update_user_meta($user_id, 'invite_code', $_SESSION['invite_code']); 
    434436    } 
    435437 
    436438    function bp_invites_on_activate_user($meta = '', $key = '') 
    437439    { 
    438         update_usermeta($meta['user_id'], 'invite_code', $meta['meta']['invite_code']); 
     440        update_user_meta($meta['user_id'], 'invite_code', $meta['meta']['invite_code']); 
    439441    } 
    440442 
     
    451453                add_submenu_page( 'wpmu-admin.php', 'WP-invites', 'WP-invites', 8, "wp-invites", "invites_admin" ); 
    452454        } 
    453         else #same for buddypress and simple wordpress 
     455        else #same for BuddyPress and simple WordPress 
    454456            //add_submenu_page('plugins.php','WP-invites','WP-invites',8,"wp-invites",'invites_admin'); 
    455457          {  */ 
     
    467469    function wp_output_invites($user) 
    468470    { 
    469         $code = $this->invites_beautify(get_usermeta($user->ID, 'invite_code')); 
     471        $code = $this->invites_beautify(get_user_meta($user->ID, 'invite_code',true)); 
    470472        if (!$code) 
    471473            $code = __('No code assigned', 'wp-invites'); 
     
    493495        if ($bp->current_component != 'profile') 
    494496            return; 
    495         $code = $this->invites_beautify(get_usermeta($bp->displayed_user->id, 'invite_code')); 
     497        $code = $this->invites_beautify(get_user_meta($bp->displayed_user->id, 'invite_code',true)); 
    496498        if (!$code) 
    497499            $code = __('No code assigned', 'wp-invites'); 
Note: See TracChangeset for help on using the changeset viewer.