Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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
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
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
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
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
Re: BBClone stats plugin
Hey, it works! françois, you’re a rock star! Thanks! :)
Offline
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