Skip to:
  • <?php
    * WordPress User Page
    * Handles authentication, registering, resetting passwords, forgot password,
    * and other user handling.
    * @package WordPress

    /** Make sure that the WordPress bootstrap has run before continuing. */
    require( dirname(__FILE__) . ‘/wp-load.php’ );

    // Redirect to https login if forced to use SSL
    if (…[Read more]

  • Sorrry but could not find the line you mentioned :-( here is the whole bp_profile_as_homepage_fork.php file `<?php
    Plugin Name: BP Profile as Homepage Fork
    Description: Sets the user BP Profile as homepage on the site for logged in users. This emulates Facebook.
    Author: Mort3n
    Version: 1.0
    License: GPL2

    /* Copyright 2013 Mort3n

    This…[Read more]

  • Hi,

    Add this code yo your functions.php, i was add filter to embed_maybe_make_link wp function.

    It work!! but mybe there is more good solution for auto-embeding image in bp (personaly, i was search since for long time for solution, but i dont find it :p).
    * Check if url is image
    * <a href=''…
    [Read more]

  • Hi,
    try this in bp-custom.php
    remove_filter( 'wpmu_signup_blog_notification', 'bp_core_activation_signup_blog_notification', 1, 7 );

    source infos buddypress /bp-core/bp-core-filters.php

    The concerned filter do this
    * bp_core_filter_blog_welcome_email()
    * Replace the generated password in the welcome email.
    * This will not filter when the…[Read more]

  • @kirkslater,
    Since you asked it in another thread, here is what you need

    Put this function in your functions.php or bp-custom.php

    * Get Age from BuddyPress date of Birth
    * <a href='' rel='nofollow'>@param</a> string $dob_field_name :name of the DOB field in xprofile, like Dob or Date of Birth
    * <a href='' rel='nofollow'>@param</a> int $user_id : the user for which you want to retrieve the age
    * <a href='' rel='nofollow'>@param</a> string $format: the way you want to print the difference, look t for the acceptable agrs
    * @return string :the formatted age in year/month

    function bpdev_get_age_from_dob($dob_field_name,$user_id=false,$format="%y Years, %m Month(s), %d days"){
    $user_id=bp_displayed_user_id ();

    $dob_time=xprofile_get_field_data($dob_field_name, $user_id);//get the datetime as myswl datetime

    $dob=new DateTime($dob_time);//create a DateTime Object from that

    $current_date_time=new DateTime();//current date time object
    //calculate difference
    $diff= $current_date_time->diff($dob);//returns DateInterval object
    //format and return
    return $diff->format($format);


    and Now you can output the age anywhere using

    [Read more]

Skip to toolbar