vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Vbuletin 3.8.x Global Variables not found (https://vborg.vbsupport.ru/showthread.php?t=276940)

s_cocis 01-14-2012 11:28 AM

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

kh99 01-14-2012 01:44 PM

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.

s_cocis 01-15-2012 07:10 AM

Quote:

Originally Posted by kh99 (Post 2287654)
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 {vb:raw userinfo.join_date} in the template.

with VB3 ?

kh99 01-15-2012 10:41 AM

Quote:

Originally Posted by s_cocis (Post 2288060)
with VB3 ?

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

s_cocis 01-15-2012 03:00 PM

Quote:

Originally Posted by kh99 (Post 2288096)
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


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
  • Page Generation 0.01004 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete