This topic has 3 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #94836
     Ayoade
    Participant

    Hi,

     

    I am trying to change the default tab for my buddypress members to profile and not activity. I have read a couple of articles online – not helping.

    This code was recommended here
    <div class=”line number1 index0 alt2″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”><code class=”php comments” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: #008200 !important;background: none !important”>/**</div>
    <div class=”line number2 index1 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”><code class=”php spaces” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;background: none !important”> <code class=”php comments” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: #008200 !important;background: none !important”>* Change BuddyPress default Members landing tab.</div>
    <div class=”line number3 index2 alt2″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”><code class=”php spaces” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;background: none !important”> <code class=”php comments” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: #008200 !important;background: none !important”>*/</div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”><code class=”php plain” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: black !important;background: none !important”>define(<code class=”php string” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: blue !important;background: none !important”>’BP_DEFAULT_COMPONENT’<code class=”php plain” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: black !important;background: none !important”>, <code class=”php string” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: blue !important;background: none !important”>’profile’ <code class=”php plain” style=”margin: 0px !important;padding: 0px !important;border: 0px !important;font-size: 1em !important;vertical-align: baseline !important;float: none !important;height: auto !important;line-height: 1.1em !important;overflow: visible !important;width: auto !important;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace !important;direction: ltr !important;color: black !important;background: none !important”>);</div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”></div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”>Another code was recommended here:</div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”></div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”>Both codes are not giving me the result I expect.</div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”></div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”>When the profile name or picture of a member is clicked, I want to be taken to the profile page of the person.</div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”></div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”>Am I missing something in the way I’m implementing this?</div>
    <div class=”line number4 index3 alt1″ style=”font-size: 13px;line-height: 14.3px;font-family: Consolas, ‘Bitstream Vera Sans Mono’, ‘Courier New’, Courier, monospace;color: #222222;margin: 0px !important;padding: 0px 1em !important;border: 0px !important;vertical-align: baseline !important;float: none !important;height: auto !important;overflow: visible !important;width: auto !important;direction: ltr !important”></div>

    #94849
     sharmstr
    Moderator

    Instead of putting it in bp-custom.php, try it in your child theme’s functions.php file.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #94854
     Ayoade
    Participant

    Thanks Sharmstr.

    You have solve my problem so easily.

    #94860
     sharmstr
    Moderator

    Awesome.

    moving because this isnt a bug

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?