Forum Replies Created
-
Erich, do you have the equipment to take a short video of your screen? I think that should be enough to demonstrate the slow adminbar (“homepage”) vs. the fast one on users blog-pages.
Your welcome,
you can find the ticket here https://trac.buddypress.org/ticket/1021
Looking forward for a solution.
Hey Erich,
i discovered the same slow mouse-over behaviour and it is also present on the bp1.1 beta. There are also lots of small IE6 and also 7 CSS problems.
I’m going to write a trac ticket to inform Andy about the slow adminbar, maybe it is a bug or at least he has an explainaton.
U can use the wpmu fuction
get_sitestatsIt enabeles u to show the number of people who have joined ur community as well as the number of registered blogs.
<?php $stats = get_sitestats(); ?>
Until now there are <?=$stats["blogs"]?>
Blogs and <?=$stats["users"]?> User in our network.
I would be also interested in a plugin that shows some more statistics like number of groups, forums and topics. Amount of written words etc.
So if u know some plugin, or ur going to write something, please give me a hint.
@John James Jacoby, i DL the zip from the trac. I can also confirm that there must be some issue with the trac zipper, because i don’t have a bbpress directory in buddypress/bp-forums/ directory.
@Andy: Should i still report this issue in trac?
I have another issue with the Side Wide Activity widget. It doesn’t show the status updates and some other things. Could this also be due to an issue with the zipper?
@John James Jacoby, i DL the zip from the trac. I can also confirm that there must be some issue with the trac zipper, because i don’t have a bbpress directory in buddypress/bp-forums/ directory.
@Andy: Should i still report this issue in trac?
I have another issue with the Side Wide Activity widget. It doesn’t show the status updates and some other things. Could this also be due to an issue with the zipper?
I’m using wpmu 2.8.4a with the latest trunk (r1757) on my local machine.
When i’m trying to activate the forum on some group i get the following error message:
Warning: require_once(/home/public_html/wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/class.bb-query.php) [function.require-once]: failed to open stream: No such file or directory in /home/public_html/wp-content/plugins/buddypress/bp-forums/bp-forums-bbpress.php on line 25
However Forums Setup on the dahsboar says:
bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can re-install
I tried to re-install, but still get the same error. Any suggestions? Is this normal with the latest trunk?
Thanks a million! add_action(‘init‘,’remove_adminbar_css’); is what i was missing!
Hey r-a-y
thanks again for your help, but that doesn’t work neither.
I tried it with remove_action(‘wp_head‘, ‘bp_core_admin_bar_css’, 1);
and also with remove_action(‘admin_head‘, ‘bp_core_admin_bar_css’, 1);
I had a look at bp-core-cssjs.php and on line 108 i found the following function
/**
* bp_core_add_admin_css()
*
* Add the CSS needed for all components in the admin area.
*
* @package BuddyPress Core
* @uses get_option() Selects a site setting from the DB.
*/
function bp_core_add_admin_css() {
if ( defined( 'BP_DISABLE_ADMIN_BAR') )
return false;
wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', BP_PLUGIN_URL . '/bp-core/css/admin-bar.css' ) );
}
add_action( 'admin_menu', 'bp_core_add_admin_css' );It seems to be the key to remove the admin-bar.css on the backend of WPMU. However i tried it with the following code, but it still doesn’t work.
function remove_adminbar_css(){
remove_action('admin_menu', 'bp_core_add_admin_css', 1);
}
add_action('plugins_loaded','remove_adminbar_css');We need a “global language filter” for all content, depending on what the user set as his preferred language in the wp-admin.
WordPress.com has such an language filter. You can choose “preferred language” and will be redirected to f.i. to de.wordpress.com (only content of people who set up their language and blog-language to german) or es.wordpress.com (only spanish).
Anyone also interested?
@Grosbouff: Maybe we should add this feature request as an official ticket?
Awesome!
I’m looking exactly for the same kind of functionality. It would be awesome if some developer would go on for this feature!
I’m pretty sure Burt could do such thing. His BuddyPress Contents 1.0 Plugin goes in the same direction of content organization.
It would be great if he could say something about the possibilites to implement such feature in bp.
Hey r-a-y,
is it possible that you give me an example of this if-else statement?
I also do have another question. I would like to change the admin_bar_logo.gif. I was thinking about using the following code:
<?php
function bp_adminbar_custom_logo() {
global $bp;
echo '<a>root_domain . '"><img id="admin-bar-logo" src="' . apply_filters( 'bp_admin_bar_logo_src', bloginfo('template_url') . /images/admin_bar_logo.gif . '" alt="' . apply_filters( 'bp_admin_bar_logo_alt_text', __( 'BuddyPress', 'buddypress' ) ) . '" /></a>';
?>However i have problems with bloginfo(‘template_url’) which isn’t working and i don’t get the mistake, if there is one?!
Hey r-a-y,
it seems it was a problem about when you trigger the remove and the add action.
Therefor i put everything in its own function which apllies after every hook is triggered:
// **** Custom BuddyPress admin-bar.css called my-admin-bar.css, stored in template directory ********
function my_admin_bar_css() { ?>
<link href=”<?php bloginfo(‘template_url’); ?>/css/my-admin-bar.css” rel=”stylesheet” type=”text/css” media=”screen,projection” />
<?php
$doing_admin_bar = false;
}
function trigger_adminbar_hooks(){
remove_action(‘bp_adminbar_logo’, ‘bp_adminbar_logo’);
remove_action(‘wp_head’, ‘bp_core_admin_bar_css’, 1);
add_action(‘bp_adminbar_menus’, ‘bp_adminbar_custom_logo’, 1 );
add_action(‘wp_head’, ‘my_admin_bar_css’, 1);
}
add_action(‘plugins_loaded’,’trigger_adminbar_hooks’,99);
?>
I’m going to try your solution. Would be great to know how to apply the my-admin-bar.css only when the adminbar is displayed. I’m glad about your solution for the moment, but there should also be a more correct way for the future!
Hi Jeff,
i set up everything again (deleted complete wpmu and database). I changed host from localhost to 127.0.0.1 as u described above, even if wpmu claims to not use localhost or 127.0.0.1 as host. Now everything ist working without a problem!
Why does the wpmu installer mention to not use 127.0.0.1 ?!
As mentioned above the solution is working for me. I also figured out a way to remove the original admin-bar.css out of the header. I’m not at work at the moment, so i can’t look it up and write it down here, but i will do so tomorrow!
One problem remains for me. In the admin-bar.css and also in my-admin-bar.css there is a padding-top width the height of the buddybar applied to the body of the page.
If i don’t use my-admin-bar.css and check the “hide adminbar for users that aren’t logged in” in the settings of the dashboard the padding-top isn’t applied to the body. However if i use my-admin-bar.css it gets loaded all the time and not only if a user is logged in. This implies that i always have an extra gap, because the padding si applied all the time!?
Any hints for this problem?
Hi Carpeconnect,
you can try this code snippet
function my_admin_bar_css() {
echo '<link href="<?php bloginfo('template_url'); ?>/css/admin_bar.css" rel="stylesheet" type="text/css" media="screen,projection" />';
}
remove_action('wp_head', 'bp_core_admin_bar_css', 1);
add_action('wp_head', 'my_admin_bar_css', 1);
Hi Jeff,
i followed your instructions and it seems to work also for XAMPP on MAC.
However it’s still not runnning, because i still get the following error message:
(Redirect Loop)
The connection attempt was cancelled because the website redirected the request so that it would never complete.
Do you have any suggestions?
Hi together,
thanks for the advices. Everything works fine! I now can modify the css of the admin-bar on a per blog basis, because i storec the admin-bar.css file in the template directory of the actual theme (i’ll keep the admin-bar consistent, but now i have the option to do some color adaptions to fit the user themes.)
I have one more question. I’m hiding the admin-bar if a user is not logged in. However i want to show it on the buddypress-home- and -member-theme sites also if a user is not logged in.
Is there a technique to achieve this?