If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
email addresses converted to raw ASCII  XML
Forum Index » General Discussion
Author Message
patron
Beginner

Joined: 18/08/2004 17:13:44
Messages: 6
Offline

Does anyone still have to mod to convert Email addresses to raw ASCII for protection against spam?


Thanks
patron
Beginner

Joined: 18/08/2004 17:13:44
Messages: 6
Offline

bummer.

I have searched the forum and google... and I still have no clue how to do this.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

OK not the original mod but something I just threw together. Due to the way webbrowsers work I have had to put in &| to stop it rendering the code wrong. Please replace all instances of &| with just & in the following codes.

Open up templates/email.php and replace the mailto: with
  1. &|#109;&|#97;&|#105;&|#108;&|#116;&|#111;&|#58;  

so you end up with
  1. <a href="&|#109;&|#97;&|#105;&|#108;&|#116;&|#111;&|#58;$row[email]"><img src="$GB_PG[base_url]/img/email.gif" width="15" height="15" alt="$LANG[AltEmail]" /></a>  
Save this.

Then open up lib/add.class.php and find
  1.     $this->comment = addslashes($this->comment);  
  2. }  
  3. $host = @gethostbyaddr($this->ip);  
  4. $agent = getenv("HTTP_USER_AGENT");  
  5. $the_time = time();  


and replace it with
  1.     $this->comment = addslashes($this->comment);  
  2. }  
  3. $this->email = str_replace('@','&|#64;', $this->email);  
  4. $host = @gethostbyaddr($this->ip);  
  5. $agent = getenv("HTTP_USER_AGENT");  
  6. $the_time = time();  

Save this file.

This is a basic encryption method but seems to work.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » General Discussion
Go to:   
Based on the open source JForum