Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Pound
    Participant

    @b-hana

    may be image not show please http://www.fkx.asia/understandme.jpg


    Pound
    Participant

    @b-hana

    dear @venutius

    May be i done what my expected,
    “google search” can understand title tag that i set from js.

    document.title = ‘<?php echo strip_tags(mb_substr(bp_get_activity_content_body(), 0, 40)); ?>’;

    and search engine can index website activity by activity
    with title tage from first 40 charactors of ‘activity content body’

    I’d like to say thank you to you again for taking the time to help me.

    search engine understand


    Pound
    Participant

    @b-hana

    dear @venutius

    now i put

    <?php
    include(“header.php”);
    $title = “TITLE”;

    $output = str_replace(‘%TITLE%’, $title, $output);
    echo $output;
    ?>

    to entry.php and nothing effected, may be i’m not understand how it use.
    so, i will try to study about your advice about 2 day and will report the result to you again.
    Thank you very much.


    Pound
    Participant

    @b-hana

    on entry.php i do this

    <script type=”text/javascript”>
    document.title = ‘<?php echo strip_tags(mb_substr(bp_get_activity_content_body(), 0, 40)); ?>’;
    </script>

    this is example of my output http://www.retrophotoclub.com/members/admin/activity/47/

    it is ok to change title tag, but i thing it will change after page is load finished.

    i would like to try this with php with out use javascript.

    Thank you so much @venutius


    Pound
    Participant

    @b-hana

    dear @venutius
    thank you very much for teach me.
    I want to get first 40 charector of bp_get_activity_content_body() and set to single activity page <title> tag.
    Could you please guide me to do.
    Thank you very much

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