Search Results for 'notification user id'
-
Search Results
-
Hello!
Thanks in advance to all who read and respond to this. I am trying to build a membership site with the premise of the members paying for access to a community to collaborate with. Ideally my end result includes:
-A general forum for anyone to view (easy enough)
-A members-only forum for collaborative project postings (like a job board, for example – in fact something closer to that would be even better)
-The ability for collaborators to have their own forum or group messaging (as in buddypress), paid members only
-The synchronization of forum and membership profile pages, etc. Currently I have the WPMU Membership plugin and its “Profile” page is different from the BuddyPress profile, obviously I would like them to be the same (so that if a user updates their name in the BuddyPress profile it is concurrent throughout).
-A clean looking solution for notification and links to profile, groups, etc either in a sidebar widget or toolbar at the top of the page (preferably not the wordpress toolbar)
That is more or less it. What is the best way to achieve this? Or even something close to it? I am relatively familiar with WordPress but new to BuddyPress, however I assumed this wouldn’t be very difficult. Please excuse any ignorance I am showing. :p
I reeeeeeally appreciate any help with this at all, it would be amazing to get this figured out! I’d owe any and all of you a beer!
-Jimmy
So, I’m trying to create a page accessible by logged in users through which these users can create children accounts. From what I can tell, the register page is inaccessible to logged in users, so I can’t use them. I also don’t allow my users access to the wp-admin area, so I can’t use the “add new users” page of the wp-admin.
I’ve tried creating a function that accepts form input and uses bp_core_signup_user to no avail. It simply will not create the user, returning the standard “could not create account” error.
function my_user_creation( $email, $username, $password, $first_name, $last_name, $firm) { $new_user = bp_core_signup_user( $username, $password, $email, array() ); if( is_wp_error( $new_user ) ) { return $new_user; } $display_name = $first_name . ' ' . $last_name; update_user_meta( $new_user, 'nickname', $display_name ); update_user_meta( $new_user, 'first_name', $first_name ); update_user_meta( $new_user, 'last_name', $last_name ); if( bp_is_active( 'xprofile' ) ) xprofile_set_field_data( '1', $new_user, $display_name ); xprofile_set_field_data( '99', $new_user, $display_name ); xprofile_set_field_data( '145', $new_user, $firm ); xprofile_set_field_data( '360', $new_user, 'Agree' ); wp_cache_set( 'bp_user_fullname_' . $new_user, $display_name, 'bp' ); $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET display_name=%s, user_status=0 WHERE ID=%d", $display_name, $new_user ) ); bp_core_new_user_activity( $new_user ); wp_new_user_notification( $new_user ); return new WP_User( $new_user ); }This is my function. Any tips or tricks that I’m overlooking? I can’t seem to find anything like this on google or the bp support pages. Thanks for your help in advanced.
Guys I have a problem:
When sending a notification to all users it does not appear in the sidebar of users.Can anyone help me
thank you
Marcos
Buddypress 1.8
Hey All,
I thought that I wanted to remove the ‘last active’ that shows alongside all profiles and groups etc, however after using a simple css hide; span.activity { display: none; }, I found that the site suddenly looked bare.
I’m wondering if anyone exchanged it for something slightly less revealing (if the sites not that active currently), or if theres a function that will hide it if the user hasn’t been active in 2 weeks or something.
Hi there,
this is my first thread here and i hope i make everything right, so here is my configuration:
i run WP3.6, along with BP 1.8.1. and Geotheme 3.3.2. on a subdomain, but on root directory.
and here is my problem: i’d like to use arrowchat with the site and i already bought it. arrowchat gives you the opportunity to use a notification system. there are several integrations ready for oxwall, phpbb and stuff, but there is only an general tutorial for customized notifications. this is what the say about it:
First, you need to understand how notifications work and the basic process of installing them. The most difficult part of installing a notification is finding the place where the action occurs. Consider the following example:
Let’s assume that we want to install a notification for when a user comments on a photo:
function add_photo_comment()
{
// Process the photo commentif ($comment)
{
// Insert the photo comment$msg = “Success! The comment was added to the user’s photo”;
// BEGIN ARROWCHAT NOTIFICATION
$sql = “INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time)
VALUES (‘”.$to_id.”‘, ‘”.$author_id.”‘, ‘”.$author_name.”‘, ‘1’, ‘”.time().”‘)”;
mysql_query($sql);
// END ARROWCHAT NOTIFICATION
}
else
{
$error = “You did not enter a comment”;
}
}
As you can see from the example above, we only inserted the notification into the database where the action occured, which in this case, was adding a photo comment. If you want to add a notification for private messages, you would insert the ArrowChat mySQL code where a user has successfully sent a private message.Sample MySQL Insert Code
Here is the way a proper notification should be entered into the database:$sql = “INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time, misc1, misc2, misc3)
VALUES (‘”.$to_id.”‘, ‘”.$author_id.”‘, ‘”.$author_name.”‘, ‘1’, ‘”.time().”‘, ”, ”, ”)”;
mysql_query($sql);
The above is a basic template that you should use for inserting notifications. Some modification might be necessary.to_id – (int) The user ID of the user that should receive the notification.
author_id – (int) The user ID of the user that sent the notification. Can be left blank if none.
author_name – (varchar) The name of the user that sent the notification. Can be left blank if none.
type – (int) The type of notification. You need to create a notification markup in the admin panel, and then insert the number of that markup as the type.
alert_time – (int) The unix time of when the notification was sent.
misc1 – (varchar) A miscellaneous field that can be used for anything or left blank.
misc2 – (varchar) A miscellaneous field that can be used for anything or left blank.
misc3 – (varchar) A miscellaneous field that can be used for anything or left blank.The Notification Markup and Type Number
If you need to install a notification that is not already included in the default ArrowChat installation, you can add one by clicking Notifications under the Manage menu. Add a name and the HTML markup that should be used when receiving the notification. You can look at the notifications already installed for reference.
After the notification is created, click “Edit” and you will be shown the notification number that is to be used to generate that markup.
since i am not a programmer, i don’t know how to implement it and i hope to find anybody here who can help me with that. i want to use the notifications for new messages in BP, friendship notifications and activity comments.
it would be nice if anyone can help me out here!
thank you
oliverRedirects are leading to a blank page (header and sidebar’s are there but the actual activity is not displayed)
During an email notification of an activity, the link provided in the email is:
http://www.itsartmag.com/features/activity-2/p/1234When you click the link it goes to
http://www.itsartmag.com/features/members-2/user/activity/1234/When it gets to this page the page is blank, it will have the header and sidebar and content space, but nothing appears in the content space.
An example of this is as follows:
The email gives this link:
http://www.itsartmag.com/features/activity-2/p/816/
The site redirects you to:
http://www.itsartmag.com/features/members-2/cgartist/activity/816/And the activity entry does not show at all
Is there a way to have the link redirect to just the activity page or how is this handled in the core
We have tried to update the .htaccess but the redirect is actually pretty ugly.
This is similar to the following posts (opened over a year ago, so I am just referencing them, since I am not sure if it was ever resolved)
http://buddypress.org/support/topic/why-does-buddypress-use-redirection-links-in-activities/
http://buddypress.org/support/topic/view-single-activity-infinite-redirect/
http://buddypress.org/support/topic/buddypress-activity-stream-permalinks/
1. Which version of WordPress are you running? Version 3.5.2
2. Did you install WordPress as a directory or subdomain install?
It is installed on the following path from the web root:
features/itsart3. If a directory install, is it in root or in a subdirectory?
It is in a subdirectory:httpdocs/features/itsart
4. Did you upgrade from a previous version of WordPress? If so, from which version?
Not recently
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes6. Which version of BP are you running?
1.7.27. Did you upgraded from a previous version of BP? If so, from which version?
No8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Yes:AddThis Follow Widget
AddThis Social Bookmarking Widget
AdRotate Professional
Akismet
BP Activity Autoloader
BP Friends Suggestions Widget
BP Group Organizer
BP Members With Uploaded Avatars Widget
BP reshare
BP Resume Page
BuddyMenu
BuddyPress
BuddyPress AddThis LS
BuddyPress Follow
BuddyPress Live Notification
BuddyPress login redirect
BuddyPress Media
Buddypress Sitewide activity widget
BuddyPress Template Pack
Chartbeat
Clean up wp_head
Clobber spam users
Community Activity On profile
Conditional Widgets
Contact Form 7
Core Control
Disqus Comment System
DRP WordPress User Management
DZS Video Gallery
Events +
Export Users to CSV
Facebook Friends Inviter
Facebook Like Activity Stream For BuddyPress
Google Analytics for WordPress
If Menu
iframe
Jetpack by WordPress.com
JW Player 6 Plugin for WordPress
Login Logo
Magic Members
Manual Control for Jetpack
Newsletters
Prevent Password Reset
PunchTab for WordPress
Really Simple CAPTCHA
Slide-In
Social Articles
SSH SFTP Updater Support
TS Widget Pack
Use Google Libraries
Video SEO for WordPress SEO by Yoast
Viper’s Video Quicktags
Welcome Pack
White Label CMS
Widgetize pages Light
WordPress SEO
WP-Memory-Usage
WP Hide Dashboard
WPMU DEV Dashboard
WP Status Notifier
WPtouch Pro9. Are you using the standard BuddyPress themes or customized themes?
Customized theme wpzoom’s magazinium with buddypress template pack installed
10. Have you modified the core files in any way?
No
11. Do you have any custom functions in bp-custom.php?
No12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
Not Running13. Please provide a list of any errors in your server’s log files.
None that I can see in relation to this, no 404’s etc14. Which company provides your hosting?
Self Hosted15. Is your server running Windows, or if Linux; Apache, nginx or something else?
LAMPHi,
I am trying to show the number of new mentions associated with the logged in users profile.
I have found this page http://buddydev.com/support/forums/topic/at-mention-notification/ … I have used the last code provided by @sbrajesh
//at mention add_action( 'bp_adminbar_menus', 'user_show_mentione_count_in_adminbar',20 ); function user_show_mentione_count_in_adminbar(){ global $bp; if(!is_user_logged_in()||!($count=get_user_meta( $bp->loggedin_user->id, 'bp_new_mention_count' ,true))) return; //clear it because bp won't do it on profile if(bp_is_home ()&&$bp->current_component==BP_ACTIVITY_SLUG&&$bp->current_action=="mentions") delete_user_meta($bp->loggedin_user->id, 'bp_new_mention_count'); //show mentions echo "<li ><a href='".bp_get_loggedin_user_link().BP_ACTIVITY_SLUG."/mentions/'>New mentions(".$count.")</a></li>"; }The only thing I have changed is the last line as I don’t want a link or any HTML outputted. Just the count (even if it’s zero).
echo "<li ><a href='".bp_get_loggedin_user_link().BP_ACTIVITY_SLUG."/mentions/'>New mentions(".$count.")</a></li>";to
echo $count;It works just fine except for one thing…
When the user has no new mentions I can’t get the code to display a ‘0’. It displays nothing at all.
I’m pretty sure this must be a simple fix but I’ve stared at it for ages now and haven’t managed it.
Can anyone help?
Hi
All was fine with BP until I upgraded to 1.7.1.. I was using the BP for Woocommerce plugin from Themekraft with no issues.
After upgrading BP (and woo) I noticed that the BP menu didn’t work from the same place. There was a message that it had been moved to under settings. I thought this was an issue so reinstalled BP.
Problems began: BP for Woocommerce plugin stopped the site working (in combination with WC and BP and, with just with BP or WC). I reverted back to BP and WC 1.6 – still no luck.
I have tried reinstalling BP manually and removing WP_BP_ tables from the database – same outcome. All works until I active the BP for WC plugin – there’s a white screen.
As a novice to WP my knowledge is limited but debug reads-
SELECT COUNT(DISTINCT m.group_id) FROM wrd_bp_groups_members m, wrd_bp_groups g WHERE m.group_id = g.id AND m.user_id = 1 AND m.is_confirmed = 1 AND m.is_banned = 0
Table ‘dyslexi5_wor3.wrd_bp_groups_members’ doesn’t exist
SELECT g.*, gm1.meta_value as total_member_count, gm2.meta_value as last_activity FROM wrd_bp_groups_groupmeta gm1, wrd_bp_groups_groupmeta gm2, wrd_bp_groups_members m, wrd_bp_groups g WHERE g.id = m.group_id AND g.id = gm1.group_id AND g.id = gm2.group_id AND gm2.meta_key = ‘last_activity’ AND gm1.meta_key = ‘total_member_count’ AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1 ORDER BY m.date_modified ASC
Table ‘dyslexi5_wor3.wrd_bp_groups_groupmeta’ doesn’t exist
SELECT COUNT(DISTINCT m.group_id) FROM wrd_bp_groups_members m, wrd_bp_groups g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1 ORDER BY date_modified ASC
Table ‘dyslexi5_wor3.wrd_bp_groups_members’ doesn’t exist
SELECT * FROM wrd_bp_notifications WHERE user_id = 1 AND is_new = 1
Table ‘dyslexi5_wor3.wrd_bp_notifications’ doesn’t exist
Thanks for any help – my site http://www.dyslexiatribe.org.uk
Hi everybody, thank you for this great plugin.
I begin with my platform datas:
– wordpress 3.5.1
– buddypress 1.7.1
– bbpress 2.3.1
That’s my site forum: http://escrivere.com/forums/forum-groups/indice-argomenti/I’ve made the transition from buddypress group forums to bbpress following your guide.
All seems to work fine, but there’s a big issue that i can’t deal with!When a user tries to invite some other user to his group the invited users don’t receive any notification, not via mail nor on their status bar!
The problem exists on public, private and hidden group forums.
Some solution?Other issue: Even if a forum is private or hidden (using buddypress administration) users that are not subscribed to the group can see the topic title here:
If group is private they are redirect to the page where they can request to enter in the group.
If the group is hidden they get a 404 error page.I don’t know how to deal with bbpress forums options, if I made a group forum “hidden” using bbpress settings group vanish from topic index, also for users that are subcribed to the hidden group, except for moderators and keymaster.
Ah, and another big big mistake when a users try to change group settings of his group (private, hidden, public) forum option is deselected and forum group vanish, until you select again the forum group!
Hope you can help me!