Changeset 17662


Ignore:
Timestamp:
08/29/12 18:49:12 (7 years ago)
Author:
mistic100
Message:

correct multi-recipient syntax,
remove user agent display,
advanced param 'contact_form_show_ip' to remove IP display

Location:
extensions/ContactForm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/include/functions.inc.php

    r17658 r17662  
    240240    } 
    241241     
     242    $comm['show_ip'] = isset($conf['contact_form_show_ip']) ? $conf['contact_form_show_ip'] : true; 
     243     
    242244    $template->assign(array( 
    243245      'cf_prefix' => $prefix, 
     
    256258      trigger_event('send_mail', 
    257259        false, /* Result */ 
    258         trigger_event('send_mail_to', implode(';', $emails)), 
     260        trigger_event('send_mail_to', implode(',', $emails)), 
    259261        trigger_event('send_mail_subject', $subject), 
    260262        trigger_event('send_mail_content', $content), 
  • extensions/ContactForm/template/mail/content_html.tpl

    r17483 r17662  
    1919<div id="the_content"> 
    2020  <p> 
    21     {'Name'|@translate} : {$contact.author}<br> 
    22     {'Email address'|@translate} : {$contact.email} 
     21    {'Name'|@translate}: {$contact.author}<br> 
     22    {'Email address'|@translate}: {$contact.email} 
     23    {if $contact.show_ip}<br>{'IP: %s'|@translate|@sprintf:$contact.ip}{/if} 
    2324  </p> 
    2425 
    2526  <blockquote>{$contact.content}</blockquote> 
    26  
    27   <p> 
    28     {'IP: %s'|@translate|@sprintf:$contact.ip}<br> 
    29     {'Browser: %s'|@translate|@sprintf:$contact.agent} 
    30   </p> 
    3127</div> 
    3228 
  • extensions/ContactForm/template/mail/content_plain.tpl

    r17483 r17662  
    11{$cf_prefix} 
     2 
    23-------------------- 
     4{'Name'|@translate}: {$contact.author} 
     5{'Email address'|@translate}: {$contact.email} 
     6{if $contact.show_ip}{'IP: %s'|@translate|@sprintf:$contact.ip}{/if} 
    37 
    4 {'Name'|@translate} : {$contact.author} 
    5 {'Email address'|@translate} : {$contact.email} 
     8-------------------- 
     9{$contact.content} 
    610 
    7 ==================== 
    8 {$contact.content} 
    9 ==================== 
    10  
    11 {'IP: %s'|@translate|@sprintf:$contact.ip} 
    12 {'Browser: %s'|@translate|@sprintf:$contact.agent} 
    1311 
    1412-------------------- 
Note: See TracChangeset for help on using the changeset viewer.