vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Vbulletin 4.2.2 phrase help (https://vborg.vbsupport.ru/showthread.php?t=306889)

FinalFantasy 01-11-2014 07:18 AM

Vbulletin 4.2.2 phrase help
 
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:
PHP Code:

print_standard_redirect(array('redirect_login'$vbulletin->userinfo['username']), truetrue$vbulletin->userinfo['languageid']); 

and change $vbulletin->userinfo['username'] to $vbulletin->userinfo['usergroupid']

FinalFantasy 01-13-2014 03:15 PM

Quote:

Originally Posted by mokujin (Post 2473972)
You cant edit phrase with {1}
You need to edit file functions_login.php
at this line:
PHP Code:

print_standard_redirect(array('redirect_login'$vbulletin->userinfo['username']), truetrue$vbulletin->userinfo['languageid']); 

and change $vbulletin->userinfo['username'] to $vbulletin->userinfo['usergroupid']


It's fixed now :) Thank you very much sir. I changed to

Code:

print_standard_redirect(array('redirect_login', $vbulletin->userinfo['username'], $vbulletin->userinfo['usergroupid']), true, true, $vbulletin->userinfo['languageid']);
}

And in phrase i changed to
Code:

Thank you for logging in, {1}. ({2})
Now when i loggin it shows
Code:

Thank you for loggin in, finalfantasy. (6)


All times are GMT. The time now is 09: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.00965 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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