Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • akenach
    Participant

    @akenach

    The final script is like this:

    <h1>
    <?php
    global $user_ID;
    $usuario_logeado = bp_core_get_username( $user_ID );
    $pagina = trim( $_SERVER[“REQUEST_URI”] , ‘/’ );

    if ($pagina == “members/” . $usuario_logeado . “/messages”){
    $titulo_pagina = “Messages”;
    } elseif ($pagina == “members/” . $usuario_logeado) {
    $titulo_pagina = “Account”;
    } else if ($pagina == “members/” . $usuario_logeado . “/messages/starred”) {
    $titulo_pagina = “Messages”;
    } else if ($pagina == “members/” . $usuario_logeado . “/messages/sentbox”) {
    $titulo_pagina = “Messages”;
    } else {
    $titulo_pagina = the_title();
    }

    echo $titulo_pagina;
    ?>
    </h1>

    And make solution of problem …


    akenach
    Participant

    @akenach

    No exactly, i have a template for all “buddypress.php” in this template have in <h1> this…

    <div id=”barra_titulo_cursos”>
    <h1><?php the_title(); ?></h1>
    </div>

    But… in some cases, for “messages” pages, apears the Username, not apears tittle “Messages” and this is my problem.

    I have a little solution but i dont like, some like this:

    <div id=”barra_titulo_cursos”>
    <h1>
    <?php
    $mypage = trim( $_SERVER[“REQUEST_URI”] , ‘/’ );
    if($mypage = “members/akenach”) {
    $tit_page = “Account”;
    } elseif ($mypage = “members/akenach/messages”){
    $tit_page = “Messages”;
    } else {
    $tit_page = the_title();
    }
    echo $tit_pagina ;
    ?>
    </h1>
    </div>

    What is your opinion about this patch ?


    akenach
    Participant

    @akenach

    @prashantvatsh It does not work, the variables that it puts in the header are not included in the translation document. The system takes the user name and prints it in the header, what I need is to know where it prints to be able to change it.

    Anyway thank you very much


    akenach
    Participant

    @akenach

    OK i try¡

    Thanks¡

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