PDA

View Full Version : how do I show an md5 encrypted email address in the templates?


Robert Basil
06-08-2006, 09:50 AM
The subject says it all. I know I can show a plain text email by just using $bbuserinfo[email]

How can I get this to be md5 encrypted? Would I have to use js? I've have no clue about js so any ideas?

Thanks!

calorie
06-21-2006, 08:00 PM
An untested idea via PHP...

Set a line of code using the global_start hook:

$vbulletin->userinfo['md5_email'] = md5($vbulletin->userinfo['email']);

Then in a template try using one of the following:

$bbuserinfo[md5_email] or {$vbulletin->userinfo[md5_email]}