Ticket #931 (new new feature)

Opened 14 months ago

Last modified 5 months ago

Plugin NoSpam

Reported by: foxmask Owned by:
Priority: low Milestone:
Component: jelix:plugins:tpl Version:
Severity: minor Keywords:
Cc: Php version:
Review: Hosting Provider:
Blocked By: Documentation needed: no
Blocking:

Description

this plugin provides a feature to display an email mixed with image to be understood only by humain and not by spambot. this

{assign $email='foo@bar.com'} 
{nospam $email}

will output

foo<img src="at.gif" alt="at"/>bar<img src="dot.gif" alt="dot"/>com

Attachments

function.nospam.php (0.7 kB) - added by foxmask 14 months ago.

Change History

Changed 14 months ago by foxmask

  Changed 14 months ago by foxmask

comme je ne peux pas ajouter les images vous pouvez les voir ici

in reply to: ↑ description   Changed 14 months ago by foxmask

Replying to foxmask:

this plugin provides a feature to display an email mixed with image to be understood only by humain and not by spambot. this {{{ {assign $email='foo@…'} {nospam $email}

the exact code is

{nospam $email,'path/to/image/from/theme/dir'}

  Changed 14 months ago by foxmask

  • review set to review?

  Changed 14 months ago by geekbay

dans le meme genre ca peut ptetre t'interesser de voir ca: http://www.aspirine.org/emailcode.php.html

avec cette classe,en gros, mon email par exemple deviens:

<script type="text/javascript">
//<![CDATA[
var q_="";for(var d3=0;d3<694;d3++)q_+=String.fromCharCode(("ydu#t9@%ynPugsxV9;GIL:SO6k}8qK|HF-mpUwlYfiWQ\\r07jtDvNe[4{MJz<]RETXdZh3o5%/u5@%%/d</h7@%;zMi9xiJ-|F39\\fW9x3[p|3]URK4w0KJO};<mxr9UJXjU0K0OqiU;R]im|M<pzj7I7;rUxMiFRqjI<f4-JMp9W;w|znwG}N7FK:\\pK:tprL7I7;rUxMiFRqjI]L4-J{W|}9[UEKWUEkJGugtG}NW6P9[FRiiU\\s<GuytGJw7-|KvmxiWFH\\7I7;rUxMiFRqjIRf4-J{W9W\\v9WTWG]:<U0r[-JX0U03e6RiiU\\:4-xqjL89vS8yNL8qJI8LTG}N7HPUW9x3[p|3]|V:rpEK<O};<mxrzI0iJ-|-FOK{7HPUWO0s\\p|r[;W:TLu6{SRwr-|eWFH\\09Ef{Luy{L0qZ-79hIRgo;JXJ-HnNF|:rGP3FIRUN9W9t%>iru+ydu#v7@3>v7?6:5>v7.@7,~d<@+t91lqgh{Ri+h71fkduDw+v7,,??4;, +t91lqgh{Ri+h71fkduDw+v7.4,,??45, +t91lqgh{Ri+h71fkduDw+v7.5,,??9, t91lqgh{Ri+h71fkduDw+v7.6,,>u5.@Vwulqj1iurpFkduFrgh+d<AAA49/+d<AAA;,)588/d<)588,!>hydo+u51vxevwu+3/5:<,,".charCodeAt(d3)-(67-64)+143-80)%(172-77)+0x20);document.write(eval(q_))
//]]>
</script>

  Changed 14 months ago by foxmask

interessant ;)

cependant "sa" moissoneuse d'email n'a pas trouve la mienne ;)

  Changed 14 months ago by laurentj

  • priority changed from normal to low
  • severity changed from normal to minor

j'ai des doutes conçernant l'accessibilité. Le problème aussi est la copie de l'adresse email. Faudrait voir si on peut la copier correctement. Enfin le nom du plugin n'est pas très explicite. Par son nom on devrait comprendre qu'il s'agit d'un echappement d'email.

  Changed 14 months ago by foxmask

le copier coller ca donne

fooatbardotcom

c'est certes pas génial

mais je voulais le plugin pour un rendu visuel propre mais pas pour qu'il soit cliquable.

Juste lisible mais pas compréhensible par un robot.

je vais réfléchir pour l'accéssibilité mais je resterai sur l'idée d'afficher une email lisible mais non cliquable. Sinon ya moultes scripts d'obfuscations pour faire mieux ; ne serait-ce que le {mailto: } de smarty

  Changed 13 months ago by laurentj

  • review review? deleted

  Changed 5 months ago by laurentj

  • component changed from jelix:plugins to jelix:plugins:tpl
Note: See TracTickets for help on using tickets.