Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Florence Baby
    Participant

    @okuleyeflo

    Hi, @tse11, @deepbevel, @ousep

    did anyone know a better solution for this in BP 2.0.

    The above code is still working but it is not ajax. you have to reload the page to see the count.

    Regards


    Florence Baby
    Participant

    @okuleyeflo

    @shanebp,

    You are the man, thanks for your help. changing ID to class solved the problem.

    Thumbs Up and thanks for your time.


    Florence Baby
    Participant

    @okuleyeflo

    @shanebp,

    thanks so much, the link is correct and it a normal page create from wp admin.

    and I just want to use the code to just link to that page called invite-friends

    so I used the code you help me with to link it

    function bp_myadd_tabto_mainactivity() {         
     echo '<li id="activity-invito"><a href="/invite-friends">Invite your friends</a></li>';
    }
    add_action( 'bp_activity_type_tabs','bp_myadd_tabto_mainactivity');

    Florence Baby
    Participant

    @okuleyeflo

    @shanebp,

    thanks so muck for your great help, the link now shows on the activity page tab but when click, it just stay the same and not going to the link page.

    Any suggestion? so sorry to disturb you just a newbie.

    regards


    Florence Baby
    Participant

    @okuleyeflo

    @shanebp,

    thanks so much for your help, although am new to all this code stuffs but after reading through codex have came up with the below code but it is not working.

    Any help will be highly appreciated.

    function bp_myadd_tabto_mainactivity() {         
    global $bp;
    
    '<li id="activity-invito"><a href="/invite-friends">Invite your friends</a></li>';}
    
    do_action( 'bp_activity_type_tabs','bp_myadd_tabto_mainactivity ');

    thanks


    Florence Baby
    Participant

    @okuleyeflo

    Polite Bump


    Florence Baby
    Participant

    @okuleyeflo

    @danbp,

    Thanks so much for your effort, the code you gave above add item to Just-Me activity and not the main activity.

    Thanks for your input anyways

    Flo


    Florence Baby
    Participant

    @okuleyeflo

    Thanks @megainfo, for your input,


    @danbp
    , thank you so much, that did the trick

    Regards

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar