WordPress.org

Ready to get started?Download WordPress

Forums

BBclone on 1.5 ? (26 posts)

  1. Erwin
    Member
    Posted 9 years ago #

    I am trying to get BBClone (bbclone.de) working on WordPress 1.5 -> no luck. Have tried the tips on this blog (http://www.oobrien.com/weblog/archives/2004/05/31/wordpress-and-bbclone.php), but I guess this is not for 1.5

    Anybody got it running on 1.5 and care to spread the love? ;)

  2. Erwin
    Member
    Posted 9 years ago #

    *bump*

  3. maledei
    Member
    Posted 9 years ago #

    having the same problem.
    Besides, does anybody know whats up with delmyth's dstats? stattraq isn't being developed anymore either. Where have all the statistic-plugins gone? We definately need one for 1.5!

  4. engelwyre
    Member
    Posted 9 years ago #

    I've had a problem also, and have been working on this for a few days and no luck. Have tried placing the BBClone code in the header, footer and index file. I've even placed it in a 'bbclone.php' file within the current theme and used a PHP include with no luck.

    Was there a change in how Permalinks work, and could that have 'broken' BBClone/WP integration?

    May try using the RunPHP plugin and include BBClone that way.

  5. dimenster
    Member
    Posted 9 years ago #

    I have a working BBclone om my blog add this code in the header.php right before <html xmlns="http://www.w3.org/1999/xhtml">:
    <?php
    define("_BBC_PAGE_NAME", get_bloginfo('index') . wp_title('/', false));
    define("_BBCLONE_DIR", "(serverpath to the domain/bbclone/");
    define("_NEW_COUNTER", _BBCLONE_DIR . "mark_page.php");
    if (file_exists(_NEW_COUNTER))
    { include(_NEW_COUNTER); }
    ?>

  6. engelwyre
    Member
    Posted 9 years ago #

    dimenster, that didn't work :(
    Wonder if the method used for BBClone and any changes to WP for v1.5+ is affected by the host? I use Dreamhost.

  7. dherren
    Member
    Posted 9 years ago #

    Not working for me either. If I use a "hard coded" page name, it works fine. Thus:

    <?php
    define("_BBC_PAGE_NAME", "Hard-Coded Name Here");
    define("_BBCLONE_DIR", "bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    will work. It seems that it's the get_bloginfo() and wp_title() calls that aren't working.

  8. gvtexas
    Member
    Posted 9 years ago #

    I finally got mine working...I put this:

    <?php
    define("_BBC_PAGE_NAME", get_bloginfo("name") . wp_title("/", false));
    define("_BBCLONE_DIR", "/server/path/tofolder/bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    ...just after get_header and before div id=content in each whole page template type I wanted to track. Putting it in the header template didn't work, nor the footer, nor the sidebar, nor anywhere in the head sections...had to stick it here in main, post, and archives pages. And thus it worked for me in 1.5.

  9. dherren
    Member
    Posted 9 years ago #

    This is very strange... the above works in _some_ locations but not in others. If I use the full server path from root in some of my blogs (several blogs on the same site, at various levels), it works fine. If I use the full path for tracking the top level blog, no joy. If I use the partial path that used to work before the the WP1.5 release, no joy.

    And this was all working just fine with the Feb 6th release of the 1.5 gamma...

  10. dherren
    Member
    Posted 9 years ago #

    Newbie question...

    What does *bump* mean? I see it posted every now and then around the forum?

  11. moikirsch
    Member
    Posted 9 years ago #

    I use BBClone on my weblog but I haven't updated yet (I will hopefully do it tomorrow or in the wekend).

    But some tips that I can give you are:

    - Use absolute Paths (not relative)
    - Make a flush of the outputh of php before calling BBClone (this will make your site a little faster for the user)

    If still doesn't work, change your setting of PHP to show all errors and maybe you can see what the problem is. (Actually you could do this before... if you don't have access to php.ini try turning the messages on using the php function).

    Sorry for not mentioning the exact name of each php function (I don't remember their name) but with a search at php.net you should be able to find them.

    Good Luck.

    PS. I know this is all technical stuff but I assumed that if you are trying to add a counter such as bbclone you understand a little about php.

  12. gvtexas
    Member
    Posted 9 years ago #

    I wanted to edit in a comment on my post above, but edit isn't available once others post I guess.

    Anyway, my code worked on the 1.5g of 2/7 and also 1.5 strayhorn of 2/16.

    dherren: *bump* is simply a token post to make the thread show up at the top of the new posts list on the main support page (or within sections). Since so many posts occur here, they can roll out of sight pretty fast. But *bumps* without more comments/extra info are viewed by some as slightly rude. Adding a *bump* and saying something like "I tried this x, y, z thing but it's still not working" is considered far better than just a lonely *bump* in the post! ;-)

  13. datter
    Member
    Posted 9 years ago #

    I put this...

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

    ...after "get_header()" and before "div id="content" in index.php of the default template and it seems to work fine. I had it in the root index.php and didn't even notice it wasn't working until I saw this thread and checked it out.

    datter

  14. jonnyboy
    Member
    Posted 9 years ago #

    I tried this:

    <?php
    define("_BBC_PAGE_NAME", get_bloginfo("name") . wp_title("/", false));
    define("_BBCLONE_DIR", "/server/path/tofolder/bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    and this:

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

    but nothing works! Any ideas?

    jon
    http://www.ohjon.com
    http://www.ohjon.com/bbclone

  15. Talyn
    Member
    Posted 9 years ago #

    It's working fine for me, if I add the code (as datter mentioned above) to wp-content/themes/{theme-name}/index.php but what a drag to have to edit the index.php of each individual theme...

    Looks like it might be time for some enterprising plugin author to step in and save the day :)

    Scott

  16. mi327
    Member
    Posted 9 years ago #

    This code worked for me where the path to server is only ./

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

    I am not exactly sure if it tracks my static pages though off of 1.5
    I hope this helps

  17. mi327
    Member
    Posted 9 years ago #

    it only tracks my static pages that have my header when I put the code in my header. I suggest the path to the server.

  18. mkblue1
    Member
    Posted 9 years ago #

    Hi, can anyone help me. I want to install bbclone in my wordpress 1.5. I have copy the bbclone dir, change the chmod off var dir, changed the "" to 1 in the config.php but now what?

    I have already put this:
    <?php
    define("_BBC_PAGE_NAM", "index.php");
    define("_BBCLONE_DIR", "bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    ... in the index.php of my theme in many places but no result. My website structure is like http://www.subdomain.domain.net/wordpress and i have instaled bbclone @ http://www.subdomain.domain.net/wordpress/bbclone.

    I tried in many places of the index but when i open bbclone/index.php its all blank. Help me please..

  19. rprins
    Member
    Posted 9 years ago #

    You guys should check out:
    http://www.basketti.net/weblog/archives/2005/02/22/bbclone-en-wordpress-15/

    I did what was mentioned in the article and it worked for me. Also if you create any page specific templates (e.g. about.php) it will work as well.

  20. jonnyboy
    Member
    Posted 9 years ago #

    Thanks.
    It's a go!

  21. POlarSource
    Member
    Posted 9 years ago #

    Why does everyone keep spelling name wrong in

    define("_BBC_PAGE_NAM", "index.php");

    That is more than likely why is is taking me forever to get this to work... Where is everyone putting the bbclone dir?

    My sites tree is like this:

    tylersmalley.com/wordpress
    tylersmalley.com/stats <-- Renamed from bbclone

    Please post what worked for you when it works... It helps out a lot.

    Thank you everyone!

  22. ccheaton
    Member
    Posted 8 years ago #

    I think that part of the problem is that this line:
    ' define("_BBC_PAGE_NAME", get_bloginfo("name") . wp_title("/", false));'
    works for posts, but not for static pages.

  23. ccheaton
    Member
    Posted 8 years ago #

    Ok... here's the deal -- when I am viewing a POST, then the counter increments. However, when I view a PAGE, the counter doesn't seem to ever parse the code from above. Which file calls pages? It's not the index.php that is in the theme's folder?

  24. carloscrc
    Member
    Posted 8 years ago #

    That code works, but when i active the permalinks, don´t work, i try with the complete path, but is the same. Another solution?

  25. bradyb
    Member
    Posted 8 years ago #

    I simply put this into, index.php, single.php, and page.php, those are the ones that seem to need it.

    <?php
    define("_BBC_PAGE_NAME", get_bloginfo("name") . wp_title("/", false));
    define("_BBCLONE_DIR", "/full/path/to/bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

    mine works fine, even is working with the permalinks

  26. groovenectar
    Member
    Posted 8 years ago #

    thanks bradyb, that did it... i find it helpful to use $_SERVER['REQUEST_URI'] as the title. it makes it look more like my apache logs:

    <?php
    define("_BBC_PAGE_NAME", $_SERVER['REQUEST_URI']);
    define("_BBCLONE_DIR", "/path/to/bbclone/");
    define("COUNTER", _BBCLONE_DIR."mark_page.php");
    if (is_readable(COUNTER)) include_once(COUNTER);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.