BBCLone

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

BBCLone

Post by Straterra »

I have tried the BBClone forums, but they didn't answer me..

I have put the bbclone folder in the same folder as my PHP scripts and put this at the bottom of my scripts...


<?php
define("_BBC_PAGE_NAME", "Main BIO Page");
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>

P.S. YAY! Post number 100!!!
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Okay so where is the question?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

It doesn't work. No stats show up in the BBClone. I was wondering why.
Also, I get this at the bottom of the page

<!-- BBClone v 0.33.3 OK: counter file is working -->

<!-- BBClone v 0.33.3 OK: access file is working -->
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Got a URL ?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Yeah, http://eckclan.sytes.net/counter/ for the BBClone statistics...

http://eclclan.sytes.net/cgi-bin/pro.php?user=straterra for the code for the statistics.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

I can't access either of those URL's.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Oops, typo..


Try these links

http://eckclan.sytes.net/bbclone/ for the counter information

http://eckclan.sytes.net/cgi-bin/pro.php?user=straterra for the code
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

You need to set $BBC_MAINSITE to the right URL man. Set it to http://jit.zapto.org:88/ or whatever.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

It is set to the correct URL...
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Lets see the code you added to pro.php
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

This is the code added to pro.php (as instructed by BBClone)

Code: Select all

<?php
define("_BBC_PAGE_NAME", "Main BIO Page");
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

That _BBCLONE_DIR needs to be probably ../bbclone/ or whatever since it does not exist in the same directory as pro.php. Get me?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

But...bbclone (folder) DOES exist in the same directory as pro.php...
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Dude, according to those URL's you posted, pro.php is in your cgi-bin.

Did you try what I just told you?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Yeah, pro.php IS in my cgi-bin, but both /counter/ and /bbclone/ are Aliases which point to the same place, /cgi-bin/bbclone/.
Post Reply