vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - e-steki Profile Stats v1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=155603)

Lea Verou 08-17-2007 10:00 PM

e-steki Profile Stats v1.0.1
 
What does this do?
This unique statistics mod, displays various user-oriented statistics, even from custom fields! Refer to the features & the statistics section for more information.

Admin Features
  1. No template modifications. If you don't want to place the link in the Quick Links menu, there is an option to disable the automatic template edit and perform it yourself.
  2. Fully phrased.
  3. You can turn on/off every single statistic, so that the hack fits your needs 100%.
  4. A nice, usable and extensive manual instead of an ugly readme.txt ;-)
Types of statistics displayed (in order of appearance)
  1. Custom fields (you can enable/disable all custom fields or specify which custom fields you want the script to show).
  2. Age statistics (you can enable/disable this and also specify the classes that the ages are sorted into)
  3. Age privacy statistics (you can enable/disable this)
  4. Email domain statistics (you can enable/disable this and also set the frequency it takes for a domain to appear separately)
  5. Timezone statistics (you can enable/disable this)
  6. Subscription statistics (you can enable/disable this)
  7. Number of posts per page statistics (you can enable/disable this)
Notes
  1. Supported for only a few days after each release.
  2. Please Mark as Installed if you use this (ehmm...you can also nominate it if you like it a lot :o ).
  3. Please do not request vBadvanced modules for its statistics.
  4. Be polite, its free, I don't owe you anything. Support issues with :mad: smilies and impolite wording will be ignored.
Screenshots
I wasn't able to upload the main screenshot via the attachment system due to its long size, and the other one was badly resized, so here they are from my server:
Main:
http://www.e-steki.com/myfiles/Michelle/eps_main.gif
Settings:
http://www.e-steki.com/myfiles/Michelle/eps_admincp.gif

Lea Verou 08-18-2007 09:30 PM

First post reserved. :)

cynthetiq 08-18-2007 09:38 PM

You are trying to kill me with your awesome mods!!!! I love your mods, they are so useful.

Thank you for your hard work and dedication.

I'll be installing shortly.

Lea Verou 08-18-2007 09:41 PM

Quote:

Originally Posted by cynthetiq (Post 1320567)
You are trying to kill me with your awesome mods!!!! I love your mods, they are so useful.

Thank you for your hard work and dedication.

I'll be installing shortly.

Thank you so much, its always nice to hear some kind words :)
In fact, I need them for my site, and I decided to release most of those that are about vBulletin itself.
Inform me if you find any bugs. :)

iogames 08-18-2007 09:53 PM

You have a strange case of 'double-brain' I found your Mods so tempting :(

Lea Verou 08-18-2007 09:57 PM

Quote:

Originally Posted by iogames (Post 1320575)
You have a strange case of 'double-brain' I found your Mods so tempting :(

If that's a good thing, thanks, but what's a double-brain? :o

goblues 08-18-2007 10:02 PM

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                SELECT
                        user.userid as userid,
                        options,
                        birthday,
                        showbirthday,
                        email,
                        timezoneoffset,
                        autosubscribe,
                        maxposts
                        ,
                FROM vb3_userfield
                INNER JOIN vb3_user as user USING (userid);

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM vb3_userfield
                INNER JOIN vb3_user as user USING (userid)' at line 11
Error Number : 1064
Date        : Saturday, August 18th 2007 @ 07:00:43 PM
Script      : http://www.xxxxxxxxxxx.com/forum/profilestats.php
Referrer    : http://www.xxxxxxx.com/forum/
IP Address  :
Username    :
Classname    : vb_database

Any suggestions? By the way, love your mods as well! :)

Lea Verou 08-18-2007 10:08 PM

Quote:

Originally Posted by goblues (Post 1320581)
Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

        SELECT
            user.userid as userid,
            options,
            birthday,
            showbirthday,
            email,
            timezoneoffset,
            autosubscribe,
            maxposts
            ,
        FROM vb3_userfield
        INNER JOIN vb3_user as user USING (userid);

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM vb3_userfield
        INNER JOIN vb3_user as user USING (userid)' at line 11
Error Number : 1064
Date        : Saturday, August 18th 2007 @ 07:00:43 PM
Script      : http://www.xxxxxxxxxxx.com/forum/profilestats.php
Referrer    : http://www.xxxxxxx.com/forum/
IP Address  :
Username    :
Classname    : vb_database

Any suggestions? By the way, love your mods as well! :)

