Skip to:
Content
Pages
Categories
Search
Top
Bottom

redirect to Profile and not ‘Activity’


  • arezki
    Participant

    @arezki

    Folks, greetings. Once someone clicks on a member’s avatar, the link opens on “Activity.” Any chance that goes into Profile? Thanks a bunch

    Arezki

Viewing 15 replies - 1 through 15 (of 15 total)

  • modemlooper
    Moderator

    @modemlooper


    arezki
    Participant

    @arezki

    thank you, sir. all appreciated. will read it now


    arezki
    Participant

    @arezki

    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


    arezki
    Participant

    @arezki


    mrjarbenne
    Participant

    @mrjarbenne

    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.


    mrjarbenne
    Participant

    @mrjarbenne

    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.


    arezki
    Participant

    @arezki

    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’ );
    ?>


    arezki
    Participant

    @arezki

    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


    arezki
    Participant

    @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.


    arezki
    Participant

    @arezki

    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.


    modemlooper
    Moderator

    @modemlooper

    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.


    arezki
    Participant

    @arezki

    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.


    modemlooper
    Moderator

    @modemlooper

    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


    meg@info
    Participant

    @megainfo

    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


    arezki
    Participant

    @arezki

    Thanks @megainfo – That did not work, BUT, putting in wp-config.php did the trick. Thanks a bunch

    PROBLEM SOLVED

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘redirect to Profile and not ‘Activity’’ is closed to new replies.
Skip to toolbar