FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Forum email address conversion  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Forum email address conversion [message #22586 is a reply to message #22580] Mon, 07 February 2005 18:32 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Here is the patch:

--- ./src/post_proc.inc.t.old   2005-02-07 12:52:41.000000000 -0600
+++ ./src/post_proc.inc.t       2005-02-07 13:30:15.000000000 -0600
@@ -493,6 +493,9 @@
                }

                $email = str_replace('@', '@', substr($ostr, $es, $ee-$es));
+                if (strpos( substr($email,1,-1), '.') == false) {      // EMail must have a . (dot)
+                       $ppos = $pos += 1; continue;
+               }
                $email_url = '<a href="mailto:'.$email.'" target="_blank">'.$email.'</a>';
                $email_url_l = strlen($email_url);
                $ostr = fud_substr_replace($ostr, $email_url, $es, $ee-$es);


Best regards.

Frank
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Forum navigation
Next Topic: Search Tree View
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 19:19:40 GMT 2024

Total time taken to generate the page: 0.04063 seconds