PDA

View Full Version : [User CP Plug-in] Quick User Stats


Brad
07 Jun 2005, 06:57
This plug-in adds a new table to the usercp that lets the user look at his own stats quickly with one glance.

It currently shows:

User's posts/posts per day
User's avatar
User's join date
User's last visit (includes time)

I think it makes the usercp look a little better, otherwise the homepage is shorta bare..

New version:

1.0.2:

Fixed bug in file loo_sql.php, now re-builds phrase cache after adding phrases to the database.

Upgrade instructions:

From 1.0.0: see the file /upgrade_docs/upgrade100-102.txt in the zip file

From 1.0.1: see the file /upgrade_docs/upgrade101-102.txt in the zip file

Past versions

1.0.1:

Fixed bug that would show quick stat table when plug-in's are disabled (http://www.vbulletin.org/forum/showpost.php?p=664788&postcount=9)
Added phrases

1.0.0: Initial release to public

C.Birch
09 Jun 2005, 23:07
works fine here :)

Chris M
09 Jun 2005, 23:08
Installed and working here :)

Satan

Link14716
09 Jun 2005, 23:31
Nice job. :)

burnist
10 Jun 2005, 10:51
Lookin good, my first plugin installed :)

MrNase
10 Jun 2005, 14:52
Lookin good, my first plugin installed :)


Same for me, nice hack.. erm.. Plug-in ;)

southernlady
10 Jun 2005, 18:09
Okay, it's also MY first plugin and I'm confused.

At the top it has Hook Location: What do I use there? Liz

C.Birch
10 Jun 2005, 18:24
Okay, it's also MY first plugin and I'm confused.

At the top it has Hook Location: What do I use there? Liz


you dont you upload the xml file from your pc thats in the zip file.

ShiningArcanine
10 Jun 2005, 23:24
Nice. I installed this but I have it disabled at the moment as I'm not comfortable with plugins (or hacks for that matter) yet.

By the way, you might want to surround the template code with this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



It will disable the template code if the plugin system has been disabled or the plugin has been disabled.

mholtum
10 Jun 2005, 23:42
worked like a charm! I am now very excited on this new concept.

Brad
11 Jun 2005, 02:54
Thanks guys :), I will update this sometime tonight ;)

Brad
13 Jun 2005, 04:34
Nice. I installed this but I have it disabled at the moment as I'm not comfortable with plugins (or hacks for that matter) yet.

By the way, you might want to surround the template code with this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



It will disable the template code if the plugin system has been disabled or the plugin has been disabled.
New version is up, fixed this bug and added phrase support :)

Mike Gaidin
13 Jun 2005, 21:37
I did the update, twice, and this is the result....

KuRi
13 Jun 2005, 22:01
i get same.... it would seem that the phrases arent working

The Wise One
14 Jun 2005, 01:00
i got the same thing. went through and searched for one of the phrases. didnt alter it at all...just saved. now it works.

Mike Gaidin
14 Jun 2005, 01:43
Tried that and it worked for me too. Thanks for the tip! ^_^

Brad
14 Jun 2005, 04:16
Yea guys, something to do with the cache, I thought I fixed it but I guess I didn't. I'll take a look at it for now you'll just need to find one of the new phrases and save it, that will re-set the cache and they will all show :)

Brad
14 Jun 2005, 05:30
Ok bug fixed, released 1.0.2, upgrade instructions in the first post :)

ShiningArcanine
16 Jun 2005, 23:18
Ok bug fixed, released 1.0.2, upgrade instructions in the first post :)
Hey, Brad.loo, I haven't tried this but I'm curious, what happens to Quick Stats if the Quick Stats plugin is disabled via the Plugin Manager rather than via vBulletin Options' Plugin off switch?

mholtum
17 Jun 2005, 00:10
Mine wont show the avatar. But it is working otherwise

mholtum
17 Jun 2005, 10:19
upgrade fixed my issues! Thanks

