The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
with VB3 ?
|
#4
|
|||
|
|||
Oops - sorry. I fixed it.
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 |
#5
|
|||
|
|||
Quote:
THANK YOU VERY MUCH ! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|