View Full Version : Vbulletin 4.2.2 phrase help
FinalFantasy
01-11-2014, 07:18 AM
Varname: $vbphrase[login]
Default Text: Thank you for logging in, {1}.
Custom Text: Thank you for logging in, $bbuserinfo[username]. ($bbuserinfo[usergroupid])
My custom text does not work anymore after upgrading to vbulletin 4.2.2.
Can anyone please help me with this.
Cheers,
Finalfantasy
ozzy47
01-11-2014, 10:04 AM
What version did you upgrade from?
FinalFantasy
01-11-2014, 10:11 AM
From vbulletin 4.1.4 to the latest vbulletin version 4.2.2
I know the $bbuserinfo[username] in phrase = {1} but i can't get the $bbuserinfo[usergroupid] working.
Cheers,
Finalfantasy
FinalFantasy
01-13-2014, 01:42 PM
Well i tried almost everything but i can't get the usergroup id to show up when you login.
Example: Thank you for logging in finalfantasy, (6)
Number 6 = admin usergroup id.
It seems vb4.2.2 phrase doesn't support $bbuserinfo[usergroupid] anymore :(
mokujin
01-13-2014, 01:50 PM
You cant edit phrase with {1}
You need to edit file functions_login.php
at this line:
print_standard_redirect(array('redirect_login', $vbulletin->userinfo['username']), true, true, $vbulletin->userinfo['languageid']);
and change $vbulletin->userinfo['username'] to $vbulletin->userinfo['usergroupid']
FinalFantasy
01-13-2014, 03:15 PM
You cant edit phrase with {1}
You need to edit file functions_login.php
at this line:
print_standard_redirect(array('redirect_login', $vbulletin->userinfo['username']), true, true, $vbulletin->userinfo['languageid']);
and change $vbulletin->userinfo['username'] to $vbulletin->userinfo['usergroupid']
It's fixed now :) Thank you very much sir. I changed to
print_standard_redirect(array('redirect_login', $vbulletin->userinfo['username'], $vbulletin->userinfo['usergroupid']), true, true, $vbulletin->userinfo['languageid']);
}
And in phrase i changed to
Thank you for logging in, {1}. ({2})
Now when i loggin it shows
Thank you for loggin in, finalfantasy. (6)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.