Its something with the custom fields.
What are your settings?

PS: Also, I just noticed a small bug with the mail: If the setting "Minimum frequency for an email domain to appear on its own" is set to a quite high number (eg you have six members only and its set to 4) nothing appears on the email table.

I'll look into these issues in ~2 hours (my bf will start yelling if I take longer, I have promised that we watch a movie right after I release this :p)

PS2: Thanks for loving my mods! :) :)

goblues 08-18-2007 10:11 PM

All of the settings are default. Go spend some quality time with your man, you deserve it :D

I'll check into this on my end and report back.

Sulaiti 08-18-2007 10:14 PM

great ..

Thanks ..

cynthetiq 08-18-2007 10:15 PM

I was just about to post this SQL error myself. Ironically it errors out on my dev forum, but not my production one. very odd

Quote:

Warning: implode() [function.implode]: Bad arguments. in /profilestats.php on line 72

puertoblack2003 08-18-2007 10:16 PM

lol...i don't want to be damed to hell :eek:..i clicked install another great mod to my board thanks michelle.:up:

Scandal 08-18-2007 10:20 PM

Awesome mod! :eek:
It is very useful for my site!
Installed! :D


:up::up::up:

johnrizz 08-18-2007 10:28 PM

Nice job! I had to install the $template_hook[navbar_quick_links_menu_pos3] in navbar to get it to show up in quick links, but it was no big deal. Works fine! Thanks...

Hornstar 08-18-2007 10:45 PM

Looks like this will be very popular, thanks for sharing, I will install this when I get home. thanks.

yaoren 08-18-2007 11:33 PM

**Installed**
Works just peachy on 3.6.7

Thanks :)

Axel Foley 08-19-2007 12:01 AM

Hi Lea,

another good hack...I just tried it: it gives me the same db error as the one above if I enable the "Show custom fields stats?" and put no value in the "Custom profile fields to display".

The other strange thing I noticed is that in the profilestats.php code, you refer to $vbulletin->options['eps_customfields'] in the code, but after importing the .xml, that field is called $vbulletin->options['eft_customfields'], is this ok for you?

I'll wait for the fixed version...and thanks again for another one...;)

Keep up the good work.

EnIgMa1234 08-19-2007 12:33 AM

Yet another great mod.
*Enigma nominates Lea as coder of the month :p

Lea Verou 08-19-2007 01:24 AM

Sorry for the delay, I really liked the movie and got carried away afterwards reading threads in its imdb message board (Its called "The Illusionist", watch it, it was really good)

Quote:

Originally Posted by cynthetiq (Post 1320590)
I was just about to post this SQL error myself. Ironically it errors out on my dev forum, but not my production one. very odd

Its not odd at all. Probably in the dev forum you do not have any custom fields, whereas in the production one you do. This error is caused when trying to fetch custom profile fields when none exist. Of course it will be fixed shortly.
Quote:

Originally Posted by Axel Foley (Post 1320647)
Hi Lea,

another good hack...I just tried it: it gives me the same db error as the one above if I enable the "Show custom fields stats?" and put no value in the "Custom profile fields to display".

The other strange thing I noticed is that in the profilestats.php code, you refer to $vbulletin->options['eps_customfields'] in the code, but after importing the .xml, that field is called $vbulletin->options['eft_customfields'], is this ok for you?

I'll wait for the fixed version...and thanks again for another one...;)

Keep up the good work.

I probably confused the prefixes with my previous mod (eft_ was for featured threads). I'll fix that as well, thanks a lot.

Oh boy, I really suck at debugging my mods :(:p

Lea Verou 08-19-2007 01:25 AM

Quote:

Originally Posted by philos2 (Post 1320595)
Awesome mod! :eek:
It is very useful for my site!
Installed! :D


:up::up::up:

Quote:

Originally Posted by stone0075 (Post 1320601)
Nice job! I had to install the $template_hook[navbar_quick_links_menu_pos3] in navbar to get it to show up in quick links, but it was no big deal. Works fine! Thanks...

Quote:

Originally Posted by hornstar1337 (Post 1320613)
Looks like this will be very popular, thanks for sharing, I will install this when I get home. thanks.

Quote:

Originally Posted by yaoren (Post 1320631)
**Installed**
Works just peachy on 3.6.7

Thanks :)

Quote:

