Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Jan,
    If your goal is to count all visits(including non logged), You can do it on wp_head action by checking bp_is_user()

    The problem is if you count each visit, the size of table will grow exponentially.

    Currently, in the plugin, we keep 1 log for the relation where x- visits y and update the visit count/last visited date. We also keep a total count of the visitors.

    For your use case, if who visited is not important, you may keep a count for 30 days or so using meta instead and clean after 30 days using cron.

    Personally, I think what you are looking for is more like analytics for user. I do not think I have seen any existing plugin for this purpose.

    The recent visitors plugin is not suitable for the analytics job.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Branded Login for BuddyPress not working! #28081

    Hi Eli,
    Thank you.

    I checked again and the form I posted was a side effect of of one of our other code making it look good.

    After disabling all plugins, I was able to see the issue.

    Please visit Dashboard->Appearance->Customize->Addition css and add the following code

    
    .bl-login-page .standard-form input[type='text'],
        .bl-login-page .standard-form input[type='password'],
        .bl-reset-page .standard-form input[type='text'],
        .bl-login-page .standard-form label {
            display: block;
            width: 100%;
    
        }
    
        .bl-login-page .standard-form input[type='text'],
        .bl-login-page .standard-form input[type='password'],
        .bl-reset-page .standard-form input[type='text'] {
            padding: .8em 1.5em;
            border: 1px solid rgba(0, 0, 0, 0.15);
            min-width: 120px;
        }
    
        .standard-form #wp-submit {
            padding: .8em 1.5em;
            border: 1px solid rgba(0, 0, 0, 0.15);
        }
    
    

    and let me know if it helps. If not, Please keep the plugin active and let me know. I can check the page quickly and help.

    PS:- Please do not copy the code from notification mail. Copy it from the forum posts. The code in email get entity encoded and will not work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Branded Login for BuddyPress not working! #28079

    Hi Eli,
    I had a look and this is what it looks to me with Divi

    https://i.imgur.com/YtEy82W.png

    Is it the same for you or is it something else?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Sigfrido,
    Thank you for the patience.

    Please upgrade to 1.4.0 and let me know if it works or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Branded Login for BuddyPress not working! #28076

    Hi Eli,
    Thank you for reporting.

    We haven’t tested it with Divi. Please allow me to check and get back to you in couple of hours. It is most probably a template layout issue.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Linda,
    Please see
    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    PS:- I am putting it as an option in the plugin settings itself over the weekend.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    You are welcome.
    I am glad it worked.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Mical,
    Thank you.

    yes, it is possible but a better option is to disable recording for the other member type.

    
    
    /**
     * Disable recording of visits of a particular member type.
     */
    add_filter( 'visitor_is_visit_recordable', function ( $is_enabled, $user_id ) {
    
    	$non_recordable_types = 'teacher';// member type.
    	if ( bp_has_member_type( $user_id, $non_recordable_types ) ) {
    		$is_enabled = false;
    	}
    
    	return $is_enabled;
    }, 10, 2 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Thank you.
    I appreciate their feedback.

    I will post an update within couple of hours.

    Regards
    Brajesh