Quote:
Originally Posted by fyjpm
How can I get the members username in the error message like this:
"Dear so-and-so, you need to fill in the required field blah blah blah..."
Anyone?
Thanks,
John
|
"There's no help like self help" so in case anybody else wants get fancy like me find this line in the hook for this mod:
Code:
eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'])));
change to this:
Code:
eval(standard_error(fetch_error('zzz_update_profile',$vbulletin->options['bburl'],$vbulletin->session->vars['sessionurl'],$vbulletin->userinfo['username'])));
Now in your Phrase manager search for : zzz_update_profile
change to
Code:
Dear {3}, there are new required profile field(s) since your last visit: click <a href="{1}/profile.php?{2}do=editprofile">Edit Profile</a> to update.
There. Personalized error message.
-John
EDIT: see next post for combined features:
https://vborg.vbsupport.ru/showthrea...554#post847554