Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 126 through 150 (of 192 total)
  • @megainfo

    Participant

    add_filter(‘show_admin_bar’, ‘__return_false’);

    @megainfo

    Participant

    Hi @alex_h ,
    you can peronlize BuddyPress Default Data plug to make it stress testing script. this pluging will create lots of users, messages, friends connections, groups, topics, activity items – useful for testing purpose.

    https://wordpress.org/extend/plugins/bp-default-data/

    @megainfo

    Participant

    this was work for me


    /**
    * Check if the current user has an uploaded avatar
    * @return boolean
    */
    function current_user_has_avatar() {
    global $bp;
    if ( bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'no_grav' => true,'html'=> false ) ) != bp_core_avatar_default() )
    return true;
    return false;
    }

    thanks for answers.

    @megainfo

    Participant

    you can edit your groups/groups-loop.php to add some css class

    or change the css of #groups-list ui.

    http://mondaybynoon.com/20100318/css3-center-thumbnail-galleries/

    @megainfo

    Participant

    Hi,
    Check this :)


    /**
    * Check if the current user has an uploaded avatar
    * @return boolean
    */
    function current_user_has_avatar() {
    global $bp;
    if ( bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'no_grav' => true,'html'=> false ) ) != bp_core_avatar_default() )
    return true;
    return false;
    }

    @megainfo

    Participant

    the code i share work like that:

    he extract :
    – the last 20 activity of friends
    – the last 20 activity of groups
    – the last 20 activity of mentions

    – he join all activities in one list
    – order the activities by date
    – he return the $max of activity

    you can personlize the code to get more that 20 activites in each set.

    @megainfo

    Participant

    hi @rogercoathup,

    can you share with as, these posts about how to achieve this if you get the link please.

    thanks advance.

    @megainfo

    Participant

    I think buddypress dont accept multi scope :) just only one scope,

    try this shortcode, it work for me


    /**
    * comparator
    */
    function cmp($a, $b) {
    return strtotime($a->date_recorded) date_recorded);
    }

    /**
    * show friends+groups+mentions actitivity in stream
    */
    function bp_get_interests_activity($atts, $content = null){
    $activities = null;
    if ( is_user_logged_in() ) :
    extract(shortcode_atts(array(
    'max' => '20'
    ), $atts));

    do_action( 'bp_before_activity_loop' );
    global $activities_template;

    //get last friends activity ( default 20)
    bp_has_activities( 'scope=friends' );
    $friends_activities = $activities_template->activities;

    //get last groups activity ( default 20 )
    bp_has_activities( 'scope=groups' );
    $groups_activity = $activities_template->activities;

    //get last mentions ( default 20 )
    bp_has_activities( 'scope=mentions' );
    $mentions_activity = $activities_template->activities;

    $intersting_activity = array_merge($friends_activities, $groups_activity, $mentions_activity);
    usort($intersting_activity, "cmp");

    $activities_template->activities = $intersting_activity;
    $activities_template->activity_count = $max;
    $activities = '
      ';
      ob_start();
      while ( bp_activities() ) : bp_the_activity();
      do_action( 'bp_before_activity_entry' );
      ?>
      <li class="" id="activity-">

      <a href="">









      <a href="" class="view" title="">













      <?php do_action( 'bp_after_activity_entry' );
      endwhile;
      $activities .= ob_get_contents();
      ob_end_clean();
      $activities .='
    ';
    do_action( 'bp_after_activity_loop' );
    endif;
    return $activities;
    }
    add_shortcode('interests', 'bp_get_interests_activity');

    and you can call it with this


    echo do_shortcode('[interests max=20]');

    this code, will join the friends + groups + mentions of the current user.
    the only problem, it not a join from database, because the code do a join with last activiy from each scope ( i mean mybe we lose the chronologic order of some activity).

    hope this help.

    @megainfo

    Participant

    bump

    Can someone do a test for me, and tell me please if is bug in buddypress or somthing wrong ?

    thanks advance.

    @megainfo

    Participant

    @megainfo

    Participant

    There is Comercial version of SeoPresss.

    Im working in modified version of free SeoPresss and i add the rest of tags,
    my version steel in developement and it is not stable.I will share it in wordpress plugins.

    i want just to tell you too, the last version SeoPresss work in buddypress 1.6 but there is some bug in wp-admin, it make http 500 error with some other plugins.

    @megainfo

    Participant

    @megainfo

    Participant

    thanks @shanebp, that fix the problem.

    @megainfo

    Participant

    Hi, in my site i have more than 11000 members

    i use zlib compression extension (it must be enabled in your php server config) in header.php

    ini_set(‘zlib.output_compression’, ‘On’);
    ini_set(‘zlib.output_compression_level’, ‘1’);

    try it and see the difference.

    else try this ways :
    http://wpmu.org/11-ways-to-make-your-wordpress-site-faster-and-leaner/

    @megainfo

    Participant

    When you upgrade to the latest version of BuddyPress (1.6), you will be presented with a new little wizard to help get you on the right track.

    Are you doing that ?

    look here

    http://wpmu.org/whats-new-in-buddypress-1-6-activity-managment-akismet-integration-profile-privacy-and-more/

    @megainfo

    Participant

    thx @mercime for correction, i thinked is talk about functions.php

    @megainfo

    Participant

    add it in your functions.php or bp-custom.php it work for in the two files.

    @megainfo

    Participant

    add_filter(‘show_admin_bar’, ‘__return_false’);

    @megainfo

    Participant

    hi,,

    global $current_user;
    get_currentuserinfo();
    $userLevel = $current_user->wp_user_level;

    switch ($userLevel){
    //https://codex.wordpress.org/Roles_and_Capabilities
    case 0: $_SESSION = 2; break; // member
    case 1: $_SESSION = 2; break; // Contributor
    case 2: $_SESSION = 1; break; // author
    case 3: $_SESSION = 1; break; // author
    case 4: $_SESSION = 2; break;
    case 5: $_SESSION = 2; break;
    case 6: $_SESSION = 2; break;
    case 7: $_SESSION = 2; break;
    case 8: $_SESSION = 0; break;
    case 9: $_SESSION = 0; break;
    case 10: $_SESSION = 0; break; // admin
    default: $_SESSION = 3; // guest
    }

    and read this https://codex.wordpress.org/Roles_and_Capabilities

    @megainfo

    Participant

    hi Paul,

    Check here : http://www.seomoz.org/blog/11-google-analytics-tricks-to-use-for-your-website

    5. Track Events

    you can add this javascript code
    _gaq.push();

    in your activation page.

    @megainfo

    Participant

    Mybe your hosting was disable php mail function.

    check if mail() is enabled, try this code :

    
    if ( function_exists( 'mail' ) || is_callable('mail') )
    {
    echo 'mail() is available';
    }
    else
    {
    echo 'mail() has been disabled';
    }

    @megainfo

    Participant

    Hi @Hugo, you can check the plugin please, i hav’nt time to add it to wordpress repo.

    and you Mr @newpress, don’t throw accusations around like that ;).

    @megainfo

    Participant

    Hi
    i was create a plugin Buddypress Notifications Manager – BpNM , you can disable email notifications for all members, or you can disable some others. you can enable or disable Email Notifications user access with the plugin too. the plugin work fine wp 3.4 and buddypress 1.5

    you can download it and try it in your localhost.
    :snip: – jjj
    //Mod edit: this is an untested and unknown file only download and run at your own risk and not on a production site.

    after enabling the plugin, go to Setting > BP Notifications

    @megainfo

    Participant

    Yes of course, but it is just an update :P and in many case’s, this solution is last and the easy way restore site :)

    @megainfo

    Participant

    Activation key is generate key by wordpress and sended to the email of registred member. The new member must activate his account by clicking in the activation link ( the link contain the activation key)

    Activation is used to detect if the email exist and blocking multiple registration by the same email ( spammer), and many others advantage ….

Viewing 25 replies - 126 through 150 (of 192 total)
Skip to toolbar