WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to get BBclone working?

[Resolved] How to get BBclone working?

  • Hi! I want to let BBclone work with WordPress. De index is not a problem, if you visit it is shows that visit in BBclone.
    Now i want to count the visits on single.php, i want BBclone create a link to that post with the title of that post…

    Some got an idea? This is the code that i need to put in single.php…
    code
    <?php
    define("_BBC_PAGE_NAME", "WHAT DO I HAVO TO DO HERE???");
    define("_BBCLONE_DIR", "bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

Viewing 1 replies (of 1 total)
  • Ok√©, i found something what seems to work. This is the code what must placed on the top of index.php, single.php or any page what you want to be tracked by BBclone.
    code
    <?php
    define("_BBC_PAGE_NAME", get_bloginfo("name") . wp_title("/", false));
    define("_BBCLONE_DIR", "./bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    BBCLONE_DIR is variable!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to get BBclone working?’ is closed to new replies.
Skip to toolbar