Search Results for 'notification user id'
-
AuthorSearch Results
-
August 3, 2010 at 1:51 pm #87849
In reply to: Adding menu items to the admin bar
alanchrishughesParticipant@hnla I mean the buddypress links. All the individual items under “My Account” and the “Notifications.” I’ve clumsily figured out how to generate a link to a logged in users account page, just by copying and pasting random bits of php from the admin bar file into my design. If there was a simple way to pull the individual links to each page that would be perfect, if there was something like…
get_myactivity_personal();
get_myactivity_friends();
get_mynotifications();And then I could move on from there designing whatever I wanted without worrying about the admin bar knowing that I could write
a href=” php get_myactivity_personal(); “> < img src </ a
(I don’t know how to post code on here so that is why that is written incompletely)
July 17, 2010 at 7:02 pm #86039In reply to: New Sliding AJAX Login Panel Plugin for BuddyPress
k33nParticipant@jeremy The client actually requested to put it back because they liked the push like notifications and some of the other features but after thinking about it and seeing @leguis reply I may try to add those.
Tremendous thanks @Sara ! this really gives users a concise and intuitive view of what they’re able to do with the features BP provides.
July 17, 2010 at 3:26 am #85966In reply to: Email notification not working
Paul SParticipantApparently it now does work. Although it took a few hours for my activation email to arrive, it did. But, the sender email address wasn’t the admin email (the one listed as the one from which all activation/notification emails are sent from) it was an weird email from BlueHost. mybluehostusername @box###.bluehost.com.
Should I take this up with Blue Host? Or is something else wrong?
July 8, 2010 at 9:26 am #84735webgyrlMemberBTW, here are my site specifications.
Specs
1. Which version of WPMU are you running?
I am using regular WP 3.0
2. Did you install WPMU as a directory or subdomain install?
Root directory
3. If a directory install, is it in root or in a subdirectory?
Root
4. Did you upgraded from a previous version of WPMU? If so, from which version?
Was a previous version install via Fantastico on cPanel, upgraded to 3.0 before BuddyPress was installed
5. Was WPMU functioning properly before installing/upgrading BuddyPress?
Not sure
6. Which version of BuddyPress (BP) are you running?
Version 1.2.5.2
7. Did you upgraded from a previous version of BP? If so, from which version?
No
8. Do you have any plugins other than BuddyPress installed and activated?
Yes:
Welcome Pack Version 2.1
Twitter Goodies Version 3.9.0
Tweetstream Version 1.4
oEmbed for BuddyPress Version 0.52
Invite Anyone Version 0.6.4
Import from Ning Version 1.1
Facestream Version 1.1
Contact Form 7 Version 2.2.1
BuddyPress Usernames Only Version 0.58
BuddyPress Profile Privacy Version 0.2
BuddyPress Private Messages for Followers Only Version 1.0
BuddyPress Like Version 0.0.7
BuddyPress Group Tags Version 1.2.2
BuddyPress Group Email Subscription Version 2.5
BuddyPress Forum Topic Mover Version 1.0.0
BuddyPress Follow Version 1.0
BuddyPress Album+ Version 0.1.7
BP Profile Search Version 1.0
BP Group Management Version 0.4
BP-NotificationWidget Version 1.4
9. Are you using the standard BuddyPress themes or customized themes?
Standard BP Theme BuddyPress Default 1.2.5.2
10. Have you modified the core files in any way?
No
11. Do you have any custom functions in bp-custom.php?
I do not think so.
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
I ran the bbPress installer that came with BuddyPress
13. Please provide a list of any errors in your server’s log files.
DELETED logs….
I moved files in site to root…..
Hosting company:
Total Choice HostingJuly 8, 2010 at 9:24 am #84734In reply to: Cannot post new topic on forum
webgyrlMemberI am having this exact same problem on a brand new WP/BP site.
Specs
1. Which version of WPMU are you running?
I am using regular WP 3.0
2. Did you install WPMU as a directory or subdomain install?
Root directory
3. If a directory install, is it in root or in a subdirectory?
Root
4. Did you upgraded from a previous version of WPMU? If so, from which version?
Was a previous version install via Fantastico on cPanel, upgraded to 3.0 before BuddyPress was installed
5. Was WPMU functioning properly before installing/upgrading BuddyPress?
Not sure
6. Which version of BuddyPress (BP) are you running?
Version 1.2.5.2
7. Did you upgraded from a previous version of BP? If so, from which version?
No
8. Do you have any plugins other than BuddyPress installed and activated?
Yes:
Welcome Pack Version 2.1
Twitter Goodies Version 3.9.0
Tweetstream Version 1.4
oEmbed for BuddyPress Version 0.52
Invite Anyone Version 0.6.4
Import from Ning Version 1.1
Facestream Version 1.1
Contact Form 7 Version 2.2.1
BuddyPress Usernames Only Version 0.58
BuddyPress Profile Privacy Version 0.2
BuddyPress Private Messages for Followers Only Version 1.0
BuddyPress Like Version 0.0.7
BuddyPress Group Tags Version 1.2.2
BuddyPress Group Email Subscription Version 2.5
BuddyPress Forum Topic Mover Version 1.0.0
BuddyPress Follow Version 1.0
BuddyPress Album+ Version 0.1.7
BP Profile Search Version 1.0
BP Group Management Version 0.4
BP-NotificationWidget Version 1.4
9. Are you using the standard BuddyPress themes or customized themes?
Standard BP Theme BuddyPress Default 1.2.5.2
10. Have you modified the core files in any way?
No
11. Do you have any custom functions in bp-custom.php?
I do not think so.
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
I ran the bbPress installer that came with BuddyPress
13. Please provide a list of any errors in your server’s log files.
[Thu Jul 08 01:43:12 2010] [error] [client 99.232.211.136] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/wwwnatf/public_html/site/wp-admin/includes/misc.php:133) in /home/wwwnatf/public_html/site/wp-includes/pluggable.php on line 890, referer: http://natfriends.com/site/wp-admin/options-general.php
[Thu Jul 08 01:43:12 2010] [error] [client 99.232.211.136] PHP Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/wwwnatf:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wwwnatf/public_html/site/wp-admin/includes/misc.php on line 133, referer: http://natfriends.com/site/wp-admin/options-general.php
[Wed Jul 07 23:53:55 2010] [error] [client 99.232.211.136] PHP Warning: Invalid argument supplied for foreach() in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 38, referer: http://natfriends.com/site/
[Wed Jul 07 23:53:55 2010] [error] [client 99.232.211.136] PHP Warning: file_put_contents(history/20100707) [function.file-put-contents]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 23, referer: http://natfriends.com/site/
[Wed Jul 07 23:53:52 2010] [error] [client 99.232.211.136] PHP Warning: Invalid argument supplied for foreach() in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 38, referer: http://natfriends.com/site/
[Wed Jul 07 23:53:52 2010] [error] [client 99.232.211.136] PHP Warning: file_put_contents(history/20100707) [function.file-put-contents]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 23, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: chmod() [function.chmod]: Operation not permitted in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 180, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: copy(/home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/../data/public/themes/zilveer/smileys/emoticon_unhappy.png) [function.copy]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 179, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: chmod() [function.chmod]: Operation not permitted in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 180, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: copy(/home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/../data/public/themes/zilveer/smileys/eusa_whistle.gif) [function.copy]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 179, referer: http://natfriends.com/site/
I moved files in site to root…..
Hosting company:
Total Choice HostingJuly 1, 2010 at 5:42 pm #83816In reply to: Removing Groups From Forums
lincme.co.ukMember@peterverkooijen said; “Talk about dropping rigidity and opening up to an amazing new flexibility and power is pure nonsense”. Ah Peter, without visionaries such as yourself, how would we ever have got to where we are..?! Growing out of rigid definitions into new flexibility is where the virtual world is heading, like it or not. Everything you see online now will be long dead in five years, and all the concepts you hold dear buried deep. Might as well get used to it.
BuddyPress is a mess, as I see it. It isn’t really anything, and at the same time it’s too much. If I want a community conversation stream, along with simple WordPress themes, etc., there’s Mingle. If I want a forum on my site that’s easy too; there’s BBPress, Mingle Forum, etc. If I want member groups regardless of these, there’s, erm… there’s… well, BuddyPress does that, kind of, in a big and over-complicated way.
BuddyPress should be about making social contacts. The name’s a bit of a clue, right? In other words, friends and contacts with grouping of such, contact streams, and strong privacy for users so they determine who sees what they post. On top of that, as it’s a social tool; community moderation/banning, and reporting to site admins in a simple and obvious way. Oh, and of course, easy to see notifications such as friend/contact requests, etc. Who thought it was a good idea to *include* forums in all of this, and relate them to groups?! Each entity and its associated operations should be separate and self-sustaining. Basic OOP.
It just doesn’t do anything easily, does it? And the hype on the download pages about plugins to do whatever you like is just hype, really. Oh, it ‘kind of’ does everything you want, but only kind of. You have to jump through hoops, and even then you’re fighting with a forum which tries to be a group trying to hold conversation streams together.
I’m interested in productive discussion about social networking sites and their take-up and impact, though not here as I feel it’s not the right place. For one thing, the developers and those who kiss up don’t like to hear how their baby was malformed from the start. If anyone is interested in finding solutions to creating truly interactive social networks in the easiest and most stable way possible at present, please email any-name-you-like at our domain.
June 30, 2010 at 11:09 pm #83723In reply to: Blue @ link lists incorrect name.
abcde666ParticipantHi Ray,
I have upgraded to version 0.57 but I still see the issue showing the name “admin” instead of the name of the user.
I do NOT have the “BP Follower Plugin installed”.I see this issue when not being logged-in.
When being logged-in, then this issue is not there.Using WP 3.0 (Multi-Site) and BP 1.2.4.1
++++++++++++
@tsui 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.
++++++++++++June 27, 2010 at 12:41 pm #83093In reply to: BuddyPress 1.2.5 tickets are cleared out
lincme.co.ukMember@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.
June 23, 2010 at 8:24 pm #82446In reply to: Is bp dying a slow death?
paulhastings0ParticipantBtw, the correct username is @apeatling, not @andy (that poor guy is getting overloaded with a bunch of non-relevant notifications. )
June 23, 2010 at 10:59 am #82371In reply to: custom plugin : hook bp_setup_globals is not fired
grosbouffParticipantOk. 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 ?June 9, 2010 at 3:42 pm #81071techguyParticipantLots 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.
June 7, 2010 at 5:51 am #80873In reply to: Moderate Signup / Restrict Registration
zlamczykParticipantFigured 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.
June 3, 2010 at 4:54 pm #80521In reply to: Killing the @mention function
techguyParticipantWhy 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.
June 1, 2010 at 3:00 pm #80288In reply to: @mentions not working
rossagrantParticipantHey 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,
RossMay 29, 2010 at 12:10 am #80034In reply to: I would like to disable Email activation
techguyParticipantIf 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.
May 28, 2010 at 11:00 pm #80027In reply to: I would like to disable Email activation
techguyParticipant@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?
May 10, 2010 at 12:54 pm #77450drifter0658MemberOkay…I worked around the sitewide messages issue with a plugin called: Sitewide Newsletters
Users still cannot create a new blog
April 30, 2010 at 5:05 pm #76160Hugo AshmoreParticipantBoone 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?
April 26, 2010 at 3:45 pm #75268In reply to: Plugin Release: Group Activity Email Notifications
DwenausParticipantAn 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.
April 21, 2010 at 5:34 pm #74618In reply to: How do I create a notification?
3sixtyParticipantI 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.
April 20, 2010 at 11:52 pm #74513In reply to: Feature/plugin request – RSS to Group Wire
AvatarParticipantHey 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 –
.
April 20, 2010 at 7:49 pm #74460In reply to: send mass email
GianfrancoParticipantI 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?
April 16, 2010 at 8:42 pm #73847GianfrancoParticipantI 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?
April 16, 2010 at 6:55 pm #73834GianfrancoParticipant@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.
April 16, 2010 at 5:51 pm #73823GianfrancoParticipantI’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.
-
AuthorSearch Results