• I can’t find this question anywhere on the forum.
    Is it possible to display the entry titles in my BB Clone stats? I mean, when someone viewed a single entry.
    Right now I have in my single.php

    <?php
    define("_BBC_PAGE_NAME", "Single entry");
    define("_BBCLONE_DIR", "bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    And this works. But this way I can’t see which entry was visited.
    So I tried

    <?php
    define("_BBC_PAGE_NAME", the_title());
    define("_BBCLONE_DIR", "bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    But it doesn’t work. The visit is counted in the stats, but without a pagename.

    Anyone an idea if this is possible and how?

Viewing 1 replies (of 1 total)
  • Thread Starter schavuit

    (@schavuit)

    Nobody huh?
    Well I already figured it out myself ??

    For anyone looking for an answer to the same question,
    this did the trick:

    <?php
    $entrytitle = single_post_title(’Entry: ‘, FALSE );
    define( "_BBC_PAGE_NAME", $entrytitle );
    define("_BBCLONE_DIR", "bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Entry title in BB Clone stats?’ is closed to new replies.