WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to get BBclone working? (2 posts)

  1. Pj0tr
    Member
    Posted 8 years ago #

    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);
    ?>

  2. Pj0tr
    Member
    Posted 8 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic