The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I hooked a function at global_bootstrap_complete to register an unknown user before login process is called (my intention look here https://vborg.vbsupport.ru/showthread.php?t=283789). For the registering process I'm using the user data manager as well as the function verify_username($username). But this method will fail cause of a missing 'charset' style variable. To determine the username length the function vbstrlen is called which in turn calls mb_strlen($username, $encoding); Because of missing the missing charset string in $vbulletin->stylevars['charset'] it will fail by throwing an exception 'Unknown encoding'. PHP Code:
Currently I came with a quick and dirty solution by setting charset manually PHP Code:
Maybe there is a more suitable approach. TIA Greetings Bundschuh |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|