1 (edited by Nonante 2010-12-06 21:14)

Topic: [extension] Onclickshow_stats

This extension allows you to load the statistics only on click,
to reduce the number of queries on the index page using Jquery.

Eg:
When you do a fresh install of PunBB, on the "Forum",

if you are guest => 9 queries, if you are connected => 11 queries

If you install plus pun_colored_usergroups,

if you are guest => 10 queries, if you are connected => 12 queries

By cons, if you plus install onclickshow_stats,

if you are guest => 5 queries, if you are connected => 7 queries

So we reduced to a maximum of 5 queries, which is not negligible.
"These" queries will be generated only when it is intentional.

Note :

  • After installation go to Settings > Features > General PunBB features which are optional.

  • Extension compatible with pun_colored_usergroups, online_plus, birthdays, who_does

----------------------------------------------------------------------------------------

Cette extension permet de ne charger les statistiques que lors d'un click,
afin de réduire le nombre de requêtes sur la page index, en utilisant Jquery.

Exemple:
Lorsque vous faites une nouvelle installation de PunBB, sur la page d'index du forum,

si vous êtes guest => 9 requêtes, si vous êtes connecté => 11 requêtes

Si vous installez en plus pun_colored_usergroups,

si vous êtes guest => 10 requêtes, si vous êtes connecté => 12 requêtes

Par contre, si vous installez en plus onclickshow_stats,

si vous êtes guest => 5 requêtes, si vous êtes connecté => 7 requêtes

On réduit donc au maximum jusqu'à 5 requêtes, ce qui n'est pas négligeable.
"Ces" requêtes ne seront générées que lorsque cela est intentionnel.

Note :

  • Après installation, rendez-vous dans Paramètres > Fonctions > Fonctions générales de PunBB.

  • Extension compatible avec pun_colored_usergroups, online_plus, birthdays, who_does

----------------------------------------------------------------------------------------

http://prezup.eu/images/punbb/onclickshow_stats_features.png
Edit: When Jquery is loaded, is loaded in the bottom of page

Updates :

Extension : onclickshow_stats.zip v1.1 for PunBB 1.3.4
Languages include : English, Francais, French, Italian, Polish, Russian and Spanish.

Available at : Megaupload



This extension is visible on forum page of my test forum (in my signature).

We hope this is helpful wink

I don't speak English, but Google Translate is doing pretty good.

2

Re: [extension] Onclickshow_stats

Wow, looks awesome!

3

Re: [extension] Onclickshow_stats

Uhoh, problem with birthdays..

Notice: Undefined variable: lang_birthdays in /home/kiejrcom/public_html/extensions/onclickshow_stats/onclickshow_stats.php(79) : eval()'d code on line 67

4 (edited by Nonante 2010-12-04 08:09)

Re: [extension] Onclickshow_stats

Hello,
What are the extensions that are installed ?
As "lang_birthdays" is not part of my extension, or pun_colored_usergroups nor online_plus.

Edit: Is this extension ? http://punbb.informer.com/forums/topic/ … ays-today/

I don't speak English, but Google Translate is doing pretty good.

5

Re: [extension] Onclickshow_stats

Yeah, as well as the lang_who_does extension (that tbh could do with some fixing anyway)..

Notice: Undefined variable: lang_who_does

I love this anyway. Any idea how to put it on the index page for daris's portal too?

6 (edited by Nonante 2010-12-04 09:59)

Re: [extension] Onclickshow_stats

Ok, I Downloaded The Birthday extension, i will look to make it compatible if possible.
I'll take a look also for "who_does" to promise anything I do, I do not know yet what it is ^^.
Well on portal by Daris , I've never installed, but I think it is possible to make this change.

Edit:
I've update the link, is also now compatible with the extension birthdays.
I also add the color groups for the extension birthdays in new file ext_birthday_compat.

Keep me informed wink

kiejr wrote:

Yeah, as well as the lang_who_does extension (that tbh could do with some fixing anyway)..

Sorry but i did a search after the extension ... but I have not found.
You do not have a link?

I don't speak English, but Google Translate is doing pretty good.

Re: [extension] Onclickshow_stats

Tricky one to find big_smile

Nonante wrote:

You do not have a link?

http://punbb.informer.com/forums/topic/ … onitoring/

8 (edited by Nonante 2010-12-05 00:20)

Re: [extension] Onclickshow_stats

Ok, thank you smile , I searched "who_does" not this ^^ .
I'll see what I can do wink

Edit:
Link reupdated tongue

kiejr, I just made changes so that you can use all your favorite extensions.
I allowed myself to add the color group for birthday
Here's a look with extensions that you mentioned:
http://prezup.eu/images/punbb/onclickshow_stats_v1.2.png
____________________________________

I do not know why, but with Who_does on a fresh PunBB install I have no problem, with my forum cons of testing,
I have this error:

Notice: Undefined offset: 1 in functions line 80

To solve the problem I change the line 80 as follows:

    //$current_p = $url_parts[1];
    $current_p = (!empty($url_parts[1])) ? $url_parts[1] : '';

and everything works fine ...
I do not understand why, since it is the same server / configuration.
Have you any idea ?

Re-edit: thanks tongue

I don't speak English, but Google Translate is doing pretty good.

9

Re: [extension] Onclickshow_stats

yay. Thanks so much. Great extension smile

10 (edited by wandy 2010-12-05 14:11)

Re: [extension] Onclickshow_stats

I don't understand exactly what does extension does?

Does anyone have an example forum with this extension?

What stats are being referred here?

Re: [extension] Onclickshow_stats

wandy wrote:

I don't understand exactly what does extension does?

Does anyone have an example forum with this extension?

What stats are being referred here?

Hello,
Simply put, this extension will completly "remove" statistics block (number of member, posts, topics etc) and replace it with a link..
If you click on this link javascript will load the block statistics.
To see what we get, go to bottom of this page: http://nonante.eu/forum/ and click on "Click me to load stats." to see the stats appear.

Regards.

I don't speak English, but Google Translate is doing pretty good.

12

Re: [extension] Onclickshow_stats

@Nonante thanks for the reply.

When you say "queries"; are you referring to SQL queries?

13 (edited by Nonante 2010-12-06 20:51)

Re: [extension] Onclickshow_stats

wandy wrote:

@Nonante thanks for the reply.

When you say "queries"; are you referring to SQL queries?

No problem wink
Yes, this extension is a bit special because reading the file stops before the statistics, and file exchange (onclickshow_stats.php).
Onclickshow_stats content is almost the same, but it is necessary to separate the files before the statistics do not generate queries before a click.

I agree that it's a little trick but if we can reduce many requests, I am for this smile

Edit: If you want, look at the number of requests you get on your forum page.
On my test forum, with subforums I have this: [Generated in 0.031 seconds, 6 queries executed]

I don't speak English, but Google Translate is doing pretty good.