Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: bbclone plugin
i’m using v0.3 poe_bbclone and txp 1.0rc1 and bbclone 0.4.4.a
two things i can think of: if you cut and paste remillard’s text, be careful of the quotation marks …
<strong>
Last edited by alicson (2004-11-12 19:33:09)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: bbclone plugin
maniqui – Yes, I am using bbclone 0.4.4a with RC1 with no problems.
Do you have bbclone set for UTF-8 encoding? If not this could be causing your problems.
I downloaded the utf-8 version of bbclone. If you didn’t you can get it here.
Offline
#27 2004-11-12 19:55:55
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: bbclone plugin
To be completely fair, this is wilshire’s idea.
And, I’m using BBClone 0.4.4 and 1.0RC1 and it seems to work fine. If you get a parse error after tinkering with plugin code, try turning the plugin off and seeing if it goes away, then you can be reasonably sure that it’s something you typed there, and not a bigger issue.
Remi
Offline
Re: bbclone plugin
Remillard,
I have turned off the plug-in, and then, the pages works.
It seems to be something in the new lines added to the plug-in, because before making changes the plug-ins “works” (well, only for homepage) for me.
I will think about changing to UTF-8 charset.
I use “charset=iso-8859-1”
and this introduce me to hte new problem I have.
Can anyone help me with this:
<a href=“http://forum.textpattern.com/viewtopic.php?pid=30536#30536”>http://forum.textpattern.com/viewtopic.php?pid=30536#30536</a>
Thanks.
Offline
#29 2004-11-15 02:53:06
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: bbclone plugin
That very well could be the case. I don’t know much about the issues with international character sets.
For what it’s worth, I have some information from the BBClone folks and still trying to figure out if it’s possible to mock up the link somehow so that it works. It’s a pretty complex bit of code.
Remi
Offline
Re: bbclone plugin
Well, finally, I get it workin (at least, it seems to!)
I write this post to help other users, so they know how to proceed if they go into problems like me.
When you read, you should read, not just do a quick view over the post :)
alicson said:
<blockquote>
Last edited by maniqui (2004-11-17 19:16:16)
Offline
Re: bbclone plugin
> maniqui wrote:
I write this post to help other users, so they know how to proceed if they go into problems like me.
When you read, you should read, not just do a quick view over the post :)
I’m glad you got this working but you make a very good point maniqui. Especially because this is the exact solution and utf-8 suggestion I posted for you a week ago. :)
Last edited by wilshire (2004-11-17 20:18:21)
Offline
Re: bbclone plugin
Yes, Wilshire, you are right.
I have “read” your solutions, but I were very confused at that moment.
They make me search a lot about encoding and charset.
I have read <a href=“http://www.w3.org/International/tutorials/tutorial-char-enc/”>this great tutorial</a> about encoding and charsets, and etceteras..
The truth is that I didnt test the solution (the one changing some lines in the plug-in, and using “ and putting the code in the right order) with a non-UTF-8 version of BBClone.
I first changed to UTF-8 version and then figured out that one of the problems was using a wrong quotation mark and not this (") one, and that I must put the plug-in code in the right order.
So, I think that maybe, this plug-in works with a non-UTF-8 version of BBClone.
Offline
#33 2004-11-17 20:45:45
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: bbclone plugin
I wrote the BBClone folks about more details of their application in order to try to gain some insight into how the plugin might be changed to make the URLs correct. I haven’t had time to deal with it the past couple of weeks, so I’m going to post what they sent me. Perhaps it’ll spark someone’s genius.
<hr>
[Pagestat issue with invalid paths]
>
> Now I’m certain this is NOT BBClone’s fault. The plugin tinkers with
> the environment when it calls BBClone to make sure it works within the
> Textpattern page rendering context.
Sounds like you did some research yourself. There are very rare occasions,
where this can happen on a stock BBClone installation as well: If the
server is using non standard environmental variables for which BBClone has
no workaround.
> I was hoping though that you could give me some insight into what global
> parameter is read that BBClone gets the page URL from. If I know that,
> then I can modify the plugin and correct it so it links the page titles
> correctly.
First of all BBClone doesn’t simply grab “Request Uri” or “Url” (on IIS)
because it cannot be handled accurately and would result in duplicate
entries which unnecessarily bloat stats data. Example:
On Apache 1.3.x the following calls would be identical:
http://example.com/index
http://example.com/index/
http://example.com/index.php
http://example.com/
Additionally the default could be “default.php” which is standard on IIS,
or anything else what the server was configured for. For this reasons,
BBClone uses a different approach:
It creates a “Request Uri” variable itself which uses PATH_INFO, PHP_SELF
and the script filename. this is happening in lib/marker.php in the
function bbc_filter_uri(). Variable definitions for $filename and
$REQUEST_URI are inside of bbc_marker() (same file). BBClone omits query
strings because there’s no generic way to handle them. This only can be
done individually depending on the host application being used.
Maybe a note on the environmental variables used inside of the bbc_marker
class (still lib/marker.php). These are local variables and although they
may look like someone coding with register_globals “on” they’re not. In
fact bbc_marker() grabs the environmental variables it needs (names stored
in an array) and filters each of them with bbc_clean, which can be found
in lib/io.php starting at version 0.4.4. This is done for two reasons:
To get rid of any unsafe characters or embedded tags and to have
shorter names.
Offline
Re: bbclone plugin
:)
i think bbclone should separate the totals from the robots and totals of everyone else, so you can see how many non-robots visit (without opting to not see any robot visits at all). ..or is there already a way to do this?
at any rate, thanks for looking into it, Remillard.. (though i confess i’m not sure what you guys are looking into….
thanks again, Wilshire, for the mod.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#35 2004-11-17 21:15:42
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: bbclone plugin
I think you can use the total for OS and Browser for the number of non-robot viewers you’ve had. Seems like the Total Robots, plus the Total Browsers equals the Total Unique.
Offline
Re: bbclone plugin
or even just total unique minus total robots. or something.
but how can you get it to calculate and display for you? or what if you’d like it to print somewhere? this is where php becomes useful, among other places, eh…
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline