Search Results for 'notification user id'
-
Search Results
-
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.
Topic: loading templates problem
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 !
Topic: Automatic update failes
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
- Which version of WPMU are you running? – 2.7.1
-
Did you install WPMU as a directory or subdomain install? –
subdomain install
- Was WPMU functioning properly before installing/upgrading BuddyPress? –
yes
- Which version of BuddyPress (BP) are you running? –
1.0.1
- Do you have any plugins other than BuddyPress installed and activated? –
yes: geopress, CPT BuddyPress XProfile Privacy, bp-events
- Are you using the standard BuddyPress themes or customized themes? – standard
- 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); - Do you have any custom functions in bp-custom.php? –
no
- Please provide a list of any errors in your server’s log files. –
sorry, I do not know how to access these.
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.
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
Topic: Deleting Inbox Messages
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.

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: