Quote:
Originally Posted by kh99
Where do you want to be able to use it? I don't think there's any way to change what's in the database (unless you want to modify some of the vbulletin code), but you might be able to add a field to a SELECT and format it using MySQL functions.
|
I think I'll take this option, because the birthday is not being displayed and I want to change the output format.
March 04, 1976 it's shown by {vb:raw post.birthday} as: 03-04-1976.
So, I think I'll do a plugin. So, I need to know something:
Is there anything like $vbulletin->userinfo but for posts? Something like $vbulletin->post?
--------------- Added [DATE]1347193081[/DATE] at [TIME]1347193081[/TIME] ---------------
Yes, it is... $post[birthday] ... and I should do... something like...
$arr_birthday = explode('-', $post[birthday]);
$eur_birthday = $arr_birthday[1]."-".$arr_birthday[0]."-".$arr_birhday[2];
And I should register that variable in postbit.
What do you think about it?