The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Age in album picture
How do I display a users age on their albums ?
Template: album_pictureview I've tried $userinfo[age] and $post[age] but i doesnt show. It works only with custom profile field like: $userinfo[field1] $userinfo[field2] etc. mayby i should create a hook with specific location ? |
#2
|
||||
|
||||
"age" isn't a value stored in the database, it is calculated based off "birthday" which is stored in the database, and the current date... I'm pretty sure you will need to do the calculation in php based on the 'birthday' field as opposed to 'age'
Note- I'm guessing here, it's a theory that fits the facts (fact 'age' is not in the db) but I don't know for sure this is the only way to do it. |
#3
|
|||
|
|||
but in postbit_legacy this value ($post[age]) works fine
|
#4
|
|||
|
|||
That is because the age is calculated for posts. For albums you will need to do this yourself in a plugin.
|
#5
|
|||
|
|||
could you show me how to write a simple hook
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|