thank you, sir. all appreciated. will read it now
Hi @modemlooper…I wonder if this new version of BP made substantial changes in files? I just searched for bp-custom.php file, certainly in wp-content/plugins/ and in wp-content/plugins/buddypress, alas nothing. Is bp-custom.php gone and now another file holds the code?
Thanks
Arezki
If it’s not there you can create it. It’s not there by default, so if you haven’t added any customizations before, you won’t find it. Just create a bp-custom.php file in the plugins folder (it will be one of the few files in a directory of “folders”), and add the code you want. Don’t forget to add the <?php tag before the config lines @modemlooper has pointed you to here. Another option might be this plugin http://buddydev.com/plugins/bp-redirect-to-profile/ . I’m not sure if it’s been updated for 1.5, but @Brajesh is great about updating things, so I assume it works.
Sorry. I just re-read your initial question. That plugin from buddydev won’t help you in that case, but the code @modemlooper pointed you to will.
BRILLIANT…worked.. OK in case other folks wonder.. her it is: created a txt file with the following simple code below (just 3 lines)… Replace the file name to bp-custom.php and place it in wp-content/plugins/ And voila. Thanks @modemlooper U save me tons of worries.
<?php
define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
?>
Not 100% perfect. It does what it says… BUT, it interferes with your attempts to log out. When you click on log-out, it gets stuck on a blank page- trying to get back to site, you are not logged out. Any thoughts? @mrjarbenne / @modemlooper
Arezki
@mrjarbenne, i tried bp-redirect-to-profile and not working. In fact, many many fine plugins on WP are no longer working… Upgrades are great but can very disruptive too.
Same problem with LOGIN IN. Won’t let you when using bp-custom-php unless something else is added in the code. Which I don;t know what is.
Are you using a cache plugin, they do not work well with BuddyPress. Also your initial question was about viewing the profile as the default page of a user file not redirecting on login.
Thanx @modemlooper – I am not using a cache plugin. And you are right, I am interested in turning the profile as the default page of a user file not redirecting on login. Basically with the bp-custom-php file and 3 lines in it, the just messes up login in/out. After installing it, it would go blank upon log in/out.
How weird, I’ll test, sounds like a bug. Can you give more info on your install. What plugins and theme and versions of wp & bp
disable all plugins, and add this line in your functions.php
define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
try again, it work fine with bp 1.5.1
Thanks @megainfo – That did not work, BUT, putting in wp-config.php did the trick. Thanks a bunch
PROBLEM SOLVED