Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'hide login'

Viewing 25 results - 51 through 75 (of 125 total)
  • Author
    Search Results
  • djsteveb
    Participant

    @dangthrimble – no matter what you do to hide the admin username, the really good hack teams are running scans to get the admin names by running url checks like “yourdotcom /?author=2
    ?author=3

    and scraping the details wp is providing both on page, and in meta fields.
    Then adding those names to their pass cracking bot nets.
    (look in your raw access logs, you will see it)

    I’ve tried changing names on wp sites many times, the rssn hackers get getting the new names, you can tell if you check your fail log with “limit login attempts” plugin.

    I’ve played with some code to change in wp themes to hide details there, but my php is slightly below beginner and my understanding of what the theme code is doing is same.

    I tried a plugin from the wp-repo that is supposed to hide all that- but it’s not working.

    (you could htaccess geo block ukrain and chna from your site completely and probably prevent 90% of these issues anyway from what I have seen by checking logs)

    I found some htaccess someone posted that is supposed to suppress all requests for “/?auth [nc] or something like that – but since I do not understand what each part is doing, I have not deployed it.

    I think it needs to be htaccess add and include anything with “author” and a number to work well (reg ex for numbers?)

    Until I find a htaccess regex method I understand and trust, I have found that the best combo for prevention is:

    Geo IP Block
    (https://wordpress.org/plugins/ip-geo-block/ )
    (default settings are okay, I think it’s best to change the drop downs to block by country the plugins area, theme area, admin ajax, etc as well – options in settings
    Also some blogs may want to uncheck the “comment post” block by country
    )

    If this geoip block plugin author had a donate link I’d already sent him some bucks, it’s the most useful plugin I’ve found since… “good question”

    and succuri is an informative add on as well
    (shows that some bots have figured out how to bypass the limit login attempts max tries setting)

    The way WP is handling question marks in urls (string queries I think it’s called) and giving up 200 status codes and extra info (including author names) to bots is a big issue for me, this kind of relates to the unanswered support question I posted here:
    https://wordpress.org/support/topic/question-mark-url-return-200-not-404-string-query-noindex-or?replies=1

    #241200
    Gnostic_Thought
    Participant

    I am not sure. I bought a plugin from codecanyon and am trying to alter it to work with buddypress. I think this is the code I will have to alter

    public function __construct() {
    		$this -> admin = WP_Atr_Admin :: get_instance();
    		# registration hooks:
    		add_action( 'login_enqueue_scripts', array( $this, 'initialize_registration' ) );
    		add_action( 'register_form', array( $this, 'add_checkboxes_to_registration' ) );
    		add_filter( 'registration_errors', array( $this, 'validate_registration' ), 10, 3 );
    
    		# mu
    		add_action( 'signup_header', array( $this, 'initialize_registration' ) );
    		add_filter( 'wpmu_validate_user_signup', array( $this, 'mu_validate_registration' ), 10, 3 );
    		add_action( 'signup_extra_fields', array( $this, 'mu_add_checkboxes_to_registration' ) );
    
    		# add button
    		add_filter( 'the_content', array( $this, 'add_button_to_pages' ) );
    		$this -> register_page_status();
    		if( is_multisite() ) {
    			add_filter( 'all_plugins', array( $this, 'hide_plugin_in_mu_sites' ) );
    		}
    	}
    

    I would figure I would prefix bp_ to some of the code here

    # registration hooks:
    add_action( ‘bp_login_enqueue_scripts’, array( $this, ‘initialize_registration’ ) );
    add_action( ‘bp_register_form’, array( $this, ‘add_checkboxes_to_registration’ ) );
    add_filter( ‘bp_registration_errors’, array( $this, ‘validate_registration’ ), 10, 3 );

    but it like there is more to it than that according to your link.

    #232787
    Henry Wright
    Moderator

    Right, I’m with you.

    After this line in the plugin

    echo 'Shared successfully to your Home Place with tags: '.$tags;

    Can you add this?

    do_action( 'newsbaby_after_insert_post', $post_id );

    Then change my code you added to functions.php to:

    function valuser_add_new_post_activity( $post_id ) {
        $post = get_post( $post_id );
        $user = get_userdata( $post->post_author );
    
        $args = array(
            'user_id' => $post->post_author,
            'action' => $user->user_login . ' published ' . $post->post_title,
            'component' => buddypress()->blogs->id,
            'type' => 'new_blog_post',
            'item_id' => get_current_blog_id(),
            'secondary_item_id' => $post->ID,
            'recorded_time' => bp_core_current_time(),
            'hide_sitewide' => false
        );
        bp_activity_add( $args );
    }
    add_action( 'newsbaby_after_insert_post', 'valuser_add_new_post_activity' );

    That should do it šŸ™‚

    #232780
    Henry Wright
    Moderator

    Try adding this to your theme’s functions.php file:

    function valuser_add_new_post_activity( $ID, $post ) {
    
        $user = get_userdata( $post->post_author );
    
        $args = array(
            'user_id' => $post->post_author,
            'action' => $user->user_login . ' published ' . $post->post_title,
            'component' => buddypress()->blogs->id,
            'type' => 'new_blog_post',
            'item_id' => get_current_blog_id(),
            'secondary_item_id' => $post->ID,
            'recorded_time' => bp_core_current_time(),
            'hide_sitewide' => false
        );
        bp_activity_add( $args );
    }
    add_action( 'publish_post', 'valuser_add_new_post_activity', 10, 2 );

    That’s how I’d add new blog posts to the activity stream. I’ve hooked bp_activity_add() to the published_post action which will fire each time a new post is added to the database.

    Please note I haven’t tested.

    #230896
    webplayer
    Participant

    I am not a coder, but I’m looking for a snippet that can do this:

    Add Function: Change Admin Bar Login and Register Links
    
    if user is logged out
    
    Remove WordPress/buddypress admin bar Login and Register links
    
    Add New Login and Register Links
    
    New Login Link: <a data-reveal-id="tmpl_reg_login_container" href="javascript:void(0);" onclick="tmpl_login_frm();">New Login Link</a>
    
    New Register Link: <a data-reveal-id="tmpl_reg_login_container" href="javascript:void(0);" onclick="tmpl_registretion_frm();">New Register Link</a>
    
    if user is logged in don't do any of the above (i.e.) show their buddypress username and hide register links, etc...
    

    Does anyone know how to make this happen in code that I can drop into functions.php or bp-custom.php

    #201130
    ivanguinea
    Participant

    Sorry:

    This is the list of my plugins:
    BackWPup
    Better WordPress Minify
    Breadcrumb NavXT
    Buddypress
    BuddyPress Registration Groups
    Formulario de Contacto 7
    Cookie Law Info
    Gears
    Hide Admin Bar From Non-admins
    Hide User Profile Fields
    LĆ­mitador de intentos de login
    Nav Menu Images
    Paid Memberships Pro
    PMPro Check Levels
    PMPro Customizations
    PMPro Email Templates
    PMPro Register Helper
    Regenerate Thumbnails
    Remove Dashboard Access
    Revolution Slider
    Simple Social Icons
    Editor de Roles
    WordPress SEO
    WP-Optimize
    WPBakery Visual Composer
    WP Google Fonts
    WP Smush.it
    WP Super Cache
    WP User Frontend Pro

    My theme is Klein (http://klein.dunhakdis.me/)

    #186358
    wp_maybe
    Participant

    I read another solution here

    1. Install and activate this plugin https://wordpress.org/plugins/wp-exec-php/

    2. Create a new page called ā€œFriendsā€ or whatever name you want and add it to your menu.

    3. In content of this page, add this code

    <meta http-equiv=”refresh” content=”0;URL=http://blabla.com/members/<?php global $current_user;
    get_currentuserinfo();

    echo sanitize_file_name($current_user->user_login). “”;

    ?>/activity/friends/”>

    4. You may still need a way to hide this menu from logged out users. Plugin https://wordpress.org/plugins/if-menu/

    #182786
    Henry Wright
    Moderator

    Is there an easy way to do this?

    Yes. You can do this quite easily.

    1. Choose a Facebook login plugin from the WP plugin repo:

    https://wordpress.org/plugins/

    Maybe try searching for 'social login'

    2. Hide the BuddyPress registration form

    #179434

    In reply to: Stop BuddyPress SPAM

    contrasupport
    Participant

    Most of wordpress plugins mentions above work like

    Attacker > HTTP server > PHP > WordPress > PLUGINS

    We all need to have something before WordPress that’s why I recommend

    NinjaFirewall (I do not have any relation with the plugin creator)

    https://wordpress.org/plugins/ninjafirewall/

    Block the attacker before the WordPress

    Attacker > HTTP server > PHP > NinjaFirewall > WordPress > PLUGINS

    As always in installing any plugins that possibly can block your admin access you have to read the Installation note and have access to the FTP.

    NinjaFirewall will work as another layer to protect your site.

    In addition if you have not done it:

    1. Change your “Admin” username to something dificult and at least 10 characters (+) but easily to remember (+ for you – for security) or you have to read a note (-) safely secured in your safe locker (+)
    2. Make your password at least 25 COMBINATION of characters (+) but easily to remember (+ for you – for security) or you have to read a note (-) safely secured in your safe locker (+)

    NinjaFirewall:

    • Web Application Firewall
    • Full standalone web application firewall
    • Multi-site support
    • Compatible with shared hosting accounts
    • Protects against RFI, LFI, XSS, code execution, SQL injections, brute
    • force scanners, shell scripts, backdoors and many other threats
    • Scans and/or sanitises GET / POST requests, HTTP / HTTPS traffic, cookies, server variables (HTTP_USER_AGENT, HTTP_REFERER, PHP_SELF, PATH_TRANSLATED, PATH_INFO)
    • Sanitises variables names and values
    • Advanced filtering options (ASCII control characters, NULL byte, PHP built
    • in wrappers, base64 decoder)
    • Blocks username enumeration scanning attempts through the author archives and the login page
    • Blocks/allows uploads, sanitises uploaded file names
    • Blocks suspicious bots and scanners
    • Hides PHP error and notice messages
    • Blocks direct access to PHP scripts located inside specific directories
    • Whitelist option for WordPress administrator(s), localhost and private IP address spaces
    • Configurable HTTP return code and message
    • Rules editor to enable/disable built-in security rules
    • Activity log and statistics
    • Debugging mode
    #179033
    SubstreamAI
    Participant

    Just thought I’d update for anyone else with a similar problem. It has turned out that my Possible Solution #1 above has solved this for me completely. It does behave differently for Administrators (as it should) which caused me some confusion.

    Other Plugins I would recommend people look at if they have similar needs to mine:
    Theme My Login by Jeff Farthing: integrates user login screens into you Wordpres site/theme.
    Plugin: https://wordpress.org/plugins/theme-my-login/
    Website: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/

    Global Hide/Remove Admin Bar Plugin bye Don Fischer: hides the WordPress Toolbar/admin bar
    Plugin: https://wordpress.org/plugins/global-admin-bar-hide-or-remove/
    Website: http://www.fischercreativemedia.com/plugins/global-hideremove-toolbar-plugin//

    Finally bbPress WP Tweaks: so popular I’m not going to leave links.

    All these plugins are essential to my gaming clan site: http://ducesoforion.com

    #179032
    SubstreamAI
    Participant

    Just thought I’d update for anyone else with a similar problem. It has turned out that my Possible Solution #1 above has solved this for me completely. It does behave differently for Administrators (as it should) which caused me some confusion.

    Other Plugins I would recommend people look at if they have similar needs to mine:
    Theme My Login by Jeff Farthing: integrates user login screens into you Wordpres site/theme.
    Plugin: https://wordpress.org/plugins/theme-my-login/
    Website: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/

    Global Hide/Remove Admin Bar Plugin bye Don Fischer: hides the WordPress Toolbar/admin bar
    Plugin: https://wordpress.org/plugins/global-admin-bar-hide-or-remove/
    Website: http://www.fischercreativemedia.com/plugins/global-hideremove-toolbar-plugin//

    Finally bbPress WP Tweaks: so popular I’m not going to leave links.

    All these plugins are essential to my gaming clan site: http://ducesoforion.com

    #179031
    SubstreamAI
    Participant

    Just thought I’d update for anyone else with a similar problem. It has turned out that my Possible Solution #1 above has solved this for me completely. It does behave differently for Administrators (as it should) which caused me some confusion.

    Other Plugins I would recommend people look at if they have similar needs to mine:
    Theme My Login by Jeff Farthing: integrates user login screens into you Wordpres site/theme.
    Plugin: https://wordpress.org/plugins/theme-my-login/
    Website: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/

    Global Hide/Remove Admin Bar Plugin bye Don Fischer: hides the WordPress Toolbar/admin bar
    Plugin: https://wordpress.org/plugins/global-admin-bar-hide-or-remove/
    Website: http://www.fischercreativemedia.com/plugins/global-hideremove-toolbar-plugin//

    Finally bbPress WP Tweaks: so popular I’m not going to leave links.

    All these plugins are essential to my gaming clan site: http://ducesoforion.com

    robgranholm
    Participant

    Interesting, I am using Wishlist, but even if I have no protection on the topic itself, this issue still presents itself, further wouldn’t that hide the page entirely, and redirect the user to the login page? I’ve turned on protection and tried just viewing the page not logged in, and I get redirected, once logged in, the page shows, but again with the issue, no topic content showing.

    Where would I go to test these suggestions? What actions would I take?

    #174707
    mattg123
    Participant

    @pjbursnall , I wouldn’t say that it is pretty easy here

    <?php global $current_user;
    		get_currentuserinfo();
    		$display = $current_user->display_name;
    		$login = $current_user->user_login;
    		$userid = $current_user->ID;
                    $home = get_home_url();
    ?>

    add that above your custom drop-down then its pretty simple just echo out the username, url etc <li class="li-fourth"><a href="<?php echo $home . '/members/' . $login . '/activity/mentions'; ?>">Mentions</a></li>

    EDIT –

    Oh the other bit you’d have to google for is the avatar but here
    <?php echo bp_core_fetch_avatar( array('item_id' => $userid, 'type' => 'full', 'width' => 100,'height' => 100));?>
    You’ll want to adjust the width/height accordingly

    #174702
    mattg123
    Participant

    @pjbursnall Personally I think buddypress should disable admin access anyway as most users don’t want it but that is neither here nor there. Recreating the admin bar is pretty easy, you need to know some css, html and a few bp functions to get the current users details like username etc, as for the notifications @modemlooper or @mercime posted this a while back (my apologies for not remembering which).

    function bp_notification_badge() {
    	if ( is_user_logged_in() ) {
    	global $current_user;
    	get_currentuserinfo();
    			$notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id() );
    				if ( empty($notifications)) {
    				echo '<li class="li-first" id="li-first-right"><a href="' . get_home_url() . '/members/' . $current_user->user_login . '"><span class="circle-zero">0</span></a><ul class="second-level" id="second-level-right"><li class="li-second"><a href="' . get_home_url() . '/members/' . $current_user->user_login . '">No new notifications!</a></li></ul></li>';
    				} else {
    						echo '<ul class="second-level" id="second-level-right">';
    					$counter = 0;
    						for ( $i = 0; $i < count($notifications); $i++ ) {
    						$badge = count($notifications);
    						echo '<li class="li-third">'.$notifications[$i].'</li>';		
    						}
    				echo '</ul>';
    				echo '<a href="' . get_home_url() . '/members/' . $current_user->user_login . '"><span class="circle-badge">'.$badge.'</span></a>';
    			}
    	}
    }

    As for actually disabling the admin bar + backend that can be done with a plugin, plenty of them just google.

    #167443
    nobodymove
    Participant

    Thanks @bphelp. Info listed below:

    1. Which version of WordPress are you running?

    3.5.2

    2. Did you install WordPress as a directory or subdomain install?

    Directory

    3. If a directory install, is it in root or in a subdirectory?

    root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    3.5

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.

    Wordpress seems to be working fine

    6. Which version of BP are you running?

    1.7.2

    7. Did you upgraded from a previous version of BP? If so, from which version?

    1.7

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    Yes, a lot. šŸ™‚

    Allow Multiple Accounts
    amr users + buddypress
    buddypress group email subscription
    buddypress member import
    buddypress message attachement
    Buddypress Toolbar
    Buddypress Xprofile custom fields type
    comprehensive google map
    contact form manager
    events manager pro
    easy table
    form lightbox
    GRAND Flash Album Gallery
    Lightbox Galleries EWSEL
    Mass Messaging in Buddypress
    Online Backup for WordPress
    Peter’s Login Redirect
    SHortcode Widget
    User Switching
    WP Full Calendar
    WP Wunderground

    9. Are you using the standard BuddyPress themes or customized themes?

    I’m using Razor 1.1.3 from Themeforest/Parallelus

    10. Have you modified the core files in any way?

    No

    11. Do you have any custom functions in bp-custom.php?

    No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    13. Please provide a list of any errors in your server’s log files.

    14. Which company provides your hosting?

    Network Solutions

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?

    VPS hosting package

    #166511
    Henry
    Member

    The general idea would be to add something like this directly after bp_the_member() in members-loop.php

    
    $days_since_last_login;
    
    if ( $days_since_last_login > 60 ) continue;
    

    You just need to find out how to get the number of days since last login.

    #166428
    dpeters
    Participant

    WP Version: 3.5.1
    BuddyPress: 1.7.2

    You want to ā€˜hide’ the profile page for a member who hasn’t paid their dues?
    What should happen if that page is accessed by that member or another member?
    Redirect? Custom message page ?

    Either redirect to a listing of all active members or display an error page would be fine, (i.e. “This member is not currently an active member.”)

    If ā€˜paid dues’ is a boolean, then it’s easy to write a function.
    Where is that boolean stored?

    It would be stored in their profile as an Admin-editable field, per the original post.

    Does that member still appear on the Members page? In the Activity stream?

    No to both. Hidden users would be able to login and update information but their profile wouldn’t be public-facing, just them and the admins.

    This would be useful as we have staggered dues, allowing profiles to turn off/on.

    #166423
    Tecca
    Participant

    You can download a plugin like Theme My Login — it automatically redirects logged out/non-registered users to a log-in page with your site’s style.

    #166118
    Liltiger
    Participant

    Hey,

    If you go to Dashboard Settings > Buddypress > Settings, then the first option is ‘Show the Toolbar for logged out users’. Just uncheck it.

    My theme is also has a setting for the login toolbar, so you may want to check out your theme settings.

    I hope it helps!

    #163334
    rypo73
    Participant

    @chouf1

    OK – you’re onto something… And it seems your initial hunch of PBCK was spot on – feeling foolish, but enlightened now!

    SO… I had some code in my custom-functions.php file to ‘hide’ the site admin activity (see below). Because we have several users with ‘Administrator’ roles, it seems this particular user was affected. Others MAY have been if they had logged in more often…

    Seems this code was not the best to use:
    // Don’t record activity by the site admins or show them as recently active
    function my_admin_stealth_mode(){
    if ( is_site_admin() ) {
    global $bp;
    remove_action(‘wp_head’,’bp_core_record_activity’);
    delete_user_meta($bp->loggedin_user->id, ‘last_activity’);
    }
    }
    add_action(‘init’,’my_admin_stealth_mode’);

    SO I’ve removed it in favour of THIS version, specifically masking the activity of INDIVIDUAL users with ‘Administrator’ roles, like our site admin user.

    // Don’t record activity for a user or show them as recently active
    function my_user_stealth_mode(){
    $current_user = wp_get_current_user();
    if(is_user_logged_in()) {
    if(‘YourUsername’ == $current_user->user_login) {
    remove_action(‘wp_head’,’bp_core_record_activity’);
    delete_user_meta($current_user->ID, ‘last_activity’);
    }
    }
    }
    add_action(‘init’,’my_user_stealth_mode’);

    Hope it might be of use to others in future. Thanks for responding to my post. I’m now a LOT more familiar with meta data fields as a result.

    p.s. you’re right about # plugins, we do need a lot, but not ALL of those. It’s our dev environment after all. Often a case of playing with different ones to see what fits the bill.

    #162425

    In reply to: Howdy, community!

    Scott
    Participant

    @giannisff

    I like the look and layout of your site. I especially like the show/hide login form at the top. Is that a plugin?

    #160166
    modemlooper
    Moderator

    hide with css or remove html from sidebar.php

    #159970
    b1gft
    Participant

    Default CSS around line 151. Height change from 126px to 0. That will get rid of the header with the menu. You might have to play a little with the size to make sure your login and logo fit ok.

    #159209
    danbpfr
    Participant

    @aldereteka,

    No !

    But why do you want to retro pedaling ? Those buttons are not visible for visitors. Reverting this just to redirect them to the login page and hoping they come back after registering is fussy !

    I would suggest you to write a short message like:

    <?php if ( !is_user_logged_in()Ā  ) : ?>

    <div>If you were logged in you could send a message to this member. </div>

    <?php endif; ?>

Viewing 25 results - 51 through 75 (of 125 total)
Skip to toolbar