[plug] BBclone setup issues

Chris Caston caston at arach.net.au
Sun Jan 1 20:36:54 WST 2006


Hello,

I'm trying to setup BBclone to give advanced statics on my new PHP based
website.

I'm following the instructions on:

http://help.bbclone.de/index.php?n=Setup.ActivationCode 

"Adding the Activation Code to Your Pages" 

Firstly I didn't have a .htaccess file in /var/www and I wasn't sure
what should be in one just for this use only.

I just created a new file with the code: 

 <FilesMatch "\.(php)$"> 
 php_value short_open_tag "Off"
 php_value auto_append_file "/var/www/bbclone/count.php"
 </FilesMatch>

and saved it as .htaccess

Will this give me issues? Was that .htaccess file suppose to have something in it?

I then have a problem with the part where it says to add:

 echo  "<?php\n"
      ."define("_BBCLONE_DIR", ""
      .dirname(__FILE__)."/");\n"
      ."define("COUNTER", _BBCLONE_DIR.""
      ."mark_page.php");\n"
      ."if (is_readable(COUNTER)) include_once(COUNTER);\n"
      ."?>\n"; 

to index.php

After doing so I get the error:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /var/www/bbclone/index.php on line 23


     1 <?php
      2 /* This file is part of BBClone (The PHP web counter on steroids)
      3  *
      4  * $Header: /cvs/bbclone/index.php,v 1.8 2005/04/03 20:26:35 olliver Exp $
      5  *
      6  * Copyright (C) 2001-2004, the BBClone Team (see file doc/authors.txt
      7  * distributed with this library)
      8  *
      9  * This program is free software; you can redistribute it and/or modify
     10  * it under the terms of the GNU General Public License as published by
     11  * the Free Software Foundation; either version 2 of the License, or
     12  * (at your option) any later version.
     13  *
     14  * See doc/copying.txt for details
     15  */
     16
     17
     18 // Default output.
     19 if (is_readable("show_global.php")) include_once("show_global.php");
     20
     21
     22  echo  "<?php\n"
     23       ."define("_BBCLONE_DIR", ""
     24       .dirname(__FILE__)."/");\n"
     25       ."define("COUNTER", _BBCLONE_DIR.""
     26       ."mark_page.php");\n"
     27       ."if (is_readable(COUNTER)) include_once(COUNTER);\n"
     28       ."?>\n";
     29
     30 ?>

thanks,

Chris Caston




More information about the plug mailing list