[mlimg]
[xlang:en]

= Tell a Friend =

It is hard to use The link for "Tell a friend" with multi-byte languages.

Even with sigle-byte language, "mailto:" is not useful in the environments without MUA. eg) Internet Cafe

Thus I've made a moudle of Form Mail working with a Smarty plugin collaborately.

After you install this, a visitor can send e-mails to his friends by Form mail when he just click the icon.



USAGE:

- Install this module as usual.

- Check "access rights" by groups admin in TellAFriend's admin

- Copy modifier.xoops_tellafriend.php into class/smarty/plugins/

- Edit the templates with links of "Tell a friend" as follows.



NOTE:
For anti-spam, I've made a restriction to send mails per IP or uid.
If you want to change, go to preferences of TellAFriend's admin.



SAMPLES of editing the templates.

[b]news[/b]
news_article.html
[code]
[d]<a target="_top" href="<{$mail_link}>">[/d]
<a target="_top" href="<{$mail_link|xoops_tellafriend}>">
[/code]
news_archive.html
[code]
[d]<a href="<{$story.mail_link}>" target="_top" />[/d]
<a href="<{$story.mail_link|xoops_tellafriend}>" target="_top" />
[/code]

[b]mylinks[/b]
mylinks_link.html
[code]
[d]<a target="_top" href="mailto:?subject=<{$link.mail_subject}>&amp;body=<{$link.mail_body}>">[/d]
<a target="_top" href="<{$link.mail_body|xoops_tellafriend:$link.mail_subject}>">
[/code]

[b]mydownloads[/b]
mydownloads_download.html
[code]
[d]<a target="_top" href="mailto:?subject=<{$down.mail_subject}>&amp;body=<{$down.mail_body}>">[/d]
<a target="_top" href="<{$down.mail_body|xoops_tellafriend:$down.mail_subject}>">
[/code]

[b]TinyD[/b]
Go to preferences of TinyD, and turn 'Use tellafriend modulen' on.





[/xlang:en]
[xlang:ja]

= Tell a Friend =

ϤޤͧãΤ餻פmailto:ǹԤΤϡɤäƤʸפ򤱤ʤȤΤǤ

ޤ᡼顼åȥåפƤĶΥʤȤ⤫󥿡ͥåȥեʤɤǤϡmailto:ϰ̣ޤ


Ȥ櫓ǡSmarty plug-in ȤȤ߹碌ǡե᡼Ѥ⥸塼äƤߤޤ


Υ⥸塼ˡǤĤμ礬ɬפǤ

- ޤ̤˥󥹥ȡ뤷Ƥ

- class/smarty/plugins/  modifier.xoops_tellafriend.php 򥳥ԡƤ

- ͧãΤ餻ץΤƥץ졼ȤԽƤʥץ뻲ȡ


Ȥ˵Ĥϡ롼״顢ȤФƥ⥸塼륢¤ͿƤ
ѥƧˤʤ褦IP⤷uid¤ߤƤޤΤǡɬפ˱ơְפѹƤ


------------------------------------------------------------------
ʲ˥ƥץ졼ԽΥץ򼨤ޤ

[b]news[/b]
news_artcle.html
[code]
[d]<a target="_top" href="<{$mail_link}>">[/d]
<a target="_top" href="<{$mail_link|xoops_tellafriend}>">
[/code]
news_archive.html
[code]
[d]<a href="<{$story.mail_link}>" target="_top" />[/d]
<a href="<{$story.mail_link|xoops_tellafriend}>" target="_top" />
[/code]

[b]mylinks[/b]
mylinks_link.html
[code]
[d]<a target="_top" href="mailto:?subject=<{$link.mail_subject}>&amp;body=<{$link.mail_body}>">[/d]
<a target="_top" href="<{$link.mail_body|xoops_tellafriend:$link.mail_subject}>">
[/code]

[b]mydownloads[/b]
mydownloads_download.html
[code]
[d]<a target="_top" href="mailto:?subject=<{$down.mail_subject}>&amp;body=<{$down.mail_body}>">[/d]
<a target="_top" href="<{$down.mail_body|xoops_tellafriend:$down.mail_subject}>">
[/code]

[b]TinyD[/b]
TinyDΰˤơTell a Friend⥸塼Ȥפ

ͧã˾Ҳפä¾Υ⥸塼Ǥ⡢Ūˤϡmailto: ȤʤäƤʬΥƥץ졼ѿˡե륿ɲäǤ


ʤΥե᡼ˤäƥ᡼ܸ̾줬ȤСϡTellAFriendǤϤʤXOOPS¦ΥХǤ

2.0.12б롢ȤʹƤޤޤǤϡclass/mail/phpmailer/class.phpmailer.php 1299ܤˣɲäƤ
[code]
    /**
     * Encode a header string to best of Q, B, quoted or none.  Returns a string.
     * @access private
     * @return string
     */
    function encode_header ($str, $position = 'text') {
[color=ff0000]
      if( $position == 'text' ) return mb_encode_mimeheader( mb_convert_encoding( $str , mb_internal_encoding() , 'auto' ) ) ; // GIJ
[/color]
      $x = 0;

      switch (strtolower($position)) {
[/code]


ե

korean
tchinese
schinese
򡢤줾졢Lostworldimdavid󤬺äƤޤ
꤬Ȥޤ


[/xlang:ja]

CHANGES:

v1.01 2005-07-21
- fixed a bug in JavaScript (thx yamaichi)

v1.00 2005-05-25
- the 1st release



