Log in

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


Brad
06-06-2005, 10:00 PM
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 (https://vborg.vbsupport.ru/showpost.php?p=664788&postcount=9)
Added phrases

1.0.0: Initial release to public

C.Birch
06-09-2005, 10:07 PM
works fine here :)

Chris M
06-09-2005, 10:08 PM
Installed and working here :)

Satan

Link14716
06-09-2005, 10:31 PM
Nice job. :)

burnist
06-10-2005, 09:51 AM
Lookin good, my first plugin installed :)

MrNase
06-10-2005, 01:52 PM
Lookin good, my first plugin installed :)


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

southernlady
06-10-2005, 05:09 PM
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
06-10-2005, 05:24 PM
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
06-10-2005, 10:24 PM
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:

<if condition="$vbulletin->options['enablehooks']">
<if condition="$user_joindate">

</if>
</if>

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

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

Brad
06-11-2005, 01:54 AM
Thanks guys :), I will update this sometime tonight ;)

Brad
06-13-2005, 03:34 AM
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:

<if condition="$vbulletin->options['enablehooks']">
<if condition="$user_joindate">

</if>
</if>

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
06-13-2005, 08:37 PM
I did the update, twice, and this is the result....

KuRi
06-13-2005, 09:01 PM
i get same.... it would seem that the phrases arent working

The Wise One
06-14-2005, 12:00 AM
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
06-14-2005, 12:43 AM
Tried that and it worked for me too. Thanks for the tip! ^_^

Brad
06-14-2005, 03:16 AM
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
06-14-2005, 04:30 AM
Ok bug fixed, released 1.0.2, upgrade instructions in the first post :)

ShiningArcanine
06-16-2005, 10:18 PM
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
06-16-2005, 11:10 PM
Mine wont show the avatar. But it is working otherwise

mholtum
06-17-2005, 09:19 AM
upgrade fixed my issues! Thanks

Jaxx
06-18-2005, 07:01 PM
Just upgraded to beta2 and this no longer works.

Brad
06-18-2005, 07:20 PM
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
06-18-2005, 08:02 PM
still works for me when updated to beta 2 :)

Jaxx
06-18-2005, 10:47 PM
still works for me when updated to beta 2 :)

Hm. Strange.

Gonna have to go through and take a look.

ShiningArcanine
06-19-2005, 04:00 AM
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
06-19-2005, 06:01 AM
I reran the sql.php file and now it works.

dreck
06-20-2005, 05:00 AM
nice! *install*

Chris M
06-20-2005, 11:14 AM
Re-ran loo_sql.php and it works :)

Satan

Brad
06-21-2005, 10:30 AM
Lemme guess, after the upgrade there was no longer any text in the table? :)

Chris M
06-21-2005, 11:05 AM
Yup;)

Satan

Brad
06-27-2005, 06:06 AM
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
06-27-2005, 06:18 AM
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
06-27-2005, 08:11 PM
Clicked install .. works on 3.0.5 beta 3 :)

Chris M
06-29-2005, 08:41 PM
Question: Why is this in Code Mods? o_O

Satan

Andreas
06-29-2005, 08:47 PM
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
06-29-2005, 09:20 PM
Ah I see - Sorry must be a new thing;)

Satan

FleaBag
08-08-2005, 06:58 PM
Brad do you have this running with RC2?

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

Is this working on rc2? Members will love this

hydrostatic
08-08-2005, 07:10 PM
Is this working on rc2? Members will love this

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

Karri
08-08-2005, 08:16 PM
It is working well on my board. I have actually modified https://vborg.vbsupport.ru/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-08-2005, 08:22 PM
Any chance of a little help with doing that Karri?

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

puertoblack2003
11-19-2005, 12:44 AM
great hack***INSTALLED*** 3.5.1, no problems

rb290
11-21-2005, 07:45 PM
i dont want the avatar in there, know how I can take it out ?

rb290
12-10-2005, 07:51 AM
hm this doesnt work with 3.5.2 ?

Brad
12-29-2005, 10:47 PM
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
01-09-2006, 08:41 AM
Works great with 3.5.3

Thank you Brad!

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