Forum Replies Created
-
@mercime – I did look at the changeset/5628 of 3 files bp-core-adminbar.php, admin-bar.php and admin-bar.dev.css but I do have the same codes as 3 files. There is nothing I could change. I have the version 1.5.4. Is there a fix?
Can I add another groups in my child theme instead of more plugins like import the files from folder in bp-default’s groups into child-theme’s businesses?
@modemlooper
Is that possible add more User Groups as for Businesses Group?Is there a ways how-to do it?
@flynxify – Yes, I want two kinds of groups.
1. Normal groups
2. Businesses groupsI just try your plugin buddypress group fields and I get an error:
`Warning: extract() [function.extract]: First argument should be an array in /home/user/apps/wordpress/wp-content/plugins/buddypress-group-fields/buddypress-group-fields.php on line 9`
Yes, it shows a Restaurant Description, Restaurant Price etc. I have the latest WordPress and BuddyPress.
Thanks, Mikey3D
@sbrajesh @boonebgorges @DJPaul
Could you believe it where do you think I found this problem? I had this code in wp-config.php
define ( ‘BP_REGISTER_SLUG’, ‘please-sign-up’ );
That code didn’t works for buddypress 1.5. Why is that it? The URL is supposed to change…
From http://www.site.com/blog/register/ TO http://www.site.com/blog/please-sign-up/
When I delete this “define ( ‘BP_REGISTER_SLUG’, ‘please-sign-up’ );” – the Username availability checker for your site plugin is working.

Whew!!!!!!!, Mikey3D
I mean it doesn’t show anything after add the username.
You should be able to follow this tutorial.
You should be able to follow this tutorial.
Why not just use @realname on their business cards instead of site.com/realname?
I knew why you would do it but how will you eliminate duplicate content between members and unique items in the search engines? Use robots.txt:
User-agent: *
Disallow: /members/EDIT: @gregfielding has similar problem “Help with redirect for root profile change” that I didn’t tell him.
Is there a reason why you need to change the URL profile member’s link? There is no advantage what you really want.
You should let the user decide what they want to go not other way around.
/plugins/bp-custom.php
`//=Redirect to User’s Profile Page after Login
function rt_login_redirect($redirect_to, $set_for, $user){
$redirect_to = bp_core_get_user_domain($user->id);
return $redirect_to;
}
add_filter(‘login_redirect’, ‘rt_login_redirect’, 20, 3);`@r-a-y haven’t responded my above message. Is he embarrassing that he is wrong? Because either activate.php file is the bp-default theme which is not my problem and I have delete the whole first two lines in my child theme /registration/activate.php and the problem is after clicked activation link in email I get:
`http://www.domain.com/blog/activate/
Activate your Account
Please provide a valid activation key.
Activation Key:`There is no key link in the domain. e.g.
http://www.domain.com/blog/activate?key=afd7528c3b5664d429f94a2ed59a4c32
I have single WP. What is the solution?
Thanks, Mikey3D
`As r-a-y suggests, in my experience at least, that kind of error is almost always malformed PHP files — trailing spaces, unclosed brackets, stuff like that. If you’ve pasted functions into your functions.php or bp-custom.php, look there first, then any other template files you’ve edited.`
There was no error in my functions.php, bp-custom.php and template files. The warning error, above in my first posted, was possible from the core bp-default /registration/activate.php.
“Is that a general recommendation?
”
– No! However I have only been using your two codes that works but after awhile when I found the bugs it’s causing of your codes.1. Duplicate Content: Slash and No Slash at the End of URL
2. The page isn’t redirecting properly“I did say it was test code. Looks like you have whitespace issues in your /registration/activate.php. Delete any trailing whitespace from the beginning of that file.”I did put back the
function bp_core_redirect_canonicalin functions.php and deleted redirect trailing slash in .htaccess before process your above posted. It is the same problem I had it before except no warning error show up, only missed a key link in the domain link.I haven’t touch activate.php in bp-default therefore when I looked for trailing space, it looks like this:
`
`If that is what you were talking about I deleted the whole line 1 and I tested it again and result I get when click the activation link in email:
http://www.domain.com/blog/activate/
`Activate your Account
Please provide a valid activation key.
Activation Key:`There is no key link in the domain. e.g.
http://www.domain.com/blog/activate?key=afd7528c3b5664d429f94a2ed59a4c32
The line 1 in activate.php said
“This template is only used on multisite installations.”I have single WordPress. Does it matter? All those error the user still able get in after clicked the activation link in the email. Huh?Is there a fix? What is the solution for Single WP after user completed sign-up?
“Your htaccess rewrite rules look like it will interfere with querystring variables.
eg. example.com/my-page/?variable=my-test”Ha, thanks for noticed.
@psivait What @andrea_r is talking about robots.txt and rel=“nofollow” to noindex the link?
robots.txt
`User-agent: *
Disallow: /register/`rel=“nofollow”
In your child theme: sidebar.php
`<?php printf( __( ' You can also create an account.’, ‘buddypress’ ), site_url( BP_REGISTER_SLUG . ‘/’ ) ) ?>`To avoid having the duplicate content, you only need one content and not to have the same two content. Ex. the two different URLs that have the same content:
http://bp-tricks.com/members
http://bp-tricks.com/members/You need to 301s redirect to trailing slash at the end of URLs to one of content.
I was just looking for BuddyPress or WordPress sites if they have the end of redirect trailing slash URL without duplicate content:
Who doesn’t have the redirect to trailing slash?
http://bp-tricks.com/members
http://commons.gc.cuny.edu/members
http://savannahvideocentral.com/members
http://yoast.com/articles/wordpress-seoOnly this has working:
https://wordpress.org/about/philosophy
Most of them don’t even know the problem.
I got it working by add rewrite rules trailing slash to the end of the URL in .htaccess:
`
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://domain.com/blog/$1/ [L,R=301]
`Make sure the above codes are before the # BEGIN WordPress rewrite rules.
Don’t use @r-a-y codes.
@timothyjunior You have been mislead by @vegasparty607 that is not his site. It’s @gunju2221
"? Do you mean what has been discussed in the posts in this thread?"Either, it’s relevant.
"Have a read of the WP codex, look at functions such as register_style, enqueue_style, enqueue_scripts and associated functions"Nah, just found this helpful How to disable scripts and styles.
Thanks @hnla
How do I eliminate CSSs and JavaScripts so I can control what I want only one CSS and JavaScript?
@djpaul, are you saying if I changed BP > General Settings or WP > Settings – it will break or corrupt the database because it‘s the fault of the software? Can you be more specific?
Can the plugin break the database? I only have gut instinct I’m not sure it maybe BP Unread Posts that I have try one day then deactivate then delete it was a few months ago.