Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notification user id'

Viewing 25 results - 1,051 through 1,075 (of 1,091 total)
  • Author
    Search Results
  • #51863
    Jeff Sayre
    Participant

    r-a-y

    There are a number of new hooks and an array object that need to be available for the privacy component to function. Although the alpha versions may work with v1.1, the full-blown version is really targeted for v1.2 and will require that as a minimum.

    Concerning your wire post, for some reason, I believe that I never received that email. Strange, since I do have all my email notifications set to “Yes”.

    But, to answer that specific question, your direct calls to xprofile fields should still function properly. Since you are pulling your data directly from the table and not from a templatetag function, you should be fine. Now, if you want your direct calls to be subjected to privacy control, then that is a different matter. You would then need to pull your data after the fields array has been filtered.

    There is a separate table that gets installed that handles all privacy object settings. The privacy component filters the fields array that populates the profile page, removing any field-level elements that a given user chooses to hide from a given viewer category.

    #51652
    r-a-y
    Keymaster

    Just experienced the OP’s problem.

    I looked into it and found a tentative fix… though a BP dev will need to look at the code.

    In “bp-core/bp-core-notifications.php”, look for the bp_core_notifications_for_user() function.

    Then look for these lines:

    $item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->item_id : false;
    $secondary_item_id = ( 1 == $action_item_count ) ? $component_action_items[0]->secondary_item_id : false;

    Change this to:

    $item_id = $component_action_items[0]->item_id;
    $secondary_item_id = $component_action_items[0]->secondary_item_id;

    I don’t know why there was a check done for only 1 item and then returning false for more than 1… if a BP dev can explain why, that’d be great.

    Let me know if anyone encounters any problems.

    Trac ticket made.

    #50191
    Jeff Sayre
    Participant

    The Skeleton Component is just that–a generic, bare-bones plugin template that you can use to create your own, custom BuddyPress plugin.

    But the only things that this plugin do is to put in profil EXAMPLE..

    Did you read the in-line documentation? At the top of bp-example.php it reads:

    --- SKELETON COMPONENT V1.2.2 ---

    Contributors: apeatling, jeffsayre

    This is a bare-bones component that should provide a good starting block to
    building your own custom BuddyPress component.

    It includes some of the functions that will make it easy to get your component
    registering activity stream items, posting notifications, setting up widgets, adding
    AJAX functionality and also structuring your component in a standardized way.

    It is by no means the letter of the law. You can go about writing your component in
    any style you like, that's one of the best (and worst!) features of a PHP based platform.

    I would recommend reading some of the comments littered throughout, as they will
    provide insight into how things tick within BuddyPress.

    You should replace all references to the word 'example' with something more suitable
    for your component.

    IMPORTANT: DO NOT configure your component so that it has to run in the
    /plugins/buddypress/ directory. If you do this, whenever the user auto-upgrades
    BuddyPress - your custom component will be deleted automatically. Design
    your component to run in the /wp-content/plugins/ directory

    #5803
    grosbouff
    Participant

    Hi; I got another problem while trying to handle a single item.

    First, this is the code which ‘handles’ my navigation (checks if we are in our profile, in another profile, in the directory or viewing a single item)

    if ($bp->current_component == $bp->classifieds->slug) { //we are in classifieds
    if (bp_is_home()) { //we are in our profile
    ...
    }elseif (($bp->displayed_user->id) && (!bp_is_home())) {//we are in someone else profile
    ...
    }else if ( $bp->is_single_item ) {
    // We are viewing a single classified, so set up the
    // classified navigation menu using the $classified_obj global.

    /* When in a single classified, the first action is bumped down one because of the
    classified name, so we need to adjust this and set the classified name to current_item. */
    $bp->current_item = $bp->current_action;
    $bp->current_action = $bp->action_variables[0];
    array_shift($bp->action_variables);

    $classified_link = $bp->root_domain . '/' . $bp->classifieds->slug . '/' . $classified_obj->slug . '/';

    // Reset the existing subnav items
    bp_core_reset_subnav_items($bp->classifieds->slug);

    bp_core_add_nav_default( $bp->classifieds->slug, 'classifieds_screen_classified_home', 'home' );
    bp_core_add_subnav_item( $bp->classifieds->slug, 'home', __('Home', 'buddypress'), $classified_link, 'classifieds_screen_classified_home', 'classified-home' );
    // If the user is a classified mod or more, then show the classified admin nav item */
    }else { //we are in directory
    $bp->is_directory = true;
    ...
    }

    }
    }

    So if we are viewing a single item; this is the function called :

    function classifieds_screen_classified_home() {
    global $bp;

    echo "function classifieds_screen_classified_home";exit;

    if ( isset($_GET['new']) ) {
    // Delete classified request notifications for the user
    }

    do_action( 'classifieds_screen_classified_home' );

    bp_core_load_template( apply_filters( 'classifieds_template_classified_home', 'classifieds2/classified-home' ) );

    }

    Here’s my problem :

    If I go to /classifieds/classified1234

    It goes to the function classifieds_screen_classified_home() and runs the code echo “function classifieds_screen_classified_home”; exit; ).

    But If I go to /classifieds/classified1234/watch

    It does not !

    What is strange is that in my code above; if I put

    echo “single item”;exit;

    at the top or at the bottom inside my statement

    }else if ( $bp->is_single_item ) {

    and that I try

    /classifieds/classified1234 or /classifieds/classified1234/watch, it does echoes “single item” then exit.

    So I don’t understand why after it doesn’t run the function classifieds_screen_classified_home.

    Any idea ?

    Thanks a LOT.

    #5802
    grosbouff
    Participant

    Hello, I got a little error here.

    I’m trying to load the template for a single item.

    My start point was the bp-groups plugin.

    Here’s the function called if it is a single item :

    function classifieds_screen_classified_home() {
    global $bp;

    if ( $bp->is_single_item ) {

    if ( isset($_GET['new']) ) {
    // Delete classified request notifications for the user
    }

    do_action( 'classifieds_screen_classified_home' );

    bp_core_load_template( apply_filters( 'classifieds_template_classified_home', 'classifieds2/classified-home' ) );

    }
    }

    It does go in that function since it exits if I put “exit;” at the beginning of the function.

    But the template does not load; I got a Sorry, that page was not found alert.

    • I’ve checked the name of the files, it’s ok : I have a bp-themes/bpmember/classifieds2/classified-home.php file.
    • If I put a “exit” at the top of classified-home.php, it does not exit -> so it is sure the template does not loads.
    • If I comment the bp_core_load_template line, it goes to my profile (.

      …/members/admin)

    Does anyone have an idea of what the problem could be ?

    Thanks !

    #5758
    zeitweise
    Participant

    Hi there,

    when trying to update from bp 1.0.1 to 1.0.2 I get this error notification:

    Fatal error: Cannot redeclare bp_activity_install() (previously declared in /home/pacs/mih15/users/qtipp/doms/q-tipp.org/subs/community/buddypress/wp-content/plugins/buddypress/bp-activity.php:27) in /home/pacs/mih15/users/qtipp/doms/q-tipp.org/subs/community/buddypress/wp-content/plugins/buddypress/bp-activity.php on line 101

    1. Which version of WPMU are you running? – 2.7.1
    2. Did you install WPMU as a directory or subdomain install? –

      subdomain install

    3. Was WPMU functioning properly before installing/upgrading BuddyPress? –

      yes

    4. Which version of BuddyPress (BP) are you running? –

      1.0.1

    5. Do you have any plugins other than BuddyPress installed and activated? –

      yes: geopress, CPT BuddyPress XProfile Privacy, bp-events

    6. Are you using the standard BuddyPress themes or customized themes? – standard
    7. Have you modified the core files in any way? –

      yes, according to this advice for cpt buddypress xprofile privacy plugin

      bp-xprofile/bp-xprofile-classes.php
      find method
      BP_XProfile_Field::get_edit_html()

      and at the end of the method, just before return $html, add this line:
      $html = apply_filters('bp_xprofile_field_edit_html', $html, $this);

    8. Do you have any custom functions in bp-custom.php? –

      no

    9. Please provide a list of any errors in your server’s log files. –

      sorry, I do not know how to access these.

    #5723
    carinallc
    Participant

    Relatively new BP install, working smoothly – Several user accounts have been created, as well as the “admin” blog and a user blog.

    A new user account was created this morning, and that user created a new blog (I got the email notification for both). I can go to the blog directly by typing in the URL or clicking on the link in the email notification.

    However, the blog doesn’t show up in the Blogs list. Nor do the entries show up in any activity stream or recent posts.

    Any ideas? Thank you.

    #48397
    grosbouff
    Participant

    Hello. I’ve started to work on it since a few weeks.

    It starts to be interesting.

    *are things not started yet or **planed for a even more later

    TYPES & CATS

    -customizable types and categories, nestables

    **customizable fields for posting/showing classifieds in it

    MODERATION :

    -decide wether or not to allow public viewers

    -decide wether or classifieds needs validation before being published

    -*grant a user moderator for all classifieds or by type / category

    SITE VIEW

    -search, explore, filter (by categories, days, **custom fields)

    MEMBER VIEW

    -show my published classifieds

    -show my- awaiting moderation [author/moderators only]

    -show my unactive

    -watched : when you click a button on a classified, it will be in your profile and you’ll be notified if someone posted a on the wire or if the author modify it +*watched types & cats

    -single classified : see details, author, see & post on the wire, see watchers

    MEMBER OPTIONS

    -*email notifications for new classifieds, classifieds by type,category

    -*email for new posts on wire (watched classifieds)

    -**email for new classifieds of friends

    -*filters for home page

    POSTING

    – user needs to agree terms & conditions (only once) before posting

    -fields : title, description, type, category

    -****customizable fields

    -****photos

    -enable wire

    -*enable email notifications when editing (for watchers)

    …maybe i’ll start with this :)

    I also have to say that it is a huuuge work and I’ll probably open a project page with a PAYPAL button to encourage me (need it).

    I’m not a professional coder but i’m trying to do the best possible.

    Today i’ve almost finished the admin part.

    Proud to say that I’ve find something to dynamically (jQuery) add types/cats and edit,order (nested!!),delete,save them. It works !!!

    <img src=”http://img53.imageshack.us/img53/420/classifiedssetup.jpg&#8221; alt=”classifieds setup” >

    Moominmama
    Participant

    Oh one more thing! I think my issue before was that I was using a newer version of bbpress on my install. I didn’t realize that until I went back through The Easy Button’s integration instructions:

    http://theeasybutton.com/blog/2009/04/30/integrating-buddypress-10-wpmu-and-bbpress/

    This time around I used the bbpress he linked to directly and it was the old green interface. The one I used on the last screwy installation was a newer one with an interface much more like the current WordPress version. So that’s something else folks might want to try if they’re having trouble (going back down to an earlier BBPress install.)

    Working site is here: http://www.openadoptionsupport.com

    I was able to import users and groups very easily via PHPMyAdmin so I didn’t really lose anything with the clean reinstallation.

    Roger Coathup
    Participant

    @jeff:

    I’d already marked two of those threads as resolved, and posted what was causing the problem.

    They weren’t problems related to this.

    I have 2 unresolved threads open: the media library duplicate declaration problem, and the failure to add a friend issue.

    I’ve responded to your feedback on these in thread: https://buddypress.org/forums/topic.php?id=3000

    I appreciate the helpful responses from anyone on this forum (moderators and regular users alike). Thanks in advance.

    #46711
    petronic
    Participant

    I am very interested in privacy component. How is it going so far? Do you have some estimation when will it be available to test or use?

    What I have found as a must regarding privacy (until now) is:

    – allowing user to set what details from profile s/he wants to be public, available just to friends or private

    – settings on activity streams which will allow user to select what type of activities s/he wants to be displayed in sitewide activity, be available to friends or be totally private. This settings could be similar to Notification settings (for email notifications).

    I intended to write this on my own, but found out that it can’t be done easily without changing activity core files (and that is never a good option) and then I discovered that you are working on privacy component. So, if you see a way how I can help in development process, please let me know.

    Moominmama
    Participant

    First of all, thanks as always to the amazing support system around the WordPress family!! You guys are great and I wouldn’t have gotten THIS far without the generous support and multitude of resources on blogs and on this forum. I’m posting after doing many searches and not finding a fix that applies. (Granted, I ain’t all that techie and I may be missing something totally obvious!)

    Here’s my site: http://www.openadoptionsupport.com

    I’m running WPMU 2.7.1 and I’ve installed it in the root of my domain at BlueHost. This is a clean, manual (not simplescripts) install and WPMU was working fine when I carefully added BuddyPress and then linked it to BBPress. These are the plugins I have activated (besides BuddyPress):

    Sitewide:

    Limit Blogs per User 1.0

    FV Community News 1.3.1

    NoSpamUser 0.7.2

    Not Sitewide:

    Akismet 2.2.3

    Contact Form 7 1.10

    Page Links To 1.8

    Subscribe To Comments 2.1.2

    I’m using the default theme.

    It’s been a rocky start but stuff is working for the most part now. However I can’t add friends. When I click “add” I don’t get any kind of ajax — I just get shot right to my own profile. So say I’m logged in as Dawn and want to friend myself as Admin (I’ve got Admin open in Firefox and Dawn open in Opera), I’ll click the “add friend” by Admin and get shot right to my Dawn profile.

    When I try to message by clicking “send a message” or by replying to a sent message, everything seems like it’s working but then when I hit send, I end up back at the “compose” page with empty fields. If I send a message from there by manually inputting the addressee (“admin”) it’ll work. Admin will get the message and (eventually) an email notification.

    Finally if I add something to the wire in a group and choose “notify members by mail” nothing shows up by mail.

    Error Logs (note: I have some other issues going on and some of these errors may be unrelated to this or they may all be one and the same — just trying not to throw EVERYTHING into one thread but I did up my php.ini memory to 128mb):

    [Sun May 31 13:56:14 2009] [warn] RewriteCond: NoCase option for non-regex pattern ‘-d’ is not supported and will be ignored.

    [Sun May 31 13:56:30 2009] [warn] RewriteCond: NoCase option for non-regex pattern ‘-f’ is not supported and will be ignored.

    [31-May-2009 08:20:43] PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home1/openboo2/public_html/wp-content/plugins/buddypress/bp-forums/bp-forums-bbpress-live.php on line 425

    [31-May-2009 07:19:32] PHP Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘openboo2_oas’@’localhost’ (using password: YES) in /home1/openboo2/public_html/blogging/forum/bb-includes/backpress/class.bpdb.php on line 123

    [31-May-2009 07:19:32] PHP Warning: Cannot modify header information – headers already sent by (output started at /home1/openboo2/public_html/blogging/forum/bb-includes/backpress/class.bpdb.php:123) in /home1/openboo2/public_html/blogging/forum/bb-includes/functions.bb-pluggable.php on line 214

    [31-May-2009 08:20:43] PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home1/openboo2/public_html/wp-content/plugins/buddypress/bp-forums/bp-forums-bbpress-live.php on line 425

    [31-May-2009 08:56:25] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /home1/openboo2/public_html/wp-includes/theme.php on line 180

    [31-May-2009 08:59:05] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home1/openboo2/public_html/wp-includes/kses.php(408) : runtime-created function on line 1

    [31-May-2009 09:07:39] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 500001 bytes) in /home1/openboo2/public_html/wp-includes/class-snoopy.php on line 894

    #45838
    mgrunk1
    Participant

    BuddyPress 1.0

    Wordpress MU 2.7.1

    *replaced db name w/ mydb – and this is the errors that show at the bottom of the page in the admin – if I delete the BP plugin, the messages all go away.

    WordPress database error Table ‘mydb.wp_bp_xprofile_data’ doesn’t exist for query SELECT d.value, f.name FROM wp_bp_xprofile_data d, wp_bp_xprofile_fields f WHERE d.field_id = f.id AND d.user_id = 1 AND f.parent_id = 0 AND f.name = ‘Name’ made by require, require_once, require_once, require_once, do_action, call_user_func_array, bp_core_setup_globals, bp_core_global_user_fullname, bp_fetch_user_fullname, xprofile_get_field_data, BP_XProfile_ProfileData->get_value_byfieldname WordPress database error Table ‘mydb.wp_bp_xprofile_fields’ doesn’t exist for query SELECT id FROM wp_bp_xprofile_fields WHERE name = ‘Name’ made by require, require_once, require_once, require_once, do_action, call_user_func_array, bp_core_setup_globals, bp_core_global_user_fullname, bp_fetch_user_fullname, xprofile_set_field_data, xprofile_get_field_id_from_name, BP_XProfile_Field->get_id_from_name WordPress database error Table ‘mydb.wp_bp_notifications’ doesn’t exist for query SELECT * FROM wp_bp_notifications WHERE user_id = 1 AND is_new = 1 made by require, require_once, include, get_footer, locate_template, load_template, require_once, wp_footer, do_action, call_user_func_array, bp_core_admin_bar, do_action, call_user_func_array, bp_adminbar_notifications_menu, bp_core_get_notifications_for_user, BP_Core_Notification->get_all_for_user

    enlightenmental1
    Participant

    @ Atul Singhal

    duplicate you /register.php in your buddypress-home theme,

    (duplicate it to keep it as a backup)

    towards the bottom of register.php you’ll see something like “do_bp_core_signup”

    you can comment that out and replace it with the Iframe version of the rpx plugin

    <iframe src=”https://buzzwe.rpxnow.com/openid/embed?token_url=http%3A%2F%YOUR_SITE.com%2F%3Frpx_response%3D1%26goback%3Dhttp%253A%252F%252FYOUR_SITE.com/WELCOME_LANDING_CUSTOM_PAGE&#8221;

    scrolling=”no” frameBorder=”no” style=”width:400px;height:240px;”>

    </iframe>

    just change YOUR_SITE and WELCOME_LANDING_CUSTOM_PAGE to your own token url

    one issue I have with this on my site, is that the RPX plugin doesn’t gather much information… sometimes it will only get the email/username… sometimes the email is a “proxy mail email ” => @yahoo12343-proxymail.com (I haven’t confirmed this with all the 3rd party login providers)

    this will effect how the notifications work… so you’ll proly want your landing page to have instructions to update their profile information

    that should work

    jfcarter
    Participant

    I have used code snippets from this site to add menu items to the buddybar (using bpcustom.php). They look great, but are visible to everyone, like the Login and Signup menu items. Does anyone know how I can hide these add-on menus when users are not logged in? (like My Account, Blogs, Notifications, etc.)

    Many thanks.

    #44891
    jfcarter
    Participant

    Hi all,

    The code is located in wp-includes/wpmu-functions.php (it is a big file)

    A few caveats:

    1) There is text for the user signup email and for the blog signup email (blog signup email is also in the admin panel)

    2) There is text for a bunch of other emails, alerts and notices. All over the place

    3) The text is located in some squirrely locations, so move your cursor slowly (I missed some of the phrases a few times)

    4) Keep a log of what you change, because wpmu-functions.php will change with WPMU upgrades.

    5) You probably already know to avoid apostrophes and other symbols–depending on which ones you use, errors show up. I just avoided contractions.

    Hope this helps.

    #44889
    peterverkooijen
    Participant

    I\’d like to know as well. Especially that \”Dear User\” annoys the hell out of me. \”User\” sounds like \”drug user\” or \”abuser\” or \”you\’re not a friend, you\’re just a user!\”.

    The email is sent out after the new member has already given his name. There should be a way to just include the full name or first name in the welcome email. It\’s standard practice.

    BTW, Socialpreneur, do you mean this thread? It’s not very helpful.

    #44528
    belogical
    Participant

    yeah, it was in v1.1 for sure. i used it for my first component. i found a reference in /wp-content/plugins/buddypress/bp-example/bp-example-cssjs.php in v1.1. I tried adding this back myself and it didn’t work.

    /**
    * bp_example_add_activity_bullets_css()
    *
    * This function will allow your component to dynamically add CSS to themes so that you can
    * set the activity feed icon to use for your component.
    */
    function bp_example_add_activity_bullets_css() {
    ?>
    li a#my-example, li a#user-example {
    background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 88% 50% no-repeat;
    }

    li.example {
    background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 0 8% no-repeat;
    }

    table#bp-example-notification-settings th.icon {
    background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 50% 50% no-repeat;
    }
    <?php
    }
    add_action( \'bp_custom_member_styles\', \'bp_example_add_activity_bullets_css\' );
    add_action( \'bp_custom_home_styles\', \'bp_example_add_activity_bullets_css\' );

    ?>

    #43907
    zipnguyen
    Participant

    Burt,

    Thanks for the reply. When myself, friends, or family create a profile to test the site, I always get an email as the administrator.

    But over the past few weeks, I’m getting individuals creating buddypress profiles and upone further research into my database, I track their email addresses back to health supplements, pharma drugs, and porn sites. I don’t receive an email notification when these buddypress profiles are made.

    Currently my settings are as follows, where the second choice with the “X” is selected.

    Disabled

    X Enabled. Blogs and user accounts can be created.

    Only user account can be created.

    Only logged in users can create new blogs.

    Wondering how can they create buddypress profiles, without me getting notifications?

    Thanks,

    Ninh

    #43276
    isuru
    Participant

    sry, this is the source code. i have mentioned the functions which i modified only.

    the screen “create new group” appears with added field, the error is given when saving.

    what are the other files to be modified????????

    <?php

    /**********************

    bp-group.php

    **********************/

    function groups_install() {

    /*some code goes here*/

    $sql[] = “CREATE TABLE {$bp->groups->table_name} (

    …………..

    author varchar(50) NOY NULL,

    ………….

    ) {$charset_collate};”;

    /*some code goes here*/

    }

    function groups_check_installed() {

    if(is_site_admin()){

    if ( !$wpdb->get_var(“SHOW TABLES LIKE ‘%” . $bp->groups->table_name . “%'”) || ( get_site_option(‘bp-groups-db-version’) < BP_GROUPS_DB_VERSION ) )

    groups_install();

    }

    /*some code goes here*/

    }

    function groups_screen_group_admin_edit_details() {

    /*some code goes here*/

    if ( $bp->current_component == $bp->groups->slug && ‘edit-details’ == $bp->action_variables[0] ) {

    if ( $bp->is_item_admin || $bp->is_item_mod ) {

    if ( isset( $_POST[‘save’] ) ) {

    if ( !groups_edit_base_group_details( $_POST[‘group-id’], $_POST[‘group-name’], $_POST[‘group-desc’], $_POST[‘group-news’], $_POST[‘author’], (int)$_POST[‘group-notify-members’] ) ) {

    bp_core_add_message( __( ‘There was an error updating group details, please try again.’, ‘buddypress’ ), ‘error’ );

    } else {

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    do_action( ‘groups_screen_group_admin_edit_details’, $group_obj->id );

    bp_core_load_template( ‘groups/admin/edit-details’ );

    }

    }

    }

    add_action( ‘wp’, ‘groups_screen_group_admin_edit_details’, 4 );

    function groups_create_group( $step, $group_id ) {

    /*some code goes here*/

    if ( is_numeric( $step ) && ( 1 == (int)$step || 2 == (int)$step || 3 == (int)$step || 4 == (int)$step ) ) {

    if ( !$group_obj )

    $group_obj = new BP_Groups_Group( $group_id );

    switch ( $step ) {

    case ‘1’:

    if ( !check_admin_referer( ‘groups_step1_save’ ) )

    return false;

    if ( $_POST[‘group-name’] != ” && $_POST[‘group-desc’] != ” ) {

    /*some code goes here*/

    $group_obj->author = stripslashes($_POST[‘author’]);

    /*some code goes here*/

    if ( !$group_obj->save() )

    return false;

    /*some code goes here*/

    }

    break;

    /*some code goes here*/

    }

    }

    function groups_screen_create_group() {

    /*some code goes here*/

    if ( isset( $_POST[‘save’] ) || isset( $_POST[‘skip’] ) ) {

    /*some code goes here*/

    if ( !$group_id = groups_create_group( $create_group_step, $_SESSION[‘group_obj_id’] ) ) {

    /* error message*/

    } else {

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    /*some code goes here*/

    bp_core_load_template( ‘groups/create’ );

    }

    function groups_edit_base_group_details( $group_id, $group_name, $group_desc, $group_news, $group_author, $notify_members ) {

    /*some code goes here*/

    if ( !check_admin_referer( ‘groups_edit_group_details’ ) )

    return false;

    if ( empty( $group_name ) || empty( $group_desc ) )

    return false;

    /*some code goes here*/

    $group->news = $group_news;

    /*some code goes here*/

    if ( !$group->save() )

    return false;

    if ( $notify_members )

    groups_notification_group_updated( $group->id );

    /*some code goes here*/

    }

    function groups_screen_group_admin_edit_details() {

    /*some code goes here*/

    if ( $bp->current_component == $bp->groups->slug && ‘edit-details’ == $bp->action_variables[0] ) {

    if ( $bp->is_item_admin || $bp->is_item_mod ) {

    if ( isset( $_POST[‘save’] ) ) {

    if ( !groups_edit_base_group_details( $_POST[‘group-id’], $_POST[‘group-name’], $_POST[‘group-desc’], $_POST[‘group-news’], $_POST[‘author’], (int)$_POST[‘group-notify-members’] ) ) {

    /*error message*/

    } else {

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    /*some code goes here*/

    }

    }

    }

    //add_action();

    /**********************

    bp-groups-classes.php

    **********************/

    class BP_Groups_Group {

    /*some code goes here*/

    var $news;

    function populate( $get_user_dataset ) {

    /*some code goes here*/

    if ( $group ) {

    /*some code goes here*/

    $this->author = stripslashes($group->author);

    /*some code goes here*/

    }

    }

    function save() {

    /*some code goes here*/

    if ( $this->id ) {

    $sql = $wpdb->prepare(

    “UPDATE {$bp->groups->table_name} SET

    author = %s,

    WHERE

    id = %d

    “,

    /*some code goes here*/

    $this->author,

    /*some code goes here*/

    );

    } else {

    $sql = $wpdb->prepare(

    “INSERT INTO {$bp->groups->table_name} (

    news,

    ) VALUES (

    %s

    )”,

    /*some code goes here*/

    $this->author,

    /*some code goes here*/

    );

    }

    /*some code goes here*/

    }

    }

    /**********************

    bp-groups-filters.php

    **********************/

    add_filter( ‘bp_group_author’, ‘wptexturize’ );

    add_filter( ‘bp_group_author’, ‘convert_smilies’ );

    add_filter( ‘bp_group_author’, ‘convert_chars’ );

    add_filter( ‘bp_group_author’, ‘wpautop’ );

    add_filter( ‘bp_group_author’, ‘make_clickable’ );

    /**********************

    bp-groups-templatetags.php

    **********************/

    /*some code goes here*/

    function bp_group_author() {

    global $groups_template;

    echo apply_filters( ‘bp_group_author’, stripslashes($groups_template->group->author) );

    }

    function bp_group_author_editable() {

    global $groups_template;

    echo apply_filters( ‘bp_group_author_editable’, $groups_template->group->author );

    }

    /*some code goes here*/

    function bp_group_create_form() {

    /*some code goes here*/

    ?>

    <form action=”<?php echo $bp->displayed_user->domain . $bp->groups->slug ?>/create/step/<?php echo $create_group_step ?>” method=”post” id=”create-group-form” class=”standard-form” enctype=”multipart/form-data”>

    <?php switch( $create_group_step ) {

    case ‘1’: ?>

    <label for=”author”>* <?php _e(‘Author’, ‘buddypress’) ?></label>

    <textarea name=”author” id=”author”><?php echo ( $group_obj ) ? $group_obj->author : $_POST[‘author’]; ?>

    </textarea>

    <?php do_action( ‘groups_custom_group_fields_editable’ ) ?>

    <p><input type=”submit” value=”<?php _e(‘Create Group and Continue’, ‘buddypress’) ?> »” id=”save” name=”save”/></p>

    <?php wp_nonce_field( ‘groups_step1_save’ ) ?>

    <?php break;

    /*some code goes here*/

    }

    }

    ?>

    #42452
    Jeff Sayre
    Participant

    I assume you’re specifically talking about customizing a BuddyPress template. If so, then you need to look in the BuddyPress profiles tables in MySQL.

    For instance, the field definition for the “Full Name” field is stored in the wp_bp_xprofile_fields table and any corresponding datum is stored in the wp_bp_xprofile_data table.

    With respect to this:

    At the moment Buddypress/WP MU makes it very hard, perhaps impossible, to flexibly use member’s real names or other data (companyname, city) in the site or have something like ‘Hello John’ in email notifications.

    That is not true. Any piece of stored data can be accessed and spit out in any number of ways. It just must first be in the database. Look in the bp-xprofile.php file and the bp-xprofile subdirectory for a number of functions that can be called to extract a user’s data.

    By the way, I did see your other post about this topic and it was answered appropriately. With the default WPMU and BuddyPress setup, you will not be able to use a user’s full name until they’ve entered that data. They will not be able to enter their full name until after they register.

    So, unless you hack the wp-signup.php or register.php files, and require that a full name be provided when registering, you will not be able to send them a welcome email with their full name since that piece of data does not yet exist.

    All of what you are asking is possible but requires either a pre-existing plugin, a custom hack, or your ability in customizing and coding a BuddyPress template.

    #4354
    peterverkooijen
    Participant

    At the moment Buddypress/WP MU makes it very hard, perhaps impossible, to flexibly use member’s real names or other data (companyname, city) in the site or have something like ‘Hello John’ in email notifications.

    As default the full name is stored in one field, instead of as seperate first name and last name. This also kinda encourages new members to just fill out their first name or some BS pseudonym – I know this from my current home-baked site.

    I have no clue how to retrieve the full name from the database. It’s not in the regular wp_users table, but in two other related tables. I guess this requires serious PHP/MySQL coding and I can’t find any clear examples anywhere.

    Default Buddypress is fine for teens/tweens who want to use their anonymous username, but it’s not suitable for a more grown-up business network, for example.

    I’ve found this excellent plugin that allows members to login with just their email address and password. It doesn’t automatically make the required changes to the notification emails etc. though.

    Are there plugins that can fix these issues?

    Are there custom sql/php code examples how to retrieve and use basic member info?

    Are there tags or pieces of code that I can use site-wide for common things like the logged-in member’s real name?

    #40529
    Erwin Gerrits
    Participant

    Seems to me “report this item” is the exact opposite of “Add to Favourites”… The buttons would show up at the same spots (group home, blog post, wire post, photos, user’s profile etc), the handling code would be the same except in Report case a notification gets sent to the administrator and in Favourite’s case it gets added to the user’s favourites.

    That being said, Report This SHOULD be in the core…

    Donnacha
    Participant

    Heather at Automattic has announced the release of P2: The New Prologue, a WordPress.com theme that, building upon last year’s release of the Prologue theme, presents the user’s blog in a form similar to Twitter, but without Twitter limits such as 240 characters.

    My initial impression is that this heavily ajaxified format would encourage the blog owner to post more frequently and also encourage visitors to leave more comments. This would be a good default theme to apply to users’ blogs when they first sign up because it would get them going and would add to the overall stream of activity through the BuddyPress site.

    Heather says that a self-hosted WordPress version will appear in the Themes Directory over the coming week.

    Does anyone else agree that this theme would be a good match for BuddyPress and should, perhaps, be considered as the default theme for users’ blogs?

    Heather’s announcement:

    P2: The New Prologue – http://en.blog.wordpress.com/2009/03/11/p2-the-new-prologue/

    Last year around this time, we introduced Prologue, a short-form blog theme that works like Twitter for a group. This year we bring you P2, the cooler, faster, sleeker, 2009 version of Prologue:

    Here’s what’s new:

    In-line editing for posts and comments.

    Tag suggestion.

    Collapsible comments.

    Real-time notifications when a new comment or update is posted. (If you have a Mac, you know what we mean when we say it’s Growl-like.)

    Keyboard shortcuts: c to compose a new post; j to go to the next item; k to go to the previous item; r to reply; e to edit; o to show and hide comments; t to go to the top; esc to cancel.

    Helvetica Neue for you modern font lovers.

    Plus more to come! Keep an eye on the news blog for updates.

    Just like other themes, you can find Prologue under Appearance > Themes in your dashboard. Those who are into the self-hosted version of WordPress can keep an eye out for P2 in the Themes Directory in the coming week.

    #3805

    Can anyone help confirm something with me before I trac it?

    Say I have an Instant Message conversation with someone. A few back and forths and a few days it’s done, so I delete it.

    When that person messages me again, I get the email, and I get the notification, but my inbox is empty.

    My theory, is that the message doesn’t get deleted on the other users inbox, they reply to the original thread which is marked as is_deleted=1 in the database, so it doesn’t show up. Funny thing is, even though is_deleted is 1, the unread_count was also 1, so the DB knew there was a message there, but my inbox did not.

    Make sense?

    On a side note, I made a new Notice to send to my users, but it doesn’t seem to want to delete. I can deactivate it, but deleting it still leaves it in my Notices area. If anyone can confirm this/these, I’ll trac them right away; just don’t want to be the lone gunman since it could just be me being silly again.

Viewing 25 results - 1,051 through 1,075 (of 1,091 total)
Skip to toolbar