Plugin Directory

Changeset 3394046


Ignore:
Timestamp:
11/12/2025 05:56:52 AM (4 months ago)
Author:
wbcomdesigns
Message:

Updated version

Location:
lock-my-bp
Files:
95 added
5 edited

Legend:

Unmodified
Added
Removed
  • lock-my-bp/trunk/admin/templates/bplock-full-protection.php

    r3379333 r3394046  
    2424
    2525// Get saved whitelist or set defaults
    26 $default_whitelist = "# Homepage (remove this line to force login on homepage)\n/\n\n# WordPress Login Page\nwp-login.php\n\n# BuddyPress/BuddyBoss Register Page\nregister\n\n# Password Reset Pages\nwp-login.php?action=lostpassword\nwp-login.php?action=rp\nwp-login.php?action=resetpass\n\n# Add your custom URLs below (one per line)\n# Examples:\n# /contact\n# /about-us\n# /docs/*";
     26$default_whitelist = "# Homepage (remove this line to force login on homepage)\n/\n\n# WordPress Login Page\nwp-login.php\n\n# BuddyPress/BuddyBoss Register Page\nregister\n\n# BuddyPress Account Activation\nactivate\n/activate/*\n\n# Password Reset Pages\nwp-login.php?action=lostpassword\nwp-login.php?action=rp\nwp-login.php?action=resetpass\n\n# Add your custom URLs below (one per line)\n# Examples:\n# /contact\n# /about-us\n# /docs/*";
    2727
    2828$whitelist_urls = (isset($general_settings['bplock-whitelist-urls'])) ? $general_settings['bplock-whitelist-urls'] : $default_whitelist;
  • lock-my-bp/trunk/bp-lock.php

    r3379333 r3394046  
    1616 * Plugin URI:        http://www.wbcomdesigns.com
    1717 * Description:       BuddyPress Private Community allows the site owner to lock the different BuddyPress components on the site for non-logged-in users. It also gives options to lockdown pages.
    18  * Version:           2.1.0
     18 * Version:           2.1.1
    1919 * Author:            Wbcom Designs
    2020 * Author URI:        http://www.wbcomdesigns.com
     
    3030}
    3131
    32 define( 'BPLOCK_PLUGIN_VERSION', '2.1.0' );
     32define( 'BPLOCK_PLUGIN_VERSION', '2.1.1' );
    3333
    3434if ( ! defined( 'BPLOCK_PLUGIN_PATH' ) ) {
  • lock-my-bp/trunk/languages/bp-lock.pot

    r3379333 r3394046  
    22msgid ""
    33msgstr ""
    4 "Project-Id-Version: Wbcom Designs - Private Community for BuddyPress 2.1.0\n"
     4"Project-Id-Version: Wbcom Designs - Private Community for BuddyPress 2.1.1\n"
    55"Report-Msgid-Bugs-To: https://wbcomdesigns.com/support/\n"
    6 "POT-Creation-Date: 2025-10-16 09:13:54+00:00\n"
     6"POT-Creation-Date: 2025-11-12 05:51:51+00:00\n"
    77"MIME-Version: 1.0\n"
    88"Content-Type: text/plain; charset=utf-8\n"
     
    18801880msgstr ""
    18811881
    1882 #: public/class-bp-lock-public.php:738
     1882#: public/class-bp-lock-public.php:749
    18831883#: public/templates/bplock-login-form.php:38
    18841884msgid "Login"
    18851885msgstr ""
    18861886
    1887 #: public/class-bp-lock-public.php:741
     1887#: public/class-bp-lock-public.php:752
    18881888#: public/templates/bplock-login-form.php:44
    18891889#: public/templates/bplock-login-form.php:46
     
    18921892msgstr ""
    18931893
    1894 #: public/class-bp-lock-public.php:837
     1894#: public/class-bp-lock-public.php:848
    18951895msgid "Please enter your username or email address."
    18961896msgstr ""
    18971897
    1898 #: public/class-bp-lock-public.php:846
     1898#: public/class-bp-lock-public.php:857
    18991899msgid "Please enter your password."
    19001900msgstr ""
    19011901
    1902 #: public/class-bp-lock-public.php:860
     1902#: public/class-bp-lock-public.php:871
    19031903msgid "Too many login attempts. Please try again after 15 minutes."
    19041904msgstr ""
    19051905
    1906 #: public/class-bp-lock-public.php:883
     1906#: public/class-bp-lock-public.php:894
    19071907msgid "Invalid username. Please check your username and try again."
    19081908msgstr ""
    19091909
    1910 #: public/class-bp-lock-public.php:886
     1910#: public/class-bp-lock-public.php:897
    19111911msgid "Invalid email address. Please check your email and try again."
    19121912msgstr ""
    19131913
    1914 #: public/class-bp-lock-public.php:892
     1914#: public/class-bp-lock-public.php:903
    19151915#. translators: %d: number of remaining attempts
    19161916msgid "Incorrect password. You have %d attempt(s) remaining."
    19171917msgstr ""
    19181918
    1919 #: public/class-bp-lock-public.php:897
     1919#: public/class-bp-lock-public.php:908
    19201920msgid "Authentication failed. Please contact the site administrator."
    19211921msgstr ""
    19221922
    1923 #: public/class-bp-lock-public.php:903
     1923#: public/class-bp-lock-public.php:914
    19241924msgid "Login failed. Please check your credentials and try again."
    19251925msgstr ""
    19261926
    1927 #: public/class-bp-lock-public.php:911
     1927#: public/class-bp-lock-public.php:922
    19281928msgid "Login successful! Redirecting you now..."
    19291929msgstr ""
    19301930
    1931 #: public/class-bp-lock-public.php:941
     1931#: public/class-bp-lock-public.php:952
    19321932msgid "Please enter a username."
    19331933msgstr ""
    19341934
    1935 #: public/class-bp-lock-public.php:950
     1935#: public/class-bp-lock-public.php:961
    19361936msgid "Please enter your email address."
    19371937msgstr ""
    19381938
    1939 #: public/class-bp-lock-public.php:959
     1939#: public/class-bp-lock-public.php:970
    19401940msgid "Please enter a valid email address."
    19411941msgstr ""
    19421942
    1943 #: public/class-bp-lock-public.php:968
     1943#: public/class-bp-lock-public.php:979
    19441944msgid "Please enter a password."
    19451945msgstr ""
    19461946
    1947 #: public/class-bp-lock-public.php:978
     1947#: public/class-bp-lock-public.php:989
    19481948msgid "Password must be at least 6 characters long."
    19491949msgstr ""
    19501950
    1951 #: public/class-bp-lock-public.php:988
     1951#: public/class-bp-lock-public.php:999
    19521952msgid "This username is already taken. Please choose another one."
    19531953msgstr ""
    19541954
    1955 #: public/class-bp-lock-public.php:991
     1955#: public/class-bp-lock-public.php:1002
    19561956msgid ""
    19571957"An account with this email address already exists. Please use a different "
     
    19591959msgstr ""
    19601960
    1961 #: public/class-bp-lock-public.php:1001
     1961#: public/class-bp-lock-public.php:1012
    19621962msgid "This username already exists. Please choose a different username."
    19631963msgstr ""
    19641964
    1965 #: public/class-bp-lock-public.php:1004
     1965#: public/class-bp-lock-public.php:1015
    19661966msgid "This email is already registered. Please use a different email or login."
    19671967msgstr ""
    19681968
    1969 #: public/class-bp-lock-public.php:1007
     1969#: public/class-bp-lock-public.php:1018
    19701970msgid "Username cannot be empty."
    19711971msgstr ""
    19721972
    1973 #: public/class-bp-lock-public.php:1010
     1973#: public/class-bp-lock-public.php:1021
    19741974msgid ""
    19751975"Invalid username. Please use only letters, numbers, spaces, underscores, "
     
    19771977msgstr ""
    19781978
    1979 #: public/class-bp-lock-public.php:1015
     1979#: public/class-bp-lock-public.php:1026
    19801980msgid "Registration failed. Please try again or contact support."
    19811981msgstr ""
    19821982
    1983 #: public/class-bp-lock-public.php:1031
     1983#: public/class-bp-lock-public.php:1042
    19841984msgid "Registration successful! Please login with your credentials."
    19851985msgstr ""
    19861986
    1987 #: public/class-bp-lock-public.php:1034
     1987#: public/class-bp-lock-public.php:1045
    19881988msgid "Registration successful! Logging you in..."
    19891989msgstr ""
  • lock-my-bp/trunk/public/class-bp-lock-public.php

    r3379333 r3394046  
    132132            }
    133133        }
    134        
     134
     135        // Always allow BuddyPress activation pages (critical for user registration flow)
     136        // Use BP's native detection - works with custom slugs, pretty/non-pretty permalinks
     137        if (function_exists('bp_is_activation_page') && bp_is_activation_page()) {
     138            return true;
     139        }
     140        // Fallback: Direct component check for edge cases
     141        global $bp;
     142        if (isset($bp->current_component) && $bp->current_component === 'activate') {
     143            return true;
     144        }
     145
    135146        // Check custom whitelisted URLs from textarea
    136147        $whitelist_urls = isset($general_settings['bplock-whitelist-urls']) ? $general_settings['bplock-whitelist-urls'] : '';
  • lock-my-bp/trunk/readme.txt

    r3379333 r3394046  
    55Requires at least: 4.0
    66Tested up to: 6.8
    7 Stable tag: 2.1.0
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    137137
    138138== Changelog ==
     139= 2.1.1 =
     140* Fix: Fixed BuddyPress activation pages being locked in both partial and full protection modes
     141* Fix: Activation URLs now properly bypass protection to allow new user account activation
     142* Enhancement: Implemented BuddyPress-native detection for URL-structure agnostic handling
     143* Enhancement: Added activation patterns to default whitelist template
     144
    139145= 2.1.0 =
    140146* Enhancement: Improved login and registration popup display and functionality
Note: See TracChangeset for help on using the changeset viewer.