![]() |
Age in profile
Is there a way to take the age from the postbit and have it show up in a member's profile?
|
Mainly just a Copy&Paste Job :)
Hook: member_complete PHP Code:
|
I tried do it this way but couldn't get it to show up. I was using the wrong variables in my code. ;)
How do I get it to only show if you have it turned on for the postbit? |
Wrap it in
PHP Code:
|
I just tried the member_complete code you posted and it doesn't show up in the profile either. :(
What has replaced this in 3.5? Quote:
|
Quote:
$gotage doesn't appear in any vBulletin 3.0 Files? |
Yessir, I did. ;)
Here's the code from the class_postbit.php that I converted earlier (to what you almost have in youe code) and it didn't work either. :( It looks like they are using $this->cache['age'] in place of $gotage now. PHP Code:
|
OK ... time to check the Code (although I don't see why it should not work).
|
You got me on this one, Kirby. I have been trying to get it to show in the profile for 2 days now. ;)
|
Naargh. Well, the Code is correct - but the Data it relies on isn't ;)
$userinfo['birthday'] is already formatted at this point. But in member_start it isn't yet defined ... So: Hook: fetch_userinfo PHP Code:
PHP Code:
I am getting old - or tired. |
Thank you, sir, that worked. ;)
Just curious, but how did you figure out that the birthday variable wasn't defined in member_start? |
1st Step: DEVDEBUG($userinfo[age]), did show nothing
2nd Step: DEVDEBUG($userinfo[birthday]) => Aaargh, it's formatted 3rd Step: Ok, lets check if there are Hooks in member.php executed earlier. Bad, there are none 4th Step: OK, so lets use fetch_userinfo which must be called to get the User Info => Working |
Thank you, sir. Maybe next time I can try this approach BEFORE I start beating my head against the keyboard. ;)
|
When I grow up, I want to be like Kirby.. ;)
|
All times are GMT. The time now is 11:39 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:
|