Author Topic: Tell a friend  (Read 65546 times)

0 Members and 1 Guest are viewing this topic.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Tell a friend
« Reply #45 on: February 18, 2006, 07:07:54 PM »
@michi-w:

Disgarding all the followed discussions on this topic, were there any subjects regarding difficulties by using the e-mail-a-friend MOD ? If so, I could build a new one (still, if required). ;)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Tell a friend
« Reply #46 on: February 18, 2006, 09:10:26 PM »
Of course, I do not have anything against it, but I custom it not.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Tell a friend
« Reply #47 on: February 18, 2006, 09:35:16 PM »
Good. If more users requests this as well, I will begin to code. ;)

Offline artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: Tell a friend
« Reply #48 on: February 19, 2006, 04:13:31 AM »
Oracle please recode this mod  :D,

i get the email "a page has been sent" but do not get the actual email with the letter ie : a friend of ours thought you might like etc.......... some times it works some times it does not

regards

Rt
 :D

Offline mpiscopo

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • Wholesalers USA
Re: Tell a friend
« Reply #49 on: February 21, 2006, 02:08:52 PM »
I would be interested in using a re-coded version of this mod.  I haven't installed it yet, if you're going to re-code it then I'll wait.  Thanks in advance.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Tell a friend
« Reply #50 on: February 25, 2006, 09:47:18 PM »
I edited this so users can type in a personal message.
But I'm also tring to add the full url to the image they want there friends to see.
I have this code
Code: [Select]
<?php
$url 
$_SERVER[HTTP_HOST] . $_SERVER[PHP_SELF] . "?";
$i 0;
foreach(
$_GET as $k=>$v) {
    
$url .= $k "=" $v;
    if(
$i count($_GET)-1)
        
$url .= "&";
    
$i++;
}
echo 
"<a href=\"http://" $url "\">http://" $url "</a>";
?>
But I don't know how I can add it so it will be shown in the mail body?

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: Tell a friend
« Reply #51 on: March 30, 2006, 09:52:24 PM »
Good. If more users requests this as well, I will begin to code. ;)

That would be nice  :D



Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Tell a friend
« Reply #52 on: December 08, 2006, 01:20:07 AM »
Hallo!
Meld mich auch mal wieder :mrgreen:
Habe ein kleines Problem.
Und zwar werden die Umlaute in der Weiterempfehlungsmail nict korekt dargestellt.
Eine Codierung in HTML Code brachte auch nicht das erwünschte Ergebnis.
Hat(te) jemand dasselbe Problem und weiß mir hierzu Rat.
Besten Dank.

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Tell a friend
« Reply #53 on: December 08, 2006, 12:20:08 PM »
Das ist ein altes Problem und gibt es zum Beispiel auch bei phpbb Benachrichtigungen.
Bislang konnte ich keine Lösung finden!

Gruß
michi-w.

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: Tell a friend
« Reply #54 on: December 12, 2006, 07:11:11 PM »
Wäre schön wenn jemand eine Lösung für das Problem mit der Umlautedarstellung wüßte.
Rechtschreibfehler in einer Empfehlung machen sich nicht so gut :?

Offline Jasi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: Tell a friend
« Reply #55 on: February 09, 2008, 05:49:27 PM »
Brauchst es ja nicht einbauen! :roll:

Also hab das Teil mal nach Anleitung integriert  :cry:

Crying  :cry:

Das Dingens hat mal beim 1. Testlauf 3750 Mailkopien an mich gesandt  :cry:  8O und schon hab ich es gleich wieder entsorgt!
LG Jasi

Offline ProDez

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • MultiMedia Center
Re: Tell a friend
« Reply #56 on: March 16, 2008, 11:57:47 AM »
Hallo.
Habe mal ein bisschen an den bisher geposteten codes herumgeforscht und stelle nun ein entsprechendes Script ein,
das bei Euch genauso gut funktionieren sollte wie auf meiner Seite. ebenso sollte das mit den Umlauten dann auch geklärt sein.

Das Ganze lässt sich auf meiner Seite mal testen:
http://www.portavision.de/mediacenter/index.php?template=tellafriend

Neue Seiten: 3
  • template_url/tellafriend.htm
  • template_url/tellafriend_ok.html
  • 4images-rootdir/tellafriend.php (aus der verlinkten .zip)

Veränderte Seite: 1
  • template_url/header.html

Zu den Codes:

#1/4
Die tellafriend.html aus eigener Vorlage erstellen, und folgendes Formular einfügen:
Code: [Select]
<? if($filled == "")?>
<form action="tellafriend.php" method="post" name="tellafriend" onsubmit="return checkfields()">
<table width="425" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#FFFFFF">
<td colspan="2">F&uuml;llen Sie dazu bitte folgendes Formular aus.<br>
Ihre Eingaben werden nur f&uuml;r diesen Zweck verwendet und nicht gespeichert.</td>
</tr>
<tr bgcolor="#ebebeb">
<td><label for="sendername">Ihr Name* </label></td>
<td width="450"><input name="name" type="text" id="sendername" size="40"></td>
</tr>
<tr bgcolor="#ebebeb">
<td><label for="sendername">Ihre Emailadresse* </label></td>
<td width="450"><input name="email" type="text" id="senderemail" size="40"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td nowrap><label for="recipientname">1. Empf&auml;ngername* </label></td>
<td width="450"><input name="name1" type="text" id="recipientname" size="40"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td nowrap><label for="recipientemail">1. Empf&auml;ngeremail*</label></td>
<td width="450"><input name="email1" type="text" id="recipientemail" size="40"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td nowrap><label for="recipientname2">2. Empf&auml;ngername</label></td>
<td width="450"><input name="name2" type="text" id="recipientname" size="40"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td nowrap><label for="recipientemail2">2. Empf&auml;ngeremail</label></td>
<td width="450"><input name="email2" type="text" id="recipientemail" size="40"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td nowrap><label for="recipientname3">3. Empf&auml;ngername</label></td>
<td width="450"><input name="name3" type="text" id="recipientname" size="40"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td nowrap><label for="recipientemail3">3. Empf&auml;ngeremail</label></td>
<td width="450"><input name="email3" type="text" id="recipientemail" size="40"></td>
</tr>
<tr bgcolor="#ebebeb">
<td valign="top"><label for="anmerkungen">Ihre Nachricht </label></td>
<td width="450"><textarea name="anmerkungen" cols="36" rows="6" id="anmerkungen"></textarea></td>
</tr>
<tr bgcolor="#ebebeb">
<td nowrap>*erforderliche Angaben</td>
<td nowrap width="450"><input onclick="validate();" class="button" type="button" value="Abschicken"> <input class="button" type="reset"><input type="hidden" name="filled" value="1"> <input type="hidden" name="id" value="<? echo $id; ?>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" nowrap align="right"><font size="-2" color="#b4b4b4" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Tell-A-Friend-Script v1.0<br>
2008 &copy; <a href="http://www.portavision.de">PortaVision.de</a></font></td>
</tr>
</table>
</form>


#2/4
Die Antwortdatei tellafriend_ok.html ebenfalls aus eigener Vorlage erstellen und die folgende Tabelle einfügen:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Versand erfolgreich durchgef&uuml;hrt<br>
<hr>
<br>
Vielen Dank, da&szlig; Sie unsere Seite weiterempfohlen haben<br>
</b>
<p>Wir w&uuml;nschen Ihnen weiterhin viel Spa&szlig; an der Nutzung unserer Inhalte und freuen uns auf Ihre zuk&uuml;nftigen Besuche.</p>
<p>Das your-homepage - Team</p>
<p></p>
<p><a href="index.php" target="_top">Zur&uuml;ck</a></p>
</td>
</tr>
</table>


#3/4
Die tellafriend.php aus meiner verlinkten .ZIP unverändert ins Hauptverzeichnis der Gallerie hochladen


#4/4
in die header.html folgenden Code hizufügen:
Code: [Select]
<script language="javascript">
<!--
function reset() {
document.tellafriend.name.value="";
document.tellafriend.email.value="";
document.tellafriend.email1.value="";
document.tellafriend.email2.value="";
document.tellafriend.email3.value="";
}

function validate() {

if (document.tellafriend.name.value.length==0) {
alert("Fehler: bitte geben Sie Ihren Namen ein");
return false;
}
if (document.tellafriend.email.value.length==0) {
alert("Fehler: bitte geben Sie Ihre Emailadresse ein");
return false;
}

if (document.tellafriend.name1.value.length==0) {
alert("Fehler: bitte geben Sie den Namen des 1. Empfängers ein");
return false;
}
if (document.tellafriend.email1.value.length==0) {
alert("Fehler: bitte geben Sie die Email des 1. Empfängers ein");
return false;
}

document.tellafriend.submit()
return true;
}

//-->
</script>

Wie gesagt, es befinden sich die entsprechenden Dateien auch in der verlinkten .ZIP:
tellafriend.zip, ca. 4kb groß.

Das Ganze lässt sich auf meiner Seite testen:
http://www.portavision.de/mediacenter/index.php?template=tellafriend

Weiterhin viel Spaß noch...
ProDez
« Last Edit: March 19, 2008, 11:16:03 AM by ProDez »
Glauben ist nicht "Wissen". Aber, ich glaube das weiss jeder.