We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20776
    • 36 Posts
    I have the same probleme, i can’t see the name of the page...

    there is another configuration with the file config.php from bbclone?

    thanks
      • 8471
      • 333 Posts
      Hi mylullul. I have solved because I had pasted the code just after the <?php tag! And not just before the ?> tag!
      Check this wink
        Sorry for my bad English grin
        • 20776
        • 36 Posts
        thanks ! you save my life!
          • 20776
          • 36 Posts
          is there a snippet for the "show_detailed.php"?

          i don’t try to use it.
            • 7923
            • 4,213 Posts
            I have only done the ones that are attached in the first post.. but it’s not very hard to convert the php page into a snippet. Look what i did to the other ones and you’ll see..


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 20776
              • 36 Posts
              okay, thanks, i’ll try

                • 8471
                • 333 Posts
                Quote from: adias at Jan 15, 2007, 07:49 PM

                Hi Doze! I installed BBClone at my site www.amdias.com but i’ve found that IE users were marked as Netscape... I went to BBClone forum, but no one knew the problem.

                So i’ve found that in index.php of MODx there was this piece of code:
                $_SERVER['HTTP_USER_AGENT'] = isset($_SERVER['HTTP_USER_AGENT']) ? preg_replace("/[^A-Za-z0-9_\-\,\.\/\s]/", "", $_SERVER['HTTP_USER_AGENT']): '';
                $_SERVER['HTTP_REFERER'] = isset($_SERVER['HTTP_REFERER']) ? preg_replace($modxtags,"", $_SERVER['HTTP_REFERER']) : '';
                


                Because of this convertions, BBClone, called at the end of the index.php can’t work properly.

                The only way to BBClone work without problems is doing something like this:
                $HTTP_USER_AGENT = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
                $HTTP_REFERER = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
                


                Before

                $_SERVER['HTTP_USER_AGENT'] = isset($_SERVER['HTTP_USER_AGENT']) ? preg_replace("/[^A-Za-z0-9_\-\,\.\/\s]/", "", $_SERVER['HTTP_USER_AGENT']): '';
                $_SERVER['HTTP_REFERER'] = isset($_SERVER['HTTP_REFERER']) ? preg_replace($modxtags,"", $_SERVER['HTTP_REFERER']) : '';
                


                Finaly, at the end of index.php:
                $_SERVER['HTTP_USER_AGENT'] = $HTTP_USER_AGENT;
                $_SERVER['HTTP_REFERER'] = $HTTP_REFERER;
                
                $page_title=$modx->documentObject['pagetitle'];
                $bbclone_path=$modx->config['$base_path']."stats/";
                define("_BBC_PAGE_NAME", "$page_title");
                define("_BBCLONE_DIR", $bbclone_path);
                define("COUNTER", _BBCLONE_DIR."mark_page.php");
                if (is_readable(COUNTER)) include_once(COUNTER);
                



                And thats it! I hope this will be usefull to someone!
                Sorry my english, regards,
                ADias
                Hi, I was using this fix of adias for bbclone, but now with modx 0.9.6 the code of index.php is changed. Can anybody help me?
                thanks

                EDIT: I have solved. Now the fix of adias is useless and I have simply to add the code before
                exit;
                ?>
                at the end of index.php
                  Sorry for my bad English grin
                  • 28965
                  • 3 Posts
                  Hi all smiley

                  I’m worry about bbclone statistics into MODx >:(
                  What will I need do to look statistics about all pages on my site?
                  I made this snippets, but it doesn’t work huh the problem is that how make the statistic to all pages. Unfortunatly, only the main page is counternable. Please help wink
                  P.S. I run 0.9.6.1p2
                  P.P.S sorry if my english bad grin