Quote:
Originally Posted by warnmar10
What is the purpose of
Code:
if(eregi("example.com", $uid))
|
This code snippet is used to take out the
example@example.com email address that appears besides almost all usernames on most installations. As the script needs to know the poster's username to make alink to his profile, we need to crop the username without that fake email address.
That code checks if the email address exists, if so it chopps it out then work further to render the member's profile link.
Thanks, and have a nice day