Originally Posted by EnIgMa1234 (Post 1320651)
Yet another great mod.
*Enigma nominates Lea as coder of the month :p

Thank you everyone!!! :):):):)

Lea Verou 08-19-2007 02:51 AM

Update: version 1.0.1
-----------------------
Bugs fixed:
1. Nothing showed in the email section when only 'Other' should be displayed
2. Database error when no custom fields did exist and the setting to display custom fields was set to Yes.
3. A variable name was different in the vbulletin settings and in the php code, which resulted to that setting not working (the profile field ids setting)
4. When the age was equal to an age class boundary, that person's age was counted in the last class (which was 50+ if you had left the age classes setting to the default)
5. The 'Other' category of the email stats was not being counted correctly, resulting in a smaller number than it should.

I'm now going to sleep.

gforce75 08-19-2007 03:03 AM

Very nice!

Zagis 08-19-2007 08:37 AM

Wow! Another great one!!!
Marked as Installed / MOTM

Thank you :)

projectego 08-19-2007 09:47 AM

[high]* projectego clicks install :)[/high]

Konstantinos 08-19-2007 10:40 AM

looks cool. how many extra queries ?

Lea Verou 08-19-2007 01:59 PM

Quote:

Originally Posted by Konstantinos (Post 1320845)
looks cool. how many extra queries ?

The term "extra queries" doesn't really make sense in this case as the hack is an extra page :p
Anyway, my code makes 1-3 queries, depending on the settings.

PS: Are you greek?

Paul M 08-19-2007 02:57 PM

Probably not something I will use, but certainly a nice idea. :)

Lea Verou 08-19-2007 03:03 PM

Quote:

Originally Posted by Paul M (Post 1320953)
Probably not something I will use, but certainly a nice idea. :)

Thanks Paul M, your opinion really counts :)


PS: Although you didn't change the attachment limits :mad: :p :p

MikeHolohan 08-19-2007 03:19 PM

I am getting this database error...
Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT
user.userid as userid,
options,
birthday,
showbirthday,
email,
timezoneoffset,
autosubscribe,
maxposts;

MySQL Error : Unknown table 'user' in field list
Error Number : 1109
My forum is called FaithForum.eu and my tables are prefixed with ff, so for example user is actually ffuser etc, is there a way to change this to ffuser... thanks, Mike.

Lea Verou 08-19-2007 03:22 PM

:confused:
Is this the whole database error?
I don't need the IPs etc but is this the whole query??

Btw, I use TABLE_PREFIX in all my queries, so its not that (I also use a table prefix in my forum).

MikeHolohan 08-19-2007 03:31 PM

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT
user.userid as userid,
options,
birthday,
showbirthday,
email,
timezoneoffset,
autosubscribe,
maxposts;

MySQL Error : Unknown table 'user' in field list
Error Number : 1109
Date : Sunday, August 19th 2007 @ 10:33:10 AM
Script : http://www.xxxx.xxx/xxxxx/profilestats.php
Referrer : http://www.xxx.xxx/
IP Address : xxxxxxxxx
Username : Mike
Classname : vb_database

this is the whole query...

Mike.

Lea Verou 08-19-2007 03:45 PM

:confused: That's insane...
Can you post a screenshot of your settings?
Do you have any custom profile fields?

Does anyone else have this weird issue?

Deepdog009 08-19-2007 03:46 PM

Beauts... Michelle

Keep the ball rolling...;)

ssslippy 08-19-2007 04:22 PM

I have this issue also, i have the 4 default profile fields.

MikeHolohan 08-19-2007 04:39 PM

Here is the screenshot although I didn't change anything...

Lea Verou 08-19-2007 04:42 PM

Try this profilestats.php and tell me if it was fixed so that I update the zip.

MikeHolohan 08-19-2007 04:51 PM

Warning: Invalid argument supplied for foreach() in /profilestats.php on line 108

I would like to get this working, this looks like an excellent mod... Mike.

Lea Verou 08-19-2007 04:56 PM

The problem is that you don't have any radio/select/checkbox custom profile fields, where the setting is set to yes for them.
I'll try to fix it though, so that even in this case it doesn't give any error.

MikeHolohan 08-19-2007 04:59 PM

You are correct, I set it to no and it works fine... but the output is limited now... Mike.

BTW thanks for all the help... clicks installed...

Lea Verou 08-19-2007 04:59 PM

Try this.


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01578 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete