| View previous topic :: View next topic |
| Author |
Message |
djm Über Pivot Groupie


Joined: 27 Nov 2005 Posts: 142 Location: Stuttgart, Germany
|
Posted: Mon Feb 13, 2006 7:12 am Post subject: Show BBClone entry hits |
|
|
This extension is/will be part of Pivot 1.40
Extension Name: Show BBClone entry hits v0.3
Extension Author: Daniel Munzinger
Download Location: see Attachment
Extension Description:
Everyone who uses bbclone for statistics can show the hit count of the given entry. Nothing spectacular but maybe useful for some people.
This usage of this snippet only makes sense if you're using both bbclone and hardened bbclone (either the snippet or the "built in" version of 1.3).
Usage:
[[show_bbclone_hits_entry:formatString]]
Where formatString is e.g.
%n visits so far.
%n Mal aufgerufen.
%n is the count returned by bbclone for the entry.
Note: In another thread Hans stated that this funcionality might become a part of Pivot's "native" bbclone support but until the day of all days I'm keeping this snippet uptodate.
| Description: |
|
 Download |
| Filename: |
snippet_show_bbclone_hits_entry.zip |
| Filesize: |
986 Bytes |
| Downloaded: |
747 Time(s) |
Last edited by djm on Thu Feb 16, 2006 10:47 am; edited 4 times in total |
|
| Back to top |
|
 |
DavroN Respected Pivot Enthusiast


Joined: 02 Sep 2005 Posts: 456 Location: NY, USA
|
Posted: Tue Feb 14, 2006 10:07 am Post subject: Re: Show BBClone entry hits |
|
|
does it have to include "snippet_"??
bbclone_c4entry
_________________ www.akil.me |
|
| Back to top |
|
 |
madjo Pivot Team


Joined: 11 Sep 2002 Posts: 10450 Location: Netherlands
|
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Tue Feb 14, 2006 3:36 pm Post subject: Re: Show BBClone entry hits |
|
|
| Quote: |
| does it have to include "snippet_"?? |
Yes, in the filename so Pivot detects the file and in the function name so pivot detects the function
I guess djm thought "show_bbclone_hits_entry" was a bit long - I think it's just fine...
_________________ My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags |
|
| Back to top |
|
 |
djm Über Pivot Groupie


Joined: 27 Nov 2005 Posts: 142 Location: Stuttgart, Germany
|
Posted: Tue Feb 14, 2006 4:22 pm Post subject: Re: Show BBClone entry hits |
|
|
| v0.2 contains a bugfix and a bug for special characters like ' & $ etc...
|
|
| Back to top |
|
 |
djm Über Pivot Groupie


Joined: 27 Nov 2005 Posts: 142 Location: Stuttgart, Germany
|
Posted: Wed Feb 15, 2006 1:58 pm Post subject: Re: Show BBClone entry hits |
|
|
| djm wrote: |
| v0.2 contains a bugfix and a bug for special characters like ' & $ etc... |
so, problem is solved. Since it works for German it should work for Nordic languages, English and the other Latin languages.
I don't know about Cyrillic...
|
|
| Back to top |
|
 |
Niwla Platinum Sponsor


Joined: 02 Jul 2004 Posts: 532 Location: Groningen, The Netherlands
|
Posted: Thu Feb 16, 2006 8:56 am Post subject: Re: Show BBClone entry hits |
|
|
Isn't Wzup an easier way of getting (more or less) the same result (or even better) ?
_________________ Download Free Pivot Ported Templates here! |
|
| Back to top |
|
 |
djm Über Pivot Groupie


Joined: 27 Nov 2005 Posts: 142 Location: Stuttgart, Germany
|
Posted: Thu Feb 16, 2006 10:46 am Post subject: Re: Show BBClone entry hits |
|
|
| Niwla wrote: |
| Isn't Wzup an easier way of getting (more or less) the same result (or even better) ? |
If you're not running bbclone of course. But this snippet is intented for people who do use bbclone and want to expand the functionality given in Hans' bbclone snippets.
Basically wzup and bbclone are two different solutions for counters.
But thanks for the comment. It made me realize, that I have to add some things in the first post.
|
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Thu Feb 16, 2006 2:35 pm Post subject: Re: Show BBClone entry hits |
|
|
As djm says, show_bbclone_hits_entry is easier of you already have installed bbclone. If not, wzup is probably easier to get going.
However, there is one issue to consider. Referer spam which makes statistics useless. Some, a lot, referer spam hits are stopped by the integrated "first defense" in Pivot - assuming you have 1.30 installed. However, hardened bbclone has additional (very good) protection against referer spam and hence the stats from show_bbclone_hits_entry will in general be much more relevant than wzup. (I'll leave out the technical details.)
_________________ My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags |
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
|
| Back to top |
|
 |
djm Über Pivot Groupie


Joined: 27 Nov 2005 Posts: 142 Location: Stuttgart, Germany
|
Posted: Tue Oct 17, 2006 7:45 am Post subject: Re: Show BBClone entry hits |
|
|
Good to hear that!
| hansfn wrote: |
| PS! I made some needed changes to the code. |
Yeah, I think that was necassary because I only hacked it so that it worked
|
|
| Back to top |
|
 |
Kay Pivot Groupie In Training


Joined: 22 Oct 2008 Posts: 4
|
Posted: Sun Dec 28, 2008 3:36 pm Post subject: Re: Show BBClone entry hits |
|
|
Hi,
I recently installed bbclone for my pivot blog and am using the integrated extension show_bbclone_hits_entry. Both bbclone and my blog use utf-8 encoding but I have problems reading the hit count for certain pages that use special characters, in this case the macron.
The page/blog entry is called Kyūyaku Megami Tensei and it's here. The macron heading looks like this and the number of hits is given as 0 in the category Zugriffe:
It says: "Zugriffe auf diesen Eintrag: 0".
But in bbclone the page title is scrambled like this:
Which is probably the reason why it fails to connect the hit count with the page title.
Any idea how to fix this?
Thanks!
|
|
| Back to top |
|
 |
djm Über Pivot Groupie


Joined: 27 Nov 2005 Posts: 142 Location: Stuttgart, Germany
|
Posted: Tue Jan 27, 2009 5:00 am Post subject: Re: Show BBClone entry hits |
|
|
| I just visited your blog and it seems to work properly now!?
|
|
| Back to top |
|
 |
Kay Pivot Groupie In Training


Joined: 22 Oct 2008 Posts: 4
|
Posted: Tue Jan 27, 2009 6:56 am Post subject: Re: Show BBClone entry hits |
|
|
| Yes, I'm using PivotX now, which passes the correct title unscrambled.
|
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|