- By Admin 192 views
Hide email addresses from guests - Hide email addresses from guests
This tutorial will show you how to hide email addresses from guests.
Go to your ftp > library/XenForo/BbCode/Formatter/Base.php and find:
and add below to hide for guests:
Save and done.
Good luck.
This tutorial will show you how to hide email addresses from guests.
Go to your ftp > library/XenForo/BbCode/Formatter/Base.php and find:
Code:
$email = XenForo_Helper_String::censorString($email);
and add below to hide for guests:
Code:
$visitor = XenForo_Visitor::getInstance();
if (!isset($visitor['user_id']) || $visitor['user_id'] == 0) {
$link = XenForo_Link::buildPublicLink("register");
return 'Thank you <a href="' . $link . '">to register/login</a> to see the'e-mail adress';
}
Save and done.
Good luck.