![]() |
Vbuletin 3.8.x Global Variables not found
Hi
in style "whosonlinebit" I would like to insert the date of registration "joindata" (in the new column ) in addition to $userinfo[aimicon] $userinfo[icqicon] $userinfo[msnicon] $userinfo[yahooicon] $userinfo[skypeicon] that are already present. The variable $userinfo[joindata] does not work and does not work even the variable $globals[joindata]. can you help me ? THZ Sandro |
Try this: create a new plugin using hook location online_query and this code:
Code:
$hook_query_fields .= " , FROM_UNIXTIME(user.joindate, '%M %D, %Y') as join_date "; Then use [S]{vb:raw userinfo.join_date}[/S] $userinfo[join_date] in the template. |
Quote:
|
Quote:
Also I should have mentioned, you can format the date however you want by changing the '%M %D, %Y' string. Here's the mysql doc page for the FROM_UNIXTIME() function: http://dev.mysql.com/doc/refman/5.0/..._from-unixtime ...and a page that shows the tokens available for the format string: http://dev.mysql.com/doc/refman/5.0/...on_date-format |
Quote:
THANK YOU VERY MUCH ! :D |
All times are GMT. The time now is 06:12 PM. |
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:
|