Search Results for 'custom activity page'
-
Search Results
-
When I’m on the activity page (http://mysite.net/activity) or any page that has “activity”.
The filters like the following just change all the activity to be blank, instead of “filtering” it.
* All Members (391)
* My Friends (1)
* My Groups (2)
* @testuser Mentions
The dropdown filter box does not work either. Just changes all the activity to blank. Everything else in the buddypress works fine.
Just a question, on the black drop down menu at the very top. How would I change it so when they user click on Activity it goes to the global activity page instead of there own activity page. Groups to, when they click groups it goes to there own groups page instead of the global groups page.
For example:
http://test.mysite.net/groups/ – this
http://test.mysite.net/members/username/groups/ – not this
http://test.mysite.net/activity/ – this
http://test.mysite.net/members/username/activity/ – not this
Sorry make any sense? lol
1. Which version of WP/MU are you running? 2.9.1 Single WP
2. Did you install WP/MU as a directory or subdomain install? http://www.mysite.com
3. If a directory install, is it in root or in a subdirectory? root
4. Did you upgraded from a previous version of WP/MU? If so, from which version? No
5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
6. Which version of BP are you running? Version 1.2.1
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
9. Are you using the standard BuddyPress themes or customized themes? Using BuddyPress Template Pack
10. Have you modified the core files in any way? Yes, to fix the avatar upload issue:
bp-core-avatars.php line 389
Replace:
if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;
With:
if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;
else
$path = ABSPATH . $path;
…and report back?
http://trac.buddypress.org/ticket/1970
11. Do you have any custom functions in bp-custom.php? No
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? Not using bbPress.
13. Please provide a list of any errors in your server’s log files. – Nope, shared server.
14. Which company provides your hosting? Hostgator
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php bp_activity_action() ?>
<?php endwhile; ?>
The above code produces nothing despite having site-wide activity elsewhere… I’ve placed this code inside login.php near the bottom of the page. login.php is a custom page template that is used when you access the page http://localhost/login/.
As soon as the code above is run it appears to crash PHP, or at least it causes the footer.php not to be outputted.
What have I done wrong? Is there a WP_Query object that I need to access as there is with WordPress? I’m confused.
For the record, I am using the 1.1.3 version of Buddypress as well as WordPress MU 2.8.6. I do not want to upgrade since I have made substantial changes to the theme, and am scared of breaking everything…
I have a few issues. Most of these are due to currently not being able to tell whether I’m editing the correct php files… There must be a way of debugging this considering I do not have direct access to the web server other than by FTP?
1. On my website, I need a login page that you need to login via before you can visit the rest of the site. I don’t want to use wp-login since I need other html to be on this page… I also need a blog that displays recent blog entries, and a Network Home which shows site wide activity (also, a couple of other pages, but these there are no issues with)
Depending on whether in the settings page I pick the posts page as the homepage or I make the homepage a static page (Login) and pick a Blogs page to be the recent posts page, I get different issues. With the former Network Home seems to be displaying for the root page (index.php?) of the site rather than the Login, but everything else is correct… With the latter the root page (index.php?) of the site displays the Login, but the /blog/ section of the site does not display the blog. Rather than showing recent posts, it shows a list of ‘pages’.
So yeah, perhaps this means the template files that I’ve been using do not have the correct html inside them? However, it is not obvious how a web address points to a particular template. How do I set this up? How do I know I’m editing the correct files?
2. My other problem is that I can’t seem to override the core buddypress functionality. I placed code inside /plugins/bp-custom.php
That looked something like:
<?php
function my_alter_bp_adminbar(){
remove_action(‘bp_adminbar_menus’, ‘bp_adminbar_account_menu’, 4);
}
add_action(‘wp_footer’,’my_alter_bp_adminbar’,1);
?>
I would have expected this to remove the Account drop-down, but yet nothing happens. (In the long-run I want to replace this, but was just testing this…)
It’s driving me crazy…

<b>edit:</b> Hopefully I’m explaining this okay. I can answer any questions you have if you make them. C:
Site Wide Activity RSS Feed produces ‘Page not found’.
I’ve seen this problem reported over a year ago. I use Buddypress 1.1.3 on WPMU 2.9.1.1, but with a heavily customized theme.
Is this a known problem? Where should I look to fix it?
It’s probably something silly…
Hi all!
Just updated WPMU & installed Buddypress 1.2beta and, so far, everything works fine! Can even delete items from the activity stream (which was something of a bother in BP1.1.3).
Now to build a child theme, figure out how to customize the home page, the header, the footer, slugs… oh my, the fun’s just beginning!
I had some issues over the last few days. Site wide activity issues regarding time stamps and then blank white screen from deactivating buddy press. I had to upgrade to the newest trunk.
I finally got the site up and running again but when I go to install my theme it’s missing much of my data such as the following,
Forums are not showing up.
Groups seem to be broken and not working. (not showing up)
Members link is not working or showing members returns back to the home page.
Blog are not showing anything either.
Site Wide Activity not an option for widgets
Any suggestions?
I have tried with both my custom theme and buddy press original.
This is my error log if needed!
undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:44:56] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:44:58] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:05] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105
[26-Jan-2010 00:45:05] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105
[26-Jan-2010 00:45:06] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:08] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:29] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:31] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:39] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105
[26-Jan-2010 00:45:39] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105
[26-Jan-2010 00:45:40] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:43] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:55] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:45:57] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:46:02] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:46:02] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:46:03] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473
[26-Jan-2010 00:46:18] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:46:21] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:46:33] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:46:43] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:46:43] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:46:46] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:46:49] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/bloggingwire/public_html/wp-admin/admin-header.php:84) in /home/bloggingwire/public_html/wp-includes/pluggable.php on line 868
[26-Jan-2010 00:46:49] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/bloggingwire/public_html/wp-admin/admin-header.php:84) in /home/bloggingwire/public_html/wp-includes/pluggable.php on line 868
[26-Jan-2010 00:46:52] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:47:12] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:47:22] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:47:29] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31
[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’69’ AND component = ‘blogs’ AND type = ‘new_blog_comment’
[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’69’ AND component = ‘blogs’ AND type = ‘new_blog_comment’
[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’75’ AND component = ‘blogs’ AND type = ‘new_blog_comment’
[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’75’ AND component = ‘blogs’ AND type = ‘new_blog_comment’
[26-Jan-2010 00:55:07] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/bloggingwire/public_html/wp-content/plugins/vipers-video-quicktags/vipers-video-quicktags.php:2662) in /home/bloggingwire/public_html/wp-includes/pluggable.php on line 868
[26-Jan-2010 00:58:27] PHP Fatal error: Call to undefined function bp_group_pagination_count() in /home/bloggingwire/public_html/wp-content/themes/bp-social/groups/group-loop.php on line 10
[26-Jan-2010 01:00:43] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1
[26-Jan-2010 01:00:52] PHP Fatal error: Call to undefined function bp_group_has_news() in /home/bloggingwire/public_html/wp-content/themes/bp-social/groups/single/home.php on line 52
[26-Jan-2010 01:01:13] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1
[26-Jan-2010 01:01:20] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/forums/index.php on line 11
[26-Jan-2010 01:09:20] PHP Fatal error: Call to undefined function bp_group_pagination_count() in /home/bloggingwire/public_html/wp-content/themes/bp-social/groups/group-loop.php on line 10
[26-Jan-2010 01:13:06] PHP Fatal error: Call to undefined function bp_blog_title() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/blogs/my-blogs.php on line 21
[26-Jan-2010 01:13:26] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1
[26-Jan-2010 01:13:28] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/groups/groups-loop.php on line 1
[26-Jan-2010 01:13:33] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1
[26-Jan-2010 01:13:38] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/forums/index.php on line 11
[26-Jan-2010 01:13:43] PHP Fatal error: Call to undefined function bp_has_site_blogs() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/blogs/blogs-loop.php on line 1
[26-Jan-2010 01:14:45] PHP Fatal error: Call to undefined function bp_group_pagination_count() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/groups/group-loop.php on line 10
[26-Jan-2010 01:19:05] PHP Fatal error: Call to undefined function bp_has_friendships() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/friends/friends-loop.php on line 5
[26-Jan-2010 01:19:23] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1
[26-Jan-2010 01:19:28] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/groups/groups-loop.php on line 1
[26-Jan-2010 01:19:30] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/forums/index.php on line 11
[26-Jan-2010 01:19:37] PHP Fatal error: Call to undefined function bp_has_site_blogs() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/blogs/blogs-loop.php on line 1
Okay. I’ve got CometChat and I’m trying to get it to work with buddypress. The developer says it will work just fine with the proper edits to the config.php file so that it can talk to the database properly.
I’d Like to get it working so I can post the config for other Buddypress Users.
I have two sets of things that I need help with – I need to make sure I’m calling the database propery here:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* DATABASE */
include_once dirname(dirname(__FILE__))."/wp-load.php";
define('DB_SERVER', DB_HOST );
define('DB_PORT', '3306' );
define('DB_USERNAME', DB_USER );
define('DB_PASSWORD', '******' );
define('DB_NAME', '**************' );
define('TABLE_PREFIX', $table_prefix_wp );
define('DB_USERTABLE', 'wp_1_useronline' );
define('DB_USERTABLE_NAME', 'displayname' );
define('DB_USERTABLE_USERID', 'userid' );
define('DB_USERTABLE_LASTACTIVITY', 'timestamp' );
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I’m pretty sure that all of the above is correct. As I’m no longer getting database errors. But What I really need help with is the FriendList Functions. These are the default functions in the config.php file:
/* FUNCTIONS */
function getUserID() {
global $current_user;
get_currentuserinfo();
$userid = 0;
if (!empty($current_user->ID)) {
$userid = $current_user->ID;
}
return $userid;
}
function getFriendsList($userid,$time) {
$sql = ("select DISTINCT ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid,
".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username,
".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity,
".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link,
cometchat_status.message, cometchat_status.status
from ".TABLE_PREFIX."friends join ".TABLE_PREFIX.DB_USERTABLE."
on ".TABLE_PREFIX."friends.toid = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID."
left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid
where ".TABLE_PREFIX."friends.fromid = '".mysql_real_escape_string($userid)."'
order by username asc");
return $sql;
}
function getUserDetails($userid) {
$sql = ("select ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX."useronline.timestamp lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, ".TABLE_PREFIX.DB_USERTABLE.".user_email avatar, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid left join ".TABLE_PREFIX."useronline on ".TABLE_PREFIX."useronline.userid = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = '".mysql_real_escape_string($userid)."'");
return $sql;
}
function updateLastActivity($userid) {
$sql = ("update ".TABLE_PREFIX."useronline set timestamp = '".getTimeStamp()."' where userid = '".mysql_real_escape_string($userid)."'");
return $sql;
}
function getUserStatus($userid) {
$sql = ("select cometchat_status.message, cometchat_status.status from cometchat_status where userid = '".mysql_real_escape_string($userid)."'");
return $sql;
}
function getLink($link) {
return '';
}
function getAvatar($image) {
return"http://www.gravatar.com/avatar/".md5($image)."?d=identicon";
}
function getTimeStamp() {
return current_time('timestamp');
}
function processTime($time) {
return $time;
}
The First Three Function are the most important to get right and I don’t really know how to edit them so they will pull the right information from the right tables.
function getUserID()
function getFriendsList($userid,$time)
&
function getUserDetails($userid)
The instructions for modifying these functions is located here:
http://www.cometchat.com/support/page/documentation?record=16
But being rather new to SQL queries within PHP – the instructions don’t make much sense to me.
Thanks in advance for your help
