Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 926 through 950 (of 1,091 total)
  • Author
    Search Results
  • escape311
    Member

    I’m trying to find a way to remove the BuddyPress admin bar for anyone who is not a moderator or admin. Regular, logged in members don’t really need to see it. I have notifications in a widget in the sidebar which is all my users were using it for anyways. Any ideas how I can do this?

    Thanks!

    EDIT: I solved this actually. Although I didn’t remove the admin bar, I modified it. I mainly just wanted to hide the Visit link, and create a link to the Dashboard and a sub link to create a New Post only visible to Moderators/Admins. I did this by modifying the Buddypress Admin Bar Mods plugin.

    techguy
    Participant

    Lots of previous threads for this. Even a recent one with a Trac ticket to make it so it doesn’t require lowercase:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/register-username-with-uppercase/
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/allowing-users-to-type-in-uppercase-letters-for-the-username/
    https://buddypress.org/community/groups/installing-buddypress/forum/topic/username-starts-from-uppercase-letter/

    I’m not sure if the lowercase does matter in other sections. You might add the question to the Trac ticket and see if the core developers can answer. This is something I’d like to fix too. The other solution I’ve considered is to have some javascript function that will check the username to make sure 1. it’s available and 2. that it’s lowercase and 3. Any other validation. At least a notification before they click submit would be sufficient.

    #80873
    zlamczyk
    Participant

    Figured this out, finally. Turns out that the file and function to modify was:
    wp-contentpluginsbuddypressbp-corebp-core-filters.php
    –>function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta )

    Isn’t it redundant to have two functions so similar to each other? Both the above function and
    wp-contentpluginsbuddypressbp-corebp-core-signup.php
    –>function bp_core_signup_send_validation_email( $user_id, $user_email, $key )
    are extraordinarily similar to each other. It’s kinda frustrating.

    I’d consider developing a plugin, but perhaps I’ll wait for the first release of WP 3.0.

    #80521
    techguy
    Participant

    Why not just leave it on the notification page? So far, you haven’t removed the functionality. You’ve just removed the navigation to see some of that functionality. So, if someone does the @username they’re going to get a notification unless you disable that also. Plus, not many people are going to look at the notifications page anyway;-)

    To your question, I think you would have to remove the action and write another function that doesn’t display the mentions settings. You’d just need to test what happens when save is clicked and that setting isn’t passed. Maybe you pass it as a hidden variable or something.

    #12143
    MisterS
    Participant

    Hello everybody,

    I’am currently trying to hide the @mention function to users of my website. So i’ve put the following code in the “bp-custom.php” file :

    function modify_bp_core_hide_mention_item(){
    global $bp;
    bp_core_remove_subnav_item($bp->bp_nav, $bp->bp_options_nav);
    }
    add_action(‘bp_activity_setup_nav’,’modify_bp_core_hide_mention_item’,0);

    It seems to work well, the “mention” navigation menu is hidden.

    But i have one problem left. There is still a reference to the mention function on the “notifications settings” page, which asks the user if he wants to have an email sent when someone mention him somewhere with the @mention function.

    I’ve found out that this display is made by the function “bp_activity_screen_notification_settings” in the “bp-activity.php” file, which basically just prints a table and then is added to the “bp_notification_settings” hook :
    add_action( ‘bp_notification_settings’, ‘bp_activity_screen_notification_settings’, 1 );

    So my question is : shall I remove this action and write another function which doesnt display the mentions settings ? or is there any better solution ?

    Oh, i’ve forgot to say that i’m a new buddypress/wp user :)

    Thank you in advance, any help is welcome.

    #80288

    In reply to: @mentions not working

    rossagrant
    Participant

    Hey Simon,
    Are you mentioning a user in a group forum?

    Someone can correct me if I am wrong but you won’t receive a notification email or note in the user bar if that is the case. You will only receive an email if someone users your username @mention in a status update that then hits the activity stream.

    Click on settings in your BP profile and look at notifications. It will list everything you get an email for. @mentions in forums isn’t one. I imagine if it was your inbox would be full of messages if you participate in a busy forum.

    Simply click on the @mentions link in your BP profile when you first login to get upto speed with @mentions.

    As I say, I’m sure a mod will correct me if I am wrong but you don’t get an email or notification in each instance when using @mentions.
    Hope this helps mate,
    Ross :)

    #80034
    techguy
    Participant

    If you put it in functions.php you’ll probably need to do something like this:
    function auto_login_bp() {
    //Automatically log the user in
    $user_info = get_userdata($user_id);
    wp_set_auth_cookie($user_id);
    do_action(‘wp_signon’, $user_info->user_login);
    }

    add_filter( ‘wpmu_signup_user_notification’, ‘auto_login_bp’ );

    Although, even then it might not know the $user_id variable. So, you might have to add the code in my original post to the bp-auto-activate-user-and-blog plugin on line 170 or so. Although, that will cause the issues I mentioned above I think.

    #80027
    techguy
    Participant

    @mazen I just figured out the code to make it work on WP. I’ll add it to my plugin above soon. Here’s the code:
    //Automatically log the user in
    $user_info = get_userdata($user_id);
    wp_set_auth_cookie($user_id);
    do_action(‘wp_signon’, $user_info->user_login);

    I tried it a little with WPMU. It kind of works, but there’s some sequencing that needs to happen better. Cause it logs me in, but not before the login box appears in the sidebar. So, it looks like you’re not logged in, but you are. Which is weird, because it’s not happening to me on WP. Although, it’s likely cause on WP I’m hooking to bp_core_signup_user and in WPMU it hooks to wpmu_signup_user_notification.

    Who’s for a unified signup process (WPMU and WP) now that they’re one?

    #11565
    #11460
    Steve Noe
    Participant

    Sorry to double post, but the last message went unacknowledged and unanswered, and I was hoping to have some resolution before heading down a long path.

    Hello, I am having a problem with the admin bar, as I have read that other people are – I am using WordPress 2.9.2 Single User, BuddyPress 1.2.3, BuddyPress Default Theme, but have also tried BuddyPress Widget Theme, and BuddyPress Columns Theme, in case it was a Javascript error. I discovered the issue, completely uninstalled everything, reinstalled fresh install of just BuddyPress and the themes, and still none of the links in My Account or Notifications drop-down work.

    Support had requested the following information:

    1. Which version of WP/MU are you running? WP 2.9.2
    2. Did you install WP/MU as a directory or subdomain install? directory
    3. If a directory install, is it in root or in a subdirectory? root
    4. Did you upgraded from a previous version of WP/MU? If so, from which version? No. Fresh, clean install
    5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes.
    6. Which version of BP are you running? 1.2.3
    7. Did you upgrade from a previous version of BP? If so, from which version? No. Fresh, clean install
    8. Do you have any plugins other than BuddyPress installed and activated? No.
    9. Are you using the standard BuddyPress themes or customized themes? Standard BP
    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? Installed bbPress from within BP UI
    13. Please provide a list of any errors in your server’s log files. Didn’t check.
    14. Which company provides your hosting? Hostmonster

    Thanks for your help!

    drifter0658
    Member

    Okay…I worked around the sitewide messages issue with a plugin called: Sitewide Newsletters

    Users still cannot create a new blog

    Hamed Takmil
    Participant

    Hi guys,

    I need to watch and approve every single registration to restrict unwanted access to my private club. Like other social network the ideal form is be informed by notification mail upon user registration and that’s the admin choice to approve or not to approve new request. so how can I do that? I’m using latest version of BuddyPress.

    Thanks in Advance.

    Hugo Ashmore
    Participant

    Boone there is this plugin which is really for dev setups where passing emails through the dev network is awkward so allows you to register a user normally then go into backend and manually approve using the activation id

    WPMU Manual Member Approve:
    http://mattkern.com/wpmu-manually-approve-new-members-on-local-install/

    Would you believe though I just tried to run it on my local site and it’s broken! at least it’s throwing an undefined function error bp_page_title()

    Haven’t time to look into that but it doesn’t look to much of an issue.

    Of course this doesn’t get round the issue of letting those users know they have been activated and not really sure one wants to simply activate a bunch of accounts when the users are never going to know about it.

    Of course once activated and once you have established you are sending emails correctly you might be able to work some means of adding everyone to a group and posting an update to that group that will send a notification out to email addresses?

    marvc
    Participant

    Possible cross-post: My apologies in advance.
    Project site: http://nubiint.com
    BuddyPress Sub-directory: http://nubiint.com/community

    I’ve enabled the option to “Hide admin bar for logged out users” and it works fine. I’m now trying to prevent the bar from appearing on other sub-directories for logged in users. So I have the following sub-directories:
    /business
    /int-info
    /networking
    /tech

    I’ve uploaded the “bp-hide-sub-blog-adminbar” plugin and activated it but it doesn’t do anything by default so I add a blog ID as follows:

    <?php
    if($blog_id != 2) < – /business Blog ID

    This doesn’t do anything. Am I missing something?

    Another issue I notice on the Main MU site for logged in users is the following that appears below the website:

    •My Account
    ?Activity
    ?Personal
    ?Friends
    ?Groups
    ?Favorites
    ?@admin Mentions
    ?Profile
    ?Public
    ?Edit Profile
    ?Change Avatar
    ?Blogs (6)
    ?Messages ?Inbox
    ?Sent Messages
    ?Compose
    ?Notices
    ?Friends (0)
    ?My Friends
    ?Requests
    ?Groups (0)
    ?My Groups
    ?Invites
    ?Settings
    ?General
    ?Notifications
    ?Log Out
    •My Blogs
    ?NU.B.I-I.N.T.
    ?Dashboard
    ?New Post
    ?Manage Posts
    ?Manage Comments
    ?Business
    ?Dashboard
    ?New Post
    ?Manage Posts
    ?Manage Comments
    ?Community
    ?Dashboard
    ?New Post
    ?Manage Posts
    ?Manage Comments
    ?Networking
    ?Dashboard
    ?New Post
    ?Manage Posts
    ?Manage Comments
    ?Technology
    ?Dashboard
    ?New Post
    ?Manage Posts
    ?Manage Comments
    ?Internet Information
    ?Dashboard
    ?New Post
    ?Manage Posts
    ?Manage Comments
    •Notifications
    ?No new notifications.
    •Visit
    ?Random Member
    ?Random Group
    ?Random Blog

    You can see it by navigating to the site above. How do I remove this?

    Any responses appreciated.

    #75268
    Dwenaus
    Participant

    An quick update. The new version should not be used on live sites because we are currently re-doing the data structure, so any groups that users join now, they will have to re-join later.

    About the follow topic link on the topic page, I forgot to put in the read me the instructions for adding the proper action hook into the buddypress code. I’ve added the request to trac, so it should eventually be in BP core.

    Here you can see what needs to be added: https://trac.buddypress.org/attachment/ticket/2129/2129_forum_topic.diff
    really it is just ` ` that needs to be added to bp-themes/bp-default/groups/single/forum/topic.php before `

    `

    stay tuned for the final version which will be ready in about a week.

    #10849
    Avatar
    Participant

    Had our first Hacker attack…

    WhooHoo…

    It was a friend’s acquaintance trying to prove a point

    so kinda silly – and taken care of.

    But it did bring Security issues to mind.

    Thankfully the Group-Notifications plug-in has some anti-spam measures.

    Any ideas on how to Baton Down the Hatches for BuddyPress?

    We need to keep it open to registration and activity.

    But how do we squash and ban certain unruly users quickly and effectively?

    I now have WP plug-ins installed: Ban Hammer and WP-Ban

    which are good for banning IPs, hostnames, etc.

    But what about on the BP side?

    How do we moderate Activity feeds especially?

    Let us know some thoughts and ideas.

    – Avatar –

    .

    #74618
    3sixty
    Participant

    I still can’t figure out how to ping the user. This would be a good topic for Buddypress Gurus to think about for a FAQ or developer guide.

    #74513
    Avatar
    Participant

    Hey mates, I’ve been trying to work this out as well.

    Been trying Andy’s External Blogs RSS and Group Twitter Plugins

    with WPmu 2.9.2

    They work well within the Groups,

    But they seem to have this feature of updating the Group Activity Feed every time a user visits the group.

    So I get double / multiple posts.

    + with the Group Notifications Plugin, I get multiple emails

    every time someone visits the group and refreshes the feed.

    Any Ideas how I could at least shut off the refresh every time someone visits the group.

    If this is manageable, they’re both great and very useful plugins.

    Please let me know your thoughts and solutions.

    – Jeff –

    http://www.Vybee.com

    .

    #74460

    In reply to: send mass email

    Gianfranco
    Participant

    I didn’t try yet the” This is a notice to all users” yet, but I thought that that would send an email notifications to all the users (if they have email notifications on).

    Selecting that checkbox, does it send only a site notification instead? I mean when users log in? No mail?

    #73847
    Gianfranco
    Participant

    I tried this, doesn’t print anything neaither:

    <ul id="user-menu">
    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>

    <?php function my_bp_adminbar_notifications_menu() {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo count($notifications) ?></span>
    <?php
    }

    echo '</a>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }

    echo '</ul>';
    echo '</li>';
    }
    ?>

    <?php if( function_exists('my_bp_adminbar_notifications_menu') ) my_bp_adminbar_notifications_menu(); ?>

    </ul>

    Is anything in there correct?

    #73834
    Gianfranco
    Participant

    @r-a-y I tried this:

    <?php function my_bp_adminbar_notifications_menu() {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    echo '<li id="bp-adminbar-notifications-menu"><a href="' . $bp->loggedin_user->domain . '">';
    _e( 'Notifications', 'buddypress' );

    if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    <span><?php echo count($notifications) ?></span>
    <?php
    }

    echo '</a>';
    echo '<ul>';

    if ( $notifications ) { ?>
    <?php $counter = 0; ?>
    <?php for ( $i = 0; $i < count($notifications); $i++ ) { ?>
    <?php $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    <?php $counter++; ?>
    <?php } ?>
    <?php } else { ?>
    <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>
    <?php
    }

    echo '</ul>';
    echo '</li>';
    }
    ?>

    Which is the same funtion except for the name “my_bp_adminbar_notifications_menu”.

    It doesn’t print anything.

    Probably something with the “bp_core_get_notifications_for_user” that is desabled because of my desabling the default Admin bar?

    I admit that I php is not my strong point at all.

    #73823
    Gianfranco
    Participant

    I’ve put the function right in the ul, like so:

    <ul id="user-menu">

    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
    <li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>

    <?php bp_adminbar_notifications_menu(); ?>

    </ul>

    …to see waht it produces. It just breaks my layout. The whole ul disapeears and the layout after that is broken.

    In Firebug I can see this error: Call to undefined function bp_adminbar_notifications_menu()

    Mmm… I got BP Template Pack installed, if that makes it a hint of any kind.

    Gianfranco
    Participant

    For Cureuphoria (http://cureuphoria.com) I disabled the default admin bar and decided to design a custom one that would fit the design better.

    define('BP_DISABLE_ADMIN_BAR', true);

    When you’re not logged in, the bar displays the login fields, and a link to create an account if you don’t have one.

    When you are logged in, the bar displays the member avatar, and links such as: My profile – My messages – My friends – My groups – Settings – Logout.

    Now, I’d like to have the notifications system in that bar, like for the default bar I desabled.

    First question is: can I do that?

    Second question is: if I can, how?

    Here’s my code:

    <div id="curemates-bar">

    <?php if ( is_user_logged_in() ) : //logged in ?>

    <?php do_action( 'bp_before_sidebar_me' ) ?>

    <a href="<?php echo bp_loggedin_user_domain() ?>"><?php bp_loggedin_user_avatar( 'type=thumb&width=30&height=30' ) ?></a>

    <ul id="user-menu">
    <li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
    <li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
    <li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>
    </ul>

    <?php do_action( 'bp_sidebar_me' ) ?>

    <?php do_action( 'bp_after_sidebar_me' ) ?>

    <?php if ( function_exists( 'bp_message_get_notices' ) ) : ?>
    <?php bp_message_get_notices(); /* Site wide notices to all users */ ?>
    <?php endif; ?>

    <?php else : //not logged in ?>

    ...stuff...

    <?php endif; ?>

    </div><!-- end "curemates-bar" -->

    Now, I now that the code I am looking for is in the “bp-core-adminbar.php” file, and I’ve made a few attempts to extract what needed to re-create the notifications menu, but obviously without success.

    Can anybody help me out with this?

    Thanks.

    #73531
    3sixty
    Participant

    Just to start building this out as a how-to:

    To add a notification, you would call this function located in bp-core-notifications.php

    bp-core-notifications; function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false )

    So as a test, if you wanted to store a notification that the user had just visited the activity page, you could make up a new notification type ‘activity_viewed’ and use this code:

    bp_core_add_notification('100', (int)$bp->loggedin_user->id, 'activity', 'activity_viewed');

    Of course, that’s useless unless we ping the user. Next step: how do we add the little notification to the buddy bar? Any ideas?

Viewing 25 results - 926 through 950 (of 1,091 total)
Skip to toolbar