Jaxx
18 Jun 2005, 20:01
Just upgraded to beta2 and this no longer works.

Brad
18 Jun 2005, 20:20
Just upgraded to beta2 and this no longer works.
I have not had a chance to download the latest public beta yet, when I have it on localhost I will fix this problem (asuming there is one :) )

C.Birch
18 Jun 2005, 21:02
still works for me when updated to beta 2 :)

Jaxx
18 Jun 2005, 23:47
still works for me when updated to beta 2 :)

Hm. Strange.

Gonna have to go through and take a look.

ShiningArcanine
19 Jun 2005, 05:00
I have not had a chance to download the latest public beta yet, when I have it on localhost I will fix this problem (asuming there is one :) )
I upgraded to Beta 2 and it still works.

Jaxx
19 Jun 2005, 07:01
I reran the sql.php file and now it works.

dreck
20 Jun 2005, 06:00
nice! *install*

Chris M
20 Jun 2005, 12:14
Re-ran loo_sql.php and it works :)

Satan

Brad
21 Jun 2005, 11:30
Lemme guess, after the upgrade there was no longer any text in the table? :)

Chris M
21 Jun 2005, 12:05
Yup;)

Satan

Brad
27 Jun 2005, 07:06
Yup;)

Satan
This is a result of re-build the phrases durring the upgrade, I can probbly fix that but for now just re-run loo_sql.php after each vB upgrade :)

Link14716
27 Jun 2005, 07:18
Add to languageid 0, not -1.

0 is the custom master language which is not deleted every upgrade, whereas -1 is the master language which is deleted every upgrade.

TTG
27 Jun 2005, 21:11
Clicked install .. works on 3.0.5 beta 3 :)

Chris M
29 Jun 2005, 21:41
Question: Why is this in Code Mods? o_O

Satan

Andreas
29 Jun 2005, 21:47
Code mods are any plugins or code modifications that require direct file access.

This Hack comes with PHP Files that must be uploaded and executed.

Chris M
29 Jun 2005, 22:20
Ah I see - Sorry must be a new thing;)

Satan

FleaBag
08 Aug 2005, 19:58
Brad do you have this running with RC2?

Neal-UK
08 Aug 2005, 20:08
Brad do you have this running with RC2?

Is this working on rc2? Members will love this

hydrostatic
08 Aug 2005, 20:10
Is this working on rc2? Members will love this

Yeah, if it's confirmed to work with RC2 I'll install it.

Karri
08 Aug 2005, 21:16
It is working well on my board. I have actually modified http://www.vbulletin.org/forum/showthread.php?t=83230 to appear there as well so when the user goes to his/her User CP main page they can get all of the info they might possibly need and keep the load off my server by keeping it off the main page. (IE they only see it when they want to see it, not every time they reload the board, at least that was the intesnt, no promises based on my hack skill level :)).

FleaBag
08 Aug 2005, 21:22
Any chance of a little help with doing that Karri?

michaelbenson
09 Oct 2005, 10:08
I like this idea, nice, simple, yet informative and relevant!
* Installs

puertoblack2003
19 Nov 2005, 01:44
great hack***INSTALLED*** 3.5.1, no problems

rb290
21 Nov 2005, 20:45
i dont want the avatar in there, know how I can take it out ?

rb290
10 Dec 2005, 08:51
hm this doesnt work with 3.5.2 ?

Brad
29 Dec 2005, 23:47
hm this doesnt work with 3.5.2 ?

It should work. I havn't messed with this code in awhile now, although I plan on re-doing it for vB.org's 3.5 upgrade and will release an update for it then. :)

Xzyte
09 Jan 2006, 09:41
Works great with 3.5.3

Thank you Brad!

futuredood
28 Jun 2006, 15:33
anyone got this working for 3.5.4? i'm scared of running the sql script if in case i can't uninstall it..