Differences

This shows you the differences between two versions of the page.

english:phpwcms-system:article:contentparts:form:special-applications:send-a-friend [2009/08/31 14:05]
Knut Heermann (flip-flop) Page moved from english:other-enhancements:send-a-friend to english:phpwcms-system:article:contentparts:form:special-applications:send-a-friend
english:phpwcms-system:article:contentparts:form:special-applications:send-a-friend [2018/06/03 18:09] (current)
Line 17: Line 17:
-**Condition:**  -> [[http://www.phpwcms-docu.de/confincphp_de.phtml|/config/phpwcms/conf.inc.php]] \\+**Condition:**  -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\
  * ##$phpwcms['allow_ext_render'] = 1;##   * ##$phpwcms['allow_ext_render'] = 1;##
\\ \\
Line 248: Line 248:
-==== Artikel ====+**Recommended:** //The form is not automatically visible if JS is turned off.// 
 +<code js|h sendafriend.js (if the form is poped up a short time during site load)|h> 
 +window.addEvent('domready', function() { 
 +  
 + var sendafriend = $('sendafriend'); 
 + if(sendafriend) { 
 +  
 + // do not hide send-a-friend form 
 +// if( $('safsuccess') || $('saferror') ) { 
 + if( $('safsuccess') || $('saferror') || $('safok') ) {  // +KH: id safok used in "on success" 
 +  
 + sendafriend.setStyle('display', '');                // +KH: if the form pops up during site load 
 + var sendafriend_status = true; 
 +  
 + } else { 
 +  
 + var sendafriend_status = false; 
 + sendafriend.setStyle('display', 'none'); 
 +  
 +
 +  
 + $('safbutton').addEvent('click', function(r) { 
 +   
 + if(sendafriend_status == true) { 
 +  
 + sendafriend.setStyle('display', 'none'); 
 + sendafriend_status = false; 
 +  
 + } else { 
 +  
 + sendafriend.setStyle('display', ''); 
 + sendafriend_status = true; 
 +  
 +
 +  
 + }); 
 +  
 + }  
 +}); 
 +</code> 
 + 
 +\\ 
 + 
 +==== Article ====
{{:deutsch:andere-erweiterungen:send-a-friend_de.gif|}} {{:deutsch:andere-erweiterungen:send-a-friend_de.gif|}}
-==== Formular ====+\\ 
 +First HTML CP: 
 +<code html> 
 + <div id="sendafriend" class="sendafriend" style=""> 
 +</code> 
 + 
 +**Recommended:**\\ 
 +First HTML CP: //(if the form pops up a short time during site loading)// 
 +<code html> 
 + <div id="sendafriend" class="sendafriend" style="display:none"> 
 +</code> 
 +\\ 
 + 
 +==== Form ====
{{:deutsch:andere-erweiterungen:form_send-a-friend_de.gif|}} {{:deutsch:andere-erweiterungen:form_send-a-friend_de.gif|}}
-<code html|h bei Erfolg|> +<code html|h on success|> 
-Die Empfehlung wurde erfolgreich versendet.+The recommendation has been sent successfully.
</code> </code>
 +**Recommended:** \\
 +//(switch on success to [X] HTML)//
 +<code html|h on success, if a "Close form"-link is desired |>
 +<p id="safok">The recommendation has been sent successfully.</p><br />
 +[PHP]
 +echo '<a href="index.php?'.$GLOBALS['content']['struct'][$GLOBALS['content']['cat_id']]['acat_alias'].'">Close form</a>';
 +[/PHP]
 +</code>
 +The **"Close form"-link** has the advantage that the page is reloaded without an anchor and a new form input is immediately possible.
-<code html|h bei Fehler|> +<code html|h on error|> 
-<p class="error" id="saferror">Ihre Anfrage konnte leider nicht versendet werden! <br /> +<p class="error" id="saferror">Your request could not be sent! <br /> 
-Bitte füllen bzw. korrigieren Sie die farblich hervorgehobenen Bereiche.</p>+Please fill or correct the color-highlighted areas.</p>
</code> </code>
Line 268: Line 333:
-<code html|h Empfänger - Vorlage |h>+<code html|h recipient - template |h>
Der Absender {yourname} Der Absender {yourname}
{sender} {sender}
-empfiehlt Ihnen den Link auf folgende Seite:+recommends you the link to the following page:
{FORM_URL} {FORM_URL}
Line 278: Line 343:
------------------------------------------------------------------------ ------------------------------------------------------------------------
-Wir weisen darauf hin, dass die Absenderangabe nicht verifiziert ist. +We point out that the return address is not verified.
-Sollten Sie Zweifel an der Authentizität des Absenders haben,  +If you have doubts about the authenticity of the sender
-ignorieren Sie diese E-Mail bitte.+just ignore this e-mail please.
</code> </code>
-<code html|h Vorlage |h> +**Recommended:** \\ 
-<table width="100%" border="0" cellspacing="0" cellpadding="0"> +<code html|h template, if a "Close form"-link is desired (insert at the end) |h
-<tbody> +......... 
-<tr> +<br /> 
-<td width="300" valign="top"> +<a href="index.php?{CATEGORY_ALIAS}">Close form</a>
-<p><em>[IF_ERROR:recipient] class="error"[/IF_ERROR]{LABEL:recipient}*</em>{recipient}</p> +
-<p><em>[IF_ERROR:sender] class="error"[/IF_ERROR]{LABEL:sender}*</em>{sender}</p> +
-<p><em>[IF_ERROR:yourname] class="error"[/IF_ERROR]{LABEL:yourname}</em>{yourname}</p> +
-<p><em>[IF_ERROR:mathspam] class="error"[/IF_ERROR]{LABEL:mathspam}</em>{mathspam}</p> +
- +
-<p><br>{sendit}</p+
-</td> +
-<td class="textarea" valign="top"><em>[IF_ERROR:message] class="error"[/IF_ERROR]{LABEL:message}</em>{message}</td> +
-</tr> +
-</tbody> +
-</table> +
-<p class="notice"><strong>Hinweis:</strong> Die hier eingegebenen Daten werden nicht f&uuml;r andere Zwecke verwendet oder gespeichert.<br />  +
-F&uuml;r den Inhalt der E-Mail ist ausschlie&szlig;lich der Absender verantwortlich!</p>+
</code> </code>
 +
 +(presupposes: [[english/phpwcms_replacer_rts/frontend_render/standard_tags_assembled]])
 +
 +
 +\\
==== Law related stuff ==== ==== Law related stuff ====
english/phpwcms-system/article/contentparts/form/special-applications/send-a-friend.1251720342.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0