Forum Replies Created
-
W3 Total Cache is developed with Dedicate hosting or VPS hosting on mind. With a Shared hosting, most of the advantage of W3 Total Cache are missed out. For this, I left W3 Total Cache.
CloudFlare might be a solution for CDN and Cache. I’m currently on it. But since my site is under developing, I only put another domain (it’s for hosting static contents) on CloudFlare, so I can’t say how much improvement it is.@pcwriter , can I use your code to remove adminbar from dashboard? I tried the following 3 modifications, neither of them works:
`if( is_admin())
remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );`
or
`if( is_admin())
remove_action( ‘admin_footer’, ‘bp_core_admin_bar’, 8 );`
or
`add_action(‘bp_loaded’, ‘remove_adminbar_from_dashboard );`@mercime , thanks for the link. I did that on bp_adminbar_login_menu successfully, but when it comes to bp_adminbar_account_menu, the array codes beyond my ability, so I am thinking to use bp_core_remove_subnav_item. Maybe it’s not the way–still need to work with the bp_options_nav array.
This is where bp get the sub-nav:$counter = 0; foreach( (array)$bp->bp_nav as $nav_item ) { $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; echo '<li>'; echo '<a id="bp-admin-' . $nav_item . '" href="' . $nav_item . '">' . $nav_item . '</a>'; if ( is_array( $bp->bp_options_nav[$nav_item] ) ) { echo '<ul>'; $sub_counter = 0; foreach( (array)$bp->bp_options_nav[$nav_item] as $subnav_item ) { $link = str_replace( $bp->displayed_user->domain, $bp->loggedin_user->domain, $subnav_item ); $name = str_replace( $bp->displayed_user->userdata->user_login, $bp->loggedin_user->userdata->user_login, $subnav_item ); $alt = ( 0 == $sub_counter % 2 ) ? ' class="alt"' : ''; echo '<li><a id="bp-admin-' . $subnav_item . '" href="' . $link . '">' . $name . '</a></li>'; $sub_counter++; } echo '</ul>'; } echo '</li>';How can I check this array and filter items inside?
`bp_before_sidebar_login_form`
and
`bp_after_sidebar_login_form`
As long as be default theme has these 2 line before and after sidebar login form, the code should work.
This means if BP decide to change these 2 hooks to something else, you can change my code to
`add_action(‘before_somethingelse’, ‘mesh_before_somethingelse’);
function mesh_before_somethingelse() { ob_start(); }
add_action(‘after_somethingelse’, ‘mesh_after_somethingelse’);
function mesh_after_somethingelse() { ob_end_clean(); }`I put a cookie free domain on Cloudflare, and put all my static files on this domain.
The whole process goes smoothly, it’s easy to setup.
But I don’t see much speed improvement. Maybe because my site is too small so that the improvement is not obvious.Sure you can comment out 29-56.
The code I posted is for the case that if you don’t want to touch the theme template,Login_with_Ajax doesn’t automatically replace buddypress sidebar login form.
You can either modify or remove the sidebar login form.
If modify– follow Boon’s instruction, modify lines 29-56, take the widget_out.php as reference, and no need to add LWA widget
if remove–put this in your child theme’s functions.php, then, add LWA widget in sidebar:
`add_action(‘bp_before_sidebar_login_form’, ‘mesh_before_sidebar_login_form’);
function mesh_before_sidebar_login_form() { ob_start(); }
add_action(‘bp_after_sidebar_login_form’, ‘mesh_after_sidebar_login_form’);
function mesh_after_sidebar_login_form() { ob_end_clean(); }`amazing– my critical problems got no attention in months, while lazy bones got 4 replies in a matter of hours

I have both oEmbed and BuddyPress Links installed. They can both show external media. I’m wondering if they may conflict with each other or not? Hopefully BuddyPress Links is using oEmbed technics.
Great!
I see Gravatar is a big issue on this topic. Sometimes when site loading slow, I can see (at the address bar) it’s “connecting to gravatar.com..”
@pcwriter , I currently use otto’s /%year%/%postname%/ with some pityful feeling of missing the “category”, Now I see your new structure, I like the idea

By the way, you didn’t mention the default blog/ before the custom structure. Did you remove it already? I know there’s a way to remove the blog/ — from the site edit page. But I’m not sure if it is the correct way — what’s your opinion?They provide lots of theme options, it’s wonderful if you don’t need to do anything out of the options. But once you go beyond the options, for every little bit customizing you need to learn their ways, that means you have to learn things on both sides. At a point, I decide I would spend time only on one side. BP is a big thing, actively developing, it’s un-avoidable that you want to implement new stuffs every now and then. That why I finally settled down on BP with child theme. At beginning, it’s difficult– for every little bit, you need some code. After get used to the standard way of doing things, it becomes easy.
I see. Probably BP functions not working well when WP is not multi. Need opinions from experienced BP users.
That code I pasted works on my site. Not sure what’s the cache on your site.
When you said “I dont want the login form on a wordpress/bp page but on my own site”, do you have WP multisite installed and BP activated? If not, that might be a problem.Try to delete yours totally, and paste this one: http://pastebin.com/YgpfXkrG
Looks like you pasted the “if” , not close it yet, Try add this at the end of your form:
“The login form is in this file:
bp-themesbp-defaultsidebar.php
start from ‘bp_before_sidebar_me’ , end at “bp_after_sidebar_login_form”Last year Boone’s code worked (I used it in bp-custom.php), now, after several BP upgrades, it generate error message.
Currently, I get erro of “in ……/plugins/invite-anyone/by-email/by-email.php on line 390”no clue on what’s happening, so I removed this @user? from my template completely.
Attention!
@modemlooper , thanks for the tip!
I’ve been bothered by this issue for a while. Thanks for giving the answer and the patch!
How to install the patch? put it in bp-core folder , or paste the code in a file?@modemlooper , thanks for the suggestion. I didn’t realized this issue. But, do we have control over this issue? How to not allow google scraping through?
Even if we can stop google scraping through some items, forum posts are still good to be exposed to google. Forum post are on at least 3 pages– Topic page, Group activity, Site activity. Personal activity(ignore this if block google on personal page)
So, at least the Group Activity and Site Activity are duplicated contents?
@modemlooper, thanks for your suggestion on different forms for different users in the register.php.
I also want to change the register slug. Because spam bots know bp register slug. We can get rid of a lot of them by simply change the register slug. But, how?