Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 526 through 550 (of 636 total)
  • Author
    Search Results
  • #83093
    lincme.co.uk
    Member

    @johnjamesjacoby; Just a quick note, as I’m off out for a while. I noticed in the previous version of BP that the ‘?’ symbol on the profile age next to the avatar was reporting names wrongly. I hacked it in core, but now it’s back in the new version.

    Eg., with a user ‘fred’, when logged in as fred the message is correct. But if I’m logged in as ‘admin’ I get this when looking at fred’s profile (notice ‘admin’ in second sentence);

    @ fred is a unique identifier for admin that you can type into any message on this site. admin will be sent a notification and a link to your message any time you use it.

    When I hacked it I removed the extra names, as they’re not required;

    @ fred is a unique identifier for this person that you can type into any message. He/she will be sent a notification and a link to your message when you do this.

    #82446
    paulhastings0
    Participant

    Btw, the correct username is @apeatling, not @andy (that poor guy is getting overloaded with a bunch of non-relevant notifications. :P ;) )

    #82371
    grosbouff
    Participant

    Ok. Here my code now :

    loader.php
    function yclads_bp_init() {
    require_once( YCLADS_BP_PLUGIN_PATH . 'includes/yclads-bp-core.php' );
    }
    add_action( 'bp_init', 'yclads_bp_init');

    yclads-bp-core.php

    function bp_yclads_setup_globals() {
    global $bp;

    // For internal identification
    $bp->yclads->id = 'yclads';

    $bp->yclads->format_notification_function = 'bp_yclads_format_notifications';
    $bp->yclads->slug = YCLADS_SLUG;

    // Register this in the active components array
    $bp->active_components[$bp->yclads->slug] = $bp->yclads->id;

    do_action( 'bp_yclads_setup_globals' );

    }
    //TO FIX
    //add_action( 'bp_setup_globals', 'bp_yclads_setup_globals' );
    add_action( 'wp', 'bp_yclads_setup_globals');
    add_action( 'admin_menu', 'bp_yclads_setup_globals');

    function bp_yclads_setup_root_component() {
    /* Register 'yclads' as a root component */
    bp_core_add_root_component( YCLADS_SLUG );

    }
    //TO FIX
    //add_action( 'bp_setup_root_components', 'bp_yclads_setup_root_component' );
    add_action( 'wp', 'bp_yclads_setup_root_component');
    add_action( 'admin_menu', 'bp_yclads_setup_root_component');

    function bp_yclads_setup_nav() {
    global $bp;
    global $post;

    if ((is_single()) && ($post->post_type=='yclad')) {

    // This is a single ad.
    $bp->is_single_item = true;
    $bp->yclads->current_ad = $post;

    [...]

    }

    [...]

    print_r($bp->current_component);
    exit;

    do_action( 'yclads_setup_nav', $bp->yclads->current_ads->user_has_access );

    }
    //TO FIX
    //add_action( 'bp_setup_nav', 'bp_yclads_setup_nav' );
    add_action( 'wp', 'bp_yclads_setup_nav' );
    add_action( 'admin_menu', 'bp_yclads_setup_nav' );

    If I access /wordpress/classified-ads/i-give-kitties/ (single-ad)


    print_r($bp->current_component);
    exit;

    outputs “i-give-kitties” while it should output “classified-ads”. So something is wrong with all this.
    Any idea ?

    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.

    #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?

    drifter0658
    Member

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

    Users still cannot create a new blog

    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?

    #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.

    #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.

    #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?

    #73453
    3sixty
    Participant

    This is now officially a “Potential Future BuddyPress Feature” for BP 1.4+ (ie, after BP 1.3, which looks to be essentially the WP 3.0 compatibility release). Here is the short list:

    A quick blog post form via the theme. (try plugin: BuddyPress QuickPress)

    Privacy controls (try plugin: bp-authz)

    Global content tagging

    Inappropriate content flagging

    Bulk accept/reject friendship requests

    Grouping of similar activity stream items

    Ability to block all communication from a user

    Option to receive forum post notifications via email

    Message file attachments

    Structured profile fields (templates for address / phone number)

    Profile field specific searching (try plugin: BP Member Filter)

    AJAX live updating of site wide activity stream

    #73237
    r-a-y
    Keymaster

    Hey Erich,

    That plugin you listed is considered “deprecated” by Boone.

    He’s now working with David on the Group Activity Stream subscription plugin.

    Boone Gorges
    Keymaster

    crashutah – Thanks a million for the feedback. The Facebook language is really helpful. I think I should be able to add an opt-out feature with only a little work.

    As for your other excellent suggestions:

    – Definitely agree about customizing the subject. My plan was to make it customizable by the site admin, but not by the end user – but on second thought it would be easy enough to put a toggle on the back end that lets the site admin decide whether users can personalize the subject line

    – The Reply To idea is very good. I’m using wp_mail, WP’s built in mail function, which in theory should allow me to feed in some headers. I will give it a try – but no promises on this one, as I’ve had trouble making the WP default reply-to address work correctly in the past and don’t feel like tearing any more hair out over it :)

    – Something must have gotten screwed up in your apostrophe comment. Do you mean that a slash showed up? I suppose that makes sense. I will have a look at stripping those slashes.

    – Great, great idea about autopopulating email field. I will take care of it right away.

    – Your point about auto-adding/auto-friending is well-taken. I kind of feel the same way. I think I might make it an admin option: send group/friend invites, or just do the adding. I can see arguments both ways (you give a good case for auto-adding, but you might also think that it’s nice to get some notifications first thing when you log in…) so I think it might be best left as an option for the administrator.

    Again, I really appreciate the detailed feedback.

    #71152
    jlindo
    Member

    I am also very interested i this functionality. The ideal for me would be a sidebar widget with something like “suggested friends” or “people with similar interests” that lists a few links to people who’s profile info is similar. A weekly email notification of these people’s profiles would also be fantastic.

    This has same great implications because it encourages users to interact with people they don’t know and they are (might be?) more likely to do so because of their self-described similarities.

    #70831
    dre1080
    Member

    for the whats new text u can try,

    <?php if (is_user_logged_in() ) { //only logged in user can view this ?>

    //place content here

    <?php } ?>

    u can use that to show something only to logged in users and:

    <?php if (!is_user_logged_in() ) { //only non-logged in user can view this ?>

    //place content here

    <?php } ?>

    to show something only to users who are not logged in

    if u are using a text widget try use the widget logic plugin also

    #70830
    dre1080
    Member

    why not use the bp-notifications widget plugin and create a widget area where you would like in your template..

    check your code for the login form because iv tried this and it goes once a user is logged in..

    try this:

    <?php if (!is_user_logged_in() ) { //only non-logged in user can view this ?>

    <form name=”login-form” id=”login-form” class=”standard-form” action=”<?php echo site_url( ‘wp-login.php’, ‘login’ ) ?>” method=”post”>

    <div style=”font-weight:bold; margin-left: 20px; margin-bottom: 10px;”><label>

    <input type=”text” name=”log” id=”userbar_user_login” class=”input” value=”<?php echo attribute_escape(stripslashes($user_login)); ?>” /></label></div>

    <label><?php _e( ‘Password’, ‘buddypress’ ) ?>

    <input type=”password” name=”pwd” id=”userbar_user_pass” class=”input” value=”” /></label>

    <p class=”forgetmenot”><label ><input name=”rememberme” type=”checkbox” id=”userbar_rememberme” value=”forever” /> <?php _e( ‘Remember Me’, ‘buddypress’ ) ?></label></p>

    <input type=”submit” title=”Login” name=”wp-submit” id=”userbar_wp-submit” value=”<?php _e(‘Login’); ?>” tabindex=”100″ />

    <input type=”hidden” name=”redirect_to” value=”<?php bp_root_domain() ?>” />

    <input type=”hidden” name=”testcookie” value=”1″ />

    </form>

    <?php } ?>

Viewing 25 results - 526 through 550 (of 636 total)
Skip to toolbar