![]() |
SHOW AGE HACK 1.0
This small addon for your CP shows a statistic of your users age. You're also able to download a CSV version of the statistic. Install instruction are in the ZIP file. Thanks to Streicher for testing. Update: Small AddOn for user output here |
Screenshot:
|
Very nice hack. I don't need the help of excel anymore. Thanks, you saved me a lot of time. :up:
|
nice :)
good job man :p |
simple but useful.
thanks! |
Just what I was looking for! Very nicely done, cool output and .csv output as the cream on top!
Thanks! |
Great hack, i luv it ;). Thanks
|
yes two thumbs up!
|
Very useful and informative hack.
Is there any way to modify this so that everyone can see the average ages such as this? |
whats csv neway?
|
Nice :)
|
Quote:
Here is the Add On, which can be installed as a stand alone hack, only for user output. |
And as well a screenshot for it ;)
|
Cool :cool: Thanks Again
|
Thanks buddy!:)
|
Quote:
You get a file like: 15,45 16,4 21,117 And can open this file e.g. with MS Excel and work with the data. Very nice for persentation or statistics ;) |
Values.
|
I wrote a small 'more information' add-on for 'User ages in CP' and posting it here with approval of the_sisko.
The idea is: Registered member information There are 382 members with complete birthday information, out of 2,664 registered members. 2,282 members have decided to not provide their birthday details. before PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
todo: in the user version of 'user ages' put the same information, and provide users with no birthday information set with a link to their profile to do so. Have fun and a big thank you goes out to the_sisko for making this wonderfull hack! - djr |
Hi the_sisko,
Great hack went in with very little effort (once I realized the showage.php went in admin directory). But I do have a negative comment to report, the darn thing said I was 30! Now I accept that I am getting older, but I'm not that old yet, not until this November. Apparently you are only using the year to do your calculations and should definitely figure in the months at least. |
@Action-N: You are right ;) I forgot to check the month. I'll will take a look at it in the next days. Got some truble with my database at the moment so don't have much time, but after it, I'll take a look at it.
|
This is the attachment with all the neccesary modifications as posted above. I also fixed the year calculation to include checking for current month and day. So I'm now 30 again instead of 31 as what was originally calculated :D (man, I get old :eek: )
the_sisko: hope the database trouble is minor, take care fiddling with it! - djr |
can anyone modify this to draw its imformation from a "custom field"? I made an additional field on my bb for "date of birth (admin)" that is a required field and is hidden from the public profile. The users are asked to input the information in a 10 character field in this format "mm-dd-yyyy" The "-" is not automatic, they must input it as well ( i could not find how to modify a custom fields input variables). So it would be really great to have this hack pull its info from that field!!! any ideas?
|
no ideas? :(
|
Quote:
Just wondering now that you have changed the showage.php for the admin side of things if you would be able to post the showuserage.php for the user side of things. TIA:) |
Anybody?
|
UP
|
Today I fixed and finished the user side of 'Show user age' and also added a (hopefully) nice bonus.
You have to install one extra template though! Install Useroutput AddOn Version 1.1: "Will work without the hack for the CP" original version by - the sisko - with modifications by djr -------------------------------------------------------------- [modified by djr] * fixed age calculation * extra template: userage_nobirthday * extra twist: if a user has not provided a birthday, he/she is taken to the different userage_nobirthday template with a request to update his/her profile. -------------------------------------------------------------- screenshots in next posts. |
screenshot 1: user has set his/her birthday
|
screenshot 2: user has NOT set his/her birthday
|
I am still a year older than what I really am in the user age area.
More problems though... I have the user age area in the memberlist section. Where it says there are (555) members with complete birthdays, out of (missing) registed members. (missing) members have decided not to give their birthday information. What is up with the variables as those numbers are not popping up and are (missing)? |
Lucky,
Entirerly my fault :cry: I zipped the old version of showuserage.php instead of the fixed one. Please download the attachment again and upload the (newer) showuserage.php. My sincere apologies! Hope you like the fixes and improvements! - djr |
NP Buddy,
Right on, this works awesome. Keep up the great work! :) |
Hi :)
I installed the showage hack, however don't understand what exactly the user output addon does. Also, seeing as I installed the showage hack, do I have to change anything or reupload the showage.php file, or just add the extra 2 templates? Finally, where do I place the following: Quote:
Heineken :) |
I think I might have found a small bug here. If the user only puts in the birth month and day (sans the year), it doesn't show the right template to update their profile. :)
|
Is this hack still being supported? :)
|
Thanks for this nice Hack :D
|
Thanks, quick easy and painless hack, perfect.
:) |
Can anyone convert this to 3.5? PLEASE!
|
All times are GMT. The time now is 02:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|