Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-01 16:47:28

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

BBClone stats plugin

and_bbclone, poe_bbclone and rss_bbclone_popular are the only bbclone-related TXP plugins I’m aware of. poe_bbclone is great for getting bbclone to work with a TXP blog, and and_bbclone sounds like it would almost do what I want, with just a few problems …

1) the download link for and_bbclone on textpattern.org is broken.

2) even if I could my hands on the plugin, it only displays unique visitors. I’d like something more robust.

So, I guess this becomes a plugin request. Could someone pick up where and_bbclone leaves off?

I’d love to get a plugin that interfaces with a bbclone install and contains tags to display the following on a TXP page:

Total unique visitors
Total visitors
Visits in the past day
Visits in the past week
Visits in the past month
Visits in the past year

Any takers? I’d much appreciate it!

Cheers,
theturninggate

Offline

#2 2006-12-01 20:53:17

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: BBClone stats plugin

Doesn’t Googleanalytics give you all that with less hassle and putting extra load on page rendering ?

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2006-12-02 04:26:08

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: BBClone stats plugin

I didn’t know about GoogleAnalytics, but just checked it out. Thanks for the tip, but it doesn’t do what I want. The client I’m running the site for wants the counter to show up on the pages so that visitors can see it. I’m trying to avoid installing one of those disgusting, free counters. BBClone is already setup for the site, and I’d like just to pull numbers out of it and place them on the main page. I tried following the code found at http://help.bbclone.de/index.php?n=Examples.Example4, but TXP doesn’t like it at all.

So, the plugin request still stands. Anyone?

Thanks,
theturninggate

Offline

#4 2006-12-02 04:44:04

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: BBClone stats plugin

Hi,

Have a look at phpMyVisites, it’s a pretty nice stats program.

Display stats on your front page with the Phpmv2Count plugin.

Offline

#5 2006-12-02 16:31:58

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: BBClone stats plugin

Try and customize it (from BBClone Help )
<code>
<txp:php>
require(“bbclone_directory/var/access.php”);
$totalvisits = $access[“stat”][“totalvisits”];
$totalcount = $access[“stat”][“totalcount”];
$visitorsmonth = $access[“time”][“month”][date(“n”)-1];
$visitorstoday = $access[“time”][“wday”][date(“w”)];
$wday = $access[“time”][“wday”];
for($week = 0; list(,$wdays) = each($wday); $week += $wdays);

echo “<table border=\“1\” cellpadding=\“5\” cellspacing=\“2\”>\n” .”<tr><td align=\“right\”>Total Visits</td>\n” .”<td>$totalvisits</td></tr>\n” .”<tr><td align=\“right\”>Total Unique</td>\n” .”<td>$totalcount</td></tr>\n” .”<tr><td align=\“right\”>Visitors Month</td>\n” .”<td>$visitorsmonth</td></tr>\n” .”<tr><td align=\“right\”>Visitors Week</td>\n” .”<td>$week</td></tr>\n” .”<tr><td>Visitors Today</td>\n” .”<td>$visitorstoday</td></tr>\n” .”</table>\n”;
</txp:php>
</code>

Last edited by fpradignac (2006-12-02 16:32:46)


françois

Offline

#6 2006-12-05 14:42:44

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: BBClone stats plugin

françois,

When I use the code above, I receive the following error:

Parse error: parse error, unexpected ‘:’ in /var/www/vhosts/therecorderonline.com/httpdocs/textpattern/publish/taghandlers.php(2681) : eval()’d code on line 2

I changed the path to the directory, of course. This is a major improvement, though; when I tried it on my own, I received 20 lines of errors. Now it’s just the one. The counter still doesn’t show up, though.

Any other ideas?

Offline

#7 2006-12-06 07:40:40

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: BBClone stats plugin

@theturninggate,

I can try to “debug” you, but I miss your BBClone and TXP versions.

Last edited by fpradignac (2006-12-06 07:41:38)


françois

Offline

#8 2006-12-06 12:22:02

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: BBClone stats plugin

Using TXP 4.0.4 and BBClone 0.4.8b. Anything you can come up with would be much appreciated.
Thanks!

Offline

#9 2006-12-06 22:05:30

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: BBClone stats plugin

OK : I tried “copy/paste” from the code that I gave you above and I had the same message.
The problem is that Textile turns the quotation marks into right and left double quotes : so please rewrites all the quotation marks into “normal” double quote.
… and it works fine after that ;-)

Last edited by fpradignac (2006-12-06 22:07:11)


françois

Offline

#10 2006-12-07 01:34:07

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: BBClone stats plugin

Hey, it works! françois, you’re a rock star! Thanks! :)

Offline

#11 2006-12-07 06:06:48

fpradignac
Plugin Author
From: France near Cognac
Registered: 2005-01-29
Posts: 359
Website

Re: BBClone stats plugin

You’re well come :)


françois

Offline

#12 2007-03-26 20:44:38

joel
Member
Registered: 2004-11-26
Posts: 162

Re: BBClone stats plugin

I used the code mentioned above and the stats displays nicely. However it doesn’t seem to refresh the stats from the database. The site have had about 75000 unique hits and I don’t wanna ruin this for my client… ;)

Any ideas? Could it be a CHMOD-problem?

Offline

Board footer

Powered by FluxBB