PDA

View Full Version : user title, Join date, home url ? (important)


TTayfun
11-28-2011, 10:03 AM
hi guys,
i want the show usertitle, joindate and home url in showgroups.php
How DO i?

kh99
11-28-2011, 02:09 PM
You can use {vb:raw user.usertitle} and {vb:raw user.homepage}. You can also user {vb:raw user.joindate} but it's a unix timestamp. You could create a plugin using hook showgroups_user to format it to a date string.

TTayfun
11-28-2011, 03:11 PM
İ use vb3 and please give me code as plugin

kh99
11-28-2011, 03:27 PM
İ use vb3

Oh, right. Sorry. Then it would just be $user[usertitle], etc.


and please give me code as plugin

$joindate = vbdate($vbulletin->options['dateformat'], $user['joindate']);

TTayfun
11-28-2011, 03:59 PM
good, $joindate now working but you not give code for HomeURL, last activity and Usertitle

kh99
11-28-2011, 04:26 PM
I did, it's just above that - you just need to put $user[usertitle] and $user[homepage] in the template.

You didn't ask about last activity. Just add this to the plugin:

$lastactivity = vbdate($vbulletin->options['dateformat'], $user['lastactivity']);

TTayfun
11-28-2011, 04:31 PM
perfect, very thanks i have a last question. i want to show $userinfo[icqicon]
$userinfo[aimicon]
$userinfo[msnicon]
$userinfo[yahooicon]
$userinfo[skypeicon] this icons.