Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 46,801 through 46,825 (of 68,967 total)
  • Author
    Search Results
  • #92258
    LPH2005
    Participant

    @mercime – thank you ! That was exactly the error. Now I have to wrap it around login vs. logged out people … and it’ll be good to go ;)

    #92257
    @mercime
    Participant
    #92255
    Paul Wong-Gibbs
    Keymaster

    @modemlooper Looks like the above should sort you out? Let me know.

    #92254

    In reply to: Help?

    Paul Wong-Gibbs
    Keymaster

    Either the upload was corrupted, or you’ve edited in functions.php and missed out some PHP syntax. Compare it to the original version at https://svn.buddypress.org/tags/1.2.5.2/bp-themes/bp-default/functions.php and see if you can see what caused it to break.

    #92253
    Justin Frydman
    Participant

    Thank you both for your help, so I’m hoping I can return the favor. Modemlooper, here is how I adjusted the My Friends tab, but it has sub nav code for you, maybe it will help. Credit for this from @jeffsayre

    `function my_friends_setup_nav() {
    global $bp;

    /* Add ‘Friends’ to the main navigation */
    if( bp_friend_get_total_requests_count($disp_user) > 0 && bp_is_my_profile()) {
    bp_core_new_nav_item( array( ‘name’ => sprintf( __( ‘Friends (%d) (%d)‘, ‘buddypress’ ), friends_get_total_friend_count(), bp_friend_get_total_requests_count() ), ‘slug’ => $bp->friends->slug, ‘position’ => 60, ‘screen_function’ => ‘friends_screen_my_friends’, ‘default_subnav_slug’ => ‘my-friends’, ‘item_css_id’ => $bp->friends->id ) );
    } else {
    bp_core_new_nav_item( array( ‘name’ => sprintf( __( ‘Friends (%d)‘, ‘buddypress’ ), friends_get_total_friend_count() ), ‘slug’ => $bp->friends->slug, ‘position’ => 60, ‘screen_function’ => ‘friends_screen_my_friends’, ‘default_subnav_slug’ => ‘my-friends’, ‘item_css_id’ => $bp->friends->id ) );
    }

    $friends_link = $bp->loggedin_user->domain . $bp->friends->slug . ‘/’;

    /* Add the subnav items to the friends nav item */
    bp_core_new_subnav_item( array( ‘name’ => __( ‘My Friends’, ‘buddypress’ ), ‘slug’ => ‘my-friends’, ‘parent_url’ => $friends_link, ‘parent_slug’ => $bp->friends->slug, ‘screen_function’ => ‘friends_screen_my_friends’, ‘position’ => 10, ‘item_css_id’ => ‘friends-my-friends’ ) );
    bp_core_new_subnav_item( array( ‘name’ => sprintf( __( ‘Requests (%d)‘, ‘buddypress’ ), bp_friend_get_total_requests_count() ), ‘slug’ => ‘requests’, ‘parent_url’ => $friends_link, ‘parent_slug’ => $bp->friends->slug, ‘screen_function’ => ‘friends_screen_requests’, ‘position’ => 20, ‘user_has_access’ => bp_is_my_profile() ) );

    if ( $bp->current_component == $bp->friends->slug ) {
    if ( bp_is_my_profile() ) {
    $bp->bp_options_title = __( ‘My Friends’, ‘buddypress’ );
    } else {
    $bp->bp_options_avatar = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘thumb’ ) );
    $bp->bp_options_title = $bp->displayed_user->fullname;
    }
    }

    do_action( ‘friends_setup_nav’ );
    }

    add_action( ‘bp_setup_nav’, ‘my_friends_setup_nav’, 11 );`

    #92252
    modemlooper
    Moderator

    I was looking at one of @djpaul ‘s plugins to see how the sub nav items were added below but I can’t seem to get it to show up.

    #92251
    Tosh
    Participant

    I’m looking to do something similar. I want to sort members by who has the most points. Any direction would be helpful.

    Here is the sql when points are logged:

    ‘ global $wpdb;
    $wpdb->query(“INSERT INTO `”.CPDB.”` (`id`, `uid`, `type`, `source`, `points`, `timestamp`)
    VALUES (NULL, ‘”.$uid.”‘, ‘”.$type.”‘, ‘”.$source.”‘, ‘”.$points.”‘, “.time().”);”);’

    rich! @ etiviti
    Participant

    interim – what about filtering on bp_has_groups and unset the items? (and readjust the count)

    David Bisset
    Participant

    Followup: I have created a trac for this. Thanks to @boonebgorges and @pgibbs for the suggestion.

    #92244
    rawkey
    Participant

    Thanks @erikshosting just what I was looking for !

    #92235

    In reply to: bp_profile_field_data

    Paul Wong-Gibbs
    Keymaster

    It’s a serialised array, so that’s why it looks odd. Can you submit this as an enhancement for 1.2.6 on https://trac.buddypress.org/ please? BP Core doesn’t use this function directly so we ought to be able to tidy up this templatetag.

    #92234
    christofian
    Participant

    I don’t think the problem is any of the plugins, but buddypress itself. I would file a bug, but I have no idea what is causing it. People, please give us a little bit of help here. This problem is driving us mad, and I have been searching on the forums and finding nothing.

    #92229
    thelandman
    Participant

    @darrin365, I think this might solve your problem!

    Go into Buddymatic theme header.php file and make sure that its not calling a different version of jquery.

    Make sure you are running jquery 1.4.2.

    #92226
    thelandman
    Participant

    @paulhastings0, of course I’ll try turn it into a plugin. I’ve never written a plugin but I’m pretty sure I can take a crack at it.

    @pcwriter, the simple way to do it would be to make the “chat” page open in a new window. That’s how deviantart.com does it.

    #92221
    Paul Wong-Gibbs
    Keymaster

    I think it’s here https://wordpress.org/extend/plugins/first-visitor-message/. I can see straight away that it is loading its own version of jQuery. It is also loading its own javascript on every front-end and admin page load. I think if these issues were addressed in the plugin, it would work properly with BuddyPress.

    #92220

    I’ve just had another look at it and isolated the plugin.

    It was “First Visit Message” as demonstrated on this site http://www.thijmenstavenuiter.nl/ I’m no coder but I think it’s using jquery to do what it does.

    I can’t find it in the plug-in directory so perhaps the author, Thijmen Stavenuiter withdrew it after s/he figured out it was creating a conflict.

    It affected the avatar crop tool by not allowing me to crop an image and also Buddypress Link plugin- which was frustrating as it wouldn’t let me upload a link.

    #92219

    Okay Paul, i’ll get back to you with some leads later tonight, I’ve still yet to pinpoint which plugin is causing problems at the moment, doing my head in a bit because the same error has effected a few different features of the site – i assume.

    #92218
    Paul Wong-Gibbs
    Keymaster

    If you can give us the name of plugin whose javascript conflicts with BuddyPress’ avatar crop, we can investigate and see how to improve it. If you get a browser warning message, too, that would be helpful in pinpointing the error.

    #92217

    @jenyus is right! jQuery conflicts appear to be rife. I’ve had multiple plugins affect the functionality of the Avatar and avatar crop feature, with the only solution turning them off. There needs to be a better way of isolating problems concerning jQuery.

    #92215
    Hugo Ashmore
    Participant

    @travel-junkie

    Just been having a play around, although can’t yet see an approach to change the mismatch notice when > 0 characters I did add in a stronger warning on username password matches.

    I changed //password1 == username to return ‘badPassUsername’ leaving ‘badPass’ to work for the score < 40

    Added a new var badPassUsername = 6

    added new ‘case 6’ to the switch and made relevant adjustments to the var pwsL10n in bpxs-core.php

    so now on my copy a username == password1 match informs the user the password is insecure as username matches password, that’s the polite version anyway :)

    What I wanted to work further on is to then halt the process until user had made a change as at the minute despite the warning the registration will still submit that numpty password.

    #92214
    leguis
    Participant

    Thanks gpress is a great plugin

    imjscn
    Participant

    @boonebgorges, if I want to do this on the header of profile page—
    if user ID is 1 or 2, display

    ABC

    instead of

    “last update’, “mention this user”….

    if user is anybody else, display item-meta as normal.
    How to do this?

    #92201
    Pisanojm
    Participant

    Also check out the well-supported themes by the wpmudev.org group… they cost, but they will provide fantastic support and are guaranteed to work with all upcoming BP updates… Agree with @modemlooper …. the beauty of BuddyPress is you can do anything… the caveat with that is you have to spend a lot of time figuring it all out, trying things, and you might even need to learn a little “programming” along the way to make it do what you want…

    http://buddydress.com/themes/

    Pisanojm
    Participant

    @nuprn1 @mercime @boonebgorges

    Thank you for leading me to the code to get to this… I basically just did a super-slight mod of Rich’s code. Here is what I used and I put it in the the bp-custom.php file in the plugins directory:

    `<? function my_group_loop_activity_item() {

    global $bp, $activities_template;

    if ( !bp_is_active( ‘activity’ ) )

    return;

    if ( !bp_group_is_visible() )

    return;

    $show_hidden = false;

    /* Group filtering */

    $object = $bp->groups->id;

    $primary_id = bp_get_group_id();

    if ( ‘public’ != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, bp_get_group_id() ) )

    $show_hidden = true;

    /* Note: any params used for filtering can be a single value, or multiple values comma separated. */

    $defaults = array(

    ‘display_comments’ => false, // false for none, stream/threaded – show comments in the stream or threaded under items

    ‘sort’ => ‘DESC’, // sort DESC or ASC

    ‘page’ => 1, // which page to load

    ‘per_page’ => false, // number of items per page

    ‘max’ => 1, // max number to return

    ‘include’ => false, // pass an activity_id or string of ID’s comma separated

    ‘show_hidden’ => $show_hidden, // Show activity items that are hidden site-wide?

    /* Filtering */

    ‘object’ => $object, // object to filter on e.g. groups, profile, status, friends

    ‘primary_id’ => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.

    ‘action’ => ‘new_forum_topic’, // action to filter on e.g. activity_update, new_forum_post, profile_updated

    ‘secondary_id’ => false, // secondary object ID to filter on e.g. a post_id

    /* Searching */

    ‘search_terms’ => false // specify terms to search on

    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r );

    $filter = array( ‘user_id’ => false, ‘object’ => $object, ‘action’ => $action, ‘primary_id’ => $primary_id, ‘secondary_id’ => $secondary_id );

    $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden );

    while ( bp_activities() ) : bp_the_activity(); ?>

    <div class="item-descb" id="activity-“>

    Latest Topic Activity in the Group:

    <a href="”>

    <?php endwhile;

    }

    add_action( ‘bp_directory_groups_item’, ‘my_group_loop_activity_item’ );
    ?>`

    I also added this to the default.css to give me a little more control of the output (changed the div in the original to match below):

    ` ul.item-list li div.item-descb {
    margin: 10px 0 0 64px;
    font-size: 11px;
    color: #888;
    width: 85%;
    }
    `

    THANKS AGAIN! Here is a pict completed:
    http://mustech.net/holder/grouptopic2.jpg

    #92199
    @mercime
    Participant

    Theme, you can get a WordPress theme with magazine format then install BP Template Pack which you will need to tweak to mesh with HTML structure of your WP theme.

    Photos, videos and audio (if you allow all three in admin) uploads working with BP Gallery Plugin, which is premium at this time. You could set Gallery page to include all media or set up pages for respective media. Edit – Also individual members plus groups have their own respective photo, video and audio gallery pages out of the box.

Viewing 25 results - 46,801 through 46,825 (of 68,967 total)
Skip to toolbar