Search Results for 'buddypress'
-
Search Results
-
Topic: Blog Page 2 Error
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.
Running 2.7.1 and BP 1.0.2 on a shared server. GD Library is installed and enabled. I have read through the multitude of forum threads. Oh yea WP Premium avatar plugin is installed and works just fine for the blog and comments. I can upload and crop avatars in my BuddyPress profile just fine as well. It’s only when I try to upload an avatar from register.php that it fails.
From what I can tell nothing appears in blogs.dir/(blog#) when I try to upload from register.php. There was a suggestion to comment out these two lines in .htaccess:
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]But can someone tell what, if any, impact that would have on the rest of my installation. Sorry I am not real strong on the .htaccess file so I just want to understand what those lines do and if it’s ok to just comment them out why would they be there in the first place?
Any guidance here would be greatly appreciated.
Ricky
hi,
i installed wpmu (2.8.1), buddypress (1.0.2) and bbpress (1.0.1) on xampp with subdirectories (in a subdir). everything seems to work fine, but in the wp admin > buddypress > forums setup i get the following message:
Warning: preg_match() expects parameter 2 to be string, array given in C:\xampp\htdocs\wordpress-mu\wp-includes\comment.php on line 1270
when i look in the file, i find this, and don’t understand anything (yea, im a noob):
if ( isset( $response['headers']['content-type'] ) && preg_match('#(image|audio|video|model)/#is', $response['headers'][so, could you please help me, i tried with google and searched several boards without any success…
thanks a lot
loligco
Topic: Custom Default Member Page
Why is it that the default “home” page loads “directories/blogs/index.php” ?
Is there a setting that specifies this?
Can this be changed to load a custom BP Member page?
For example:
“directories/mycustompage/index.php”
So in the end this function:
get_option('home')would point to “directories/mycustompage/index.php”
Thanks for any help.
Brian
1. Which version of WPMU are you running? 2.7.1
2. Did you install WPMU as a directory or subdomain install? directory
3. If a directory install, is it in root or in a subdirectory? sub
4. Did you upgraded from a previous version of WPMU? If so, from which version? no
5. Was WPMU functioning properly before installing/upgrading BuddyPress? yes
6. Which version of BuddyPress (BP) are you running? 1.0.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, photo album
9. Are you using the standard BuddyPress themes or customized themes? bpmember default
10. Have you modified the core files in any way? no
11. Do you have any custom functions in bp-custom.php? no
12. If running bbPress, which version? no
13. Please provide a list of any errors in your server’s log files. none
Hi,
I am having two problems,
I have a WordPress2.7.1 + Buddypress installed
Whenever a new user registers he get an email saying click this to activate.
And when I click it it takes me to a wierd place to crop avatars and bottom says the my profile is activated and gives me user name and password. and that a second email will be send with the username and password.
First issue: I cannot get my cursor out crop form so basically I can not click on anything (got to close it manually)
Second issue: The second email is never being send.
So i dont write it down first time i wont be able log in
Any idea whats wrong
Thanks
Manoj
I want the author to be able to change their personal URL in the WP backend. But every time their buddypress profile changes, it changes the Website field in WP.
Is there a logical reason for doing this? If not, where do I modify this?
Hi, I installed WPMU 2.7.1/BP 1.0.2 under xampp following this tutorial:
http://maketecheasier.com/install-wordpress-mu-in-windows-localhost-with-xampp/2009/05/02
Everything went OK (I think), then tried to integrate bbP A6 following Chris´tutorail: http://theeasybutton.com/blog/2009/04/30/integrating-buddypress-10-wpmu-and-bbpress/
When I saw that I could not stayed logged upon moving to localhost.localdomain/wordpress-mu/forums/, I erased the define(’COOKIE_DOMAIN’, â€);
define(’COOKIEPATH’, ‘/’); from my wp-config
But the problem here is that I am having endless cookie problems, not only with forums integration (when moving to forums while being logged to BP, even though I enter login and password again, it does not allow me to login. I have to log out of BP and then enter login and pass at the forums) I also have cookie problems while trying to accessing wp-admin
I am sure many of you work with localhosts configuration under Windows Vista, could I have a gentle helping hand ?