Search Results for 'notification user id'
-
AuthorSearch Results
-
September 1, 2009 at 2:19 am #51863
In reply to: How to make a safe community?
Jeff SayreParticipantr-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.
August 27, 2009 at 8:53 pm #51652In reply to: Unable to authorize groum membership requests
r-a-yKeymasterJust 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.
July 28, 2009 at 3:26 pm #50191In reply to: skeleton component for buddypress
Jeff SayreParticipantThe 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/ directoryJuly 2, 2009 at 2:00 am #48397In reply to: FEATURES REQUEST Classifieds (Plugin)
grosbouffParticipantHello. 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” alt=”classifieds setup” >
June 6, 2009 at 7:04 pm #46875MoominmamaParticipantOh 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.
June 5, 2009 at 8:05 pm #46817Roger CoathupParticipantI’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.
June 4, 2009 at 10:00 am #46711In reply to: Showing members of private groups to non-members
petronicParticipantI 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.
May 22, 2009 at 3:25 am #45838In reply to: no tables created when BP installed
mgrunk1ParticipantBuddyPress 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
May 13, 2009 at 3:17 pm #45254enlightenmental1Participant@ 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
‘
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
May 9, 2009 at 4:28 pm #44891In reply to: How to change email notifications
jfcarterParticipantHi 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.
May 9, 2009 at 4:15 pm #44889In reply to: How to change email notifications
peterverkooijenParticipantI\’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.
May 5, 2009 at 7:10 pm #44528In reply to: BuddyPress Skeleton Component v1.2 RC-2
belogicalParticipantyeah, 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\' );
?>April 30, 2009 at 4:17 pm #43907In reply to: Profiles Being Made without Admin Notification
zipnguyenParticipantBurt,
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
April 23, 2009 at 4:04 am #43276In reply to: adding new field to group
isuruParticipantsry, 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*/
}
}
?>
April 12, 2009 at 4:18 pm #42452In reply to: How to use full name, first name + last name
Jeff SayreParticipantI 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.
March 20, 2009 at 6:16 pm #40529In reply to: “Report This” feature
Erwin GerritsParticipantSeems 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…
February 19, 2009 at 10:20 pm #38373In reply to: Add Friend – not adding
Burt AdsitParticipant@awarner20 your problem with the email friendship requests is a bug. Can’t be solved with a one liner. Sorry. I did submit a workaround patch in trac though:
https://trac.buddypress.org/ticket/519
It eliminates the problem by eliminating the problem. Lemme explain. When a user requests friendship an email is sent out to the destination user. The destination user is supposed to click the link and it automatically approves or rejects the request. Doesn’t work due to the fact that a security mechanism is being used to validate the process. The ‘nonce’ security scheme uses the originating user’s identity and some other stuff to come up with this ‘nonce’ key. The key is only valid when used by the originating user.
When the destination user clicks on the link the key is used but they are not the originating user. So the security check fails. Andy is aware of the problem. I just removed the automatic accept/reject links and used a link to the destination user’s friendship notifications page where it will have to be manually accepted or rejected.
February 18, 2009 at 4:29 am #38211In reply to: BP Content Tags Project – Call For Ideas
Burt AdsitParticipantI like this “Tag This” concept more and more.
– The tagging window could display a list of the user’s groups. Select a group and the existing tags for the group are displayed.
– Select one or more tags or create one or more.
– Enter an excerpt of the content by copy and paste, type something in or an excerpt gets inserted for editing if it’s an internal tag.
– A list of content types is available for selection: ‘blog’, ‘blog post’, ‘site’, ‘forum’, ‘forum topic’, ‘feed’, ‘uncategorized’.
– Item gets sent to the group’s tagged content moderation queue for approval. Possible reassignment to a different tag(s) within the group and check for content type match.
– Approval posts to the item’s tags and posted in some default tags such as ‘recent’ (cache), ‘author name’.
– Activity streams are updated.
– Subscribers to group tags are notified by email, notification in admin bar, inbox notification(?).
(Yes I know Andy, start small)
February 16, 2009 at 7:51 pm #38111In reply to: Plugin Developers: Changes around $bp global
DevrimParticipant$test is empty. no matter what we do.
/wp-content/mu-plugins/x.php
<?php
require_once( ‘bp-core.php’ );
global $bp, $wpdb, $current_blog;
require_once( ‘x/classes/DB_Operations.php’ );
require_once( ‘x/classes/FS_Operations.php’ );
require_once( ‘x/classes/POST_Operations.php’ );
require_once( ‘x/classes/Render_to_Browser.php’ );
require_once( ‘x/classes/x_Environment.php’ );
require_once( ‘x/classes/File.php’ );
require_once( ‘x/classes/Notification.php’ );
$init_environment = new x_Environment();
$doPostActions = new POST_Operations();
$test = $bp->loggedin_user->id;
?>
February 7, 2009 at 9:07 am #37408In reply to: Disable group invite notifications
Burt AdsitParticipantmaxaud, the function that does the work in bp is groups_send_invites() and it lives in bp-groups.php, line 1642.
function groups_send_invites( $group_obj ) {
global $bp;
This function serves both the group creation ‘send invites’ and the member theme ‘send invites’ in the group screen.
I’d put a return; statement right under that global $bp; statement. Users can flip all the switches they want but nothing will actually happen. The users will still see the capability but nothing will work.
Lemme test this to make sure…
No notification emails are actually sent. The screen says it did but it didn’t. The notification message “Group invites sent” isn’t part of that function you will be bypassing.
January 22, 2009 at 3:27 pm #36583In reply to: Profile pages being redirected to signup page
Joss WinnParticipantYes, to all of the above. Blog creation works. All user-side BuddyPress features redirect to the signup page. i.e. click on ‘news’ and you get sent to:
http://example.com/wpmu/wp-signup.php?new=wpmunews
Everything under ‘My Account’ and ‘Notifications’ is similarly affected.
From the Admin Dashboard, things work as expected.
December 21, 2008 at 6:47 am #34746In reply to: Automatically Add User as Friend on Signup
Burt AdsitParticipantWhat a great idea. Never thought of that. That message about ‘you have no friends’ (something like that) is kinda bleak. We could have the system send them a ‘friendship request’ from admin. That way they learn a little about the adminbar and the member theme right away. That glaring (1) next to notifications would be hard to resist. Click Me.
-
AuthorSearch Results