PDA

View Full Version : userid in phrases


testbot
10-23-2009, 12:12 AM
i searched and searched for this but found nothing. i'm sure it's out there and/or something simple but i just can't find it.

i need to add the user id to phrases (phrase manager).

like when i see phrases {1} = site name {2} = user name.... i want {4} userid.

how do i get that to work in phrase manager?

--------------- Added 1256304003 at 1256304003 ---------------

hey guys. it's me. your favorite vb.org member. :hi:

testbot
11-03-2009, 02:28 PM
really? there's no way to do this? seems like it should be easy.

testbot
11-06-2009, 05:38 PM
really need this. i've been searching for days.

Brandon_R
11-07-2009, 12:14 AM
Add


Site URL: {1}
Username: {2}
3rd Var: {3}
User ID: {4}
in the phrase "phrase_name"

And in the PHP Code/File add the following code


$vbphrase['phrase_name'] = construct_phrase('phrase_name', $vbulletin->options['bburl'], $userinfo['username'], 'Hello', $userinfo['userid']);


And in the template where you want to output it, put

$vbphrase[phrase_name]

Construct Phrase Function (http://members.vbulletin.com/api/vBulletin/_includes---functions.php.html#functionconstruct_phrase)