4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: michi-w. on June 01, 2005, 01:02:30 PM

Title: Tell a friend
Post by: michi-w. on June 01, 2005, 01:02:30 PM
Hallo,

ich weiß zwar nicht, ob ich den Mod noch zusammen bekomme, aber ich versuch es mal.
Getestet habe ich es allerdings nicht noch einmal.
Hier ist meine Seite als Demo:
http://www.web-upload.de/index.php?template=tell

Mit diesem Mod (ist zwar kein richtig echter Mod) können User eure Seite, über Emails, an Freunde empfehlen.

Im Prinzip handelt es sich um dieses Script:
http://www.tamingthebeast.net/articles3/tell-a-friend-script.htm

1. eine tellafriend.php im Root Verzeichnis von 4images erstellen, das kommt da rein:
(wo "ändern" steht, muss der Code angepasst werden)
Code: [Select]
<?PHP

// Taming The Beast Tell-A-Friend script V 1.1
// Taming the Beast.net - http://www.tamingthebeast.net
// Free Web Marketing and Ecommerce Resources
// By using this code you agree to indemnify
// Taming the Beast from from any liability that might arise // from it's use.

# This section removes any nasty tags that the
# user may have entered in the form fields

strip_tags($friendmail1);
strip_tags($friendmail2);
strip_tags($friendmail3);
strip_tags($email);
strip_tags($name);

# This section sends you a notification email when
# the form is used

// Your email address (for copies to be sent to you)
$emailto = "Absender-Email-Adresse eintragen - ändern";

// Your email subject text
$esubject = "Betreffzeile in der Email - ändern";

// The email text for copies sent to you
$emailtext = "
".$name." hat eine Webseiten Empfehlung versendet, seine Email Adresse ist ".$email."

An diese Email Adressen wurde die Empfehlung gesendet:

".$friendmail1."
".$friendmail2."
".$friendmail3."

";
# Send the email to you
@mail("$emailto", $esubject, $emailtext, "From: $email");

## This section sends to the recipients

// Target page after successful submission
$thankyoupage = "index.php";

 //  Change the subject text below to suit
$tsubject = "Webseiten-Empfehlung";

 // Change the text below for the email
$ttext = "
Hallo,

".$name." mit der Email Adresse ".$email." möchte Sie auf die unten angegebene Webseite aufmerksam machen.

".$name." hat für diese Email den Tell-A-Friend Service von deineDomain.de - ändern verwendet.
Hier kann noch mehr Email Text stehen!!!! - ändern

Besuchen sie
http://www.deineDomain.de/ - ändern

Vielen Dank für die Aufmerksamkeit!
";
# This sends the email to the addresses entered
@mail("$friendmail1 $friendmail2 $friendmail3", $tsubject, $ttext, "FROM: $email");

# After submission, the target URL
header("Location: $thankyoupage");
exit;
?>

2. templates/default/header.html zwischen <head> und </head>
Code: [Select]
<script language="javascript">
<!--

function reset() {
document.tellafriend.name.value="";
document.tellafriend.email.value="";
document.tellafriend.friendmail1.value="";
document.tellafriend.friendmail2.value="";
document.tellafriend.friendmail3.value="";
}

function validate() {


if (document.tellafriend.friendmail1.value.length==0) {
alert("please enter your friend's email address");
return false;
}

if (document.tellafriend.email.value.length==0) {
alert("please enter your email address");
return false;
}
if (document.tellafriend.name.value.length==0) {
alert("please enter your name");
return false;
}

document.tellafriend.submit()
return true;
}

//-->
</script>

3. Eigentlich müsste lt. Urheberscript noch im body der header.html
Code: [Select]
onload="reset()" topmargin="0" leftmargin="0" eingetragen werden, bei mir funktioniert der Script aber auch ohne.

4. Neue Datei in templates/default/ erstellen, am besten eine Kopie der home.html machen und diese Kopie in tell.html umbennen. Die Seite entsprechend umbauen, der tell a friend Abschnitt ist:
Code: [Select]
<table  border="0" bordercolor="#004C75" cellspacing="0" cellpadding="4" align="center">
<tr valign="top">
<td valign="middle" align="center">
<form name="tellafriend" action="tellafriend.php" method="post" onsubmit="return checkfields()">
<div align="center">
<center>
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td> *Ihr Name:</td>
<td>
<input size="30" name="name" maxlength="45">
</td>
</tr>
<tr>
<td>*Ihre Email:</td>
<td>
<input size="30" name="email" maxlength="45">
</td>
</tr>
<tr>
<td colspan="2">
Bitte die Email Adresse eintragen, an der die Empfehlung gesendet werden soll:</td>
</tr>
<tr>
<td>*email 1:</td>
<td>
<input size="30" name="friendmail1" maxlength="45">
</td>
</tr>
<tr>
<td>email 2:</td>
<td>
<input size="30" name="friendmail2" maxlength="45">
</td>
</tr>
<tr>
<td>email 3:</td>
<td>
<input size="30" name="friendmail3" maxlength="45">
</td>
</tr>
<tr>
<td colspan="2" align="center">

Bitte beachten, die Email enthält ihren Namen und ihre Email Adresse.<br>
<input onclick="validate();" class="button" type="button" value="Abschicken">

</td>
</tr><tr>
<td colspan="2">*Pflichtfelder</td></tr>
</table>
</center>
</div>
</form>
</td>
</tr>
<tr valign="top">
<td valign="middle" align="center">
&nbsp;
</td>
</tr>
</table>

5. Nun wird die Seite über
http://www.deinedomain.de/index.php?template=tell
aufgerufen.


Title: Re: Tell a friend
Post by: Vincent on June 01, 2005, 05:47:14 PM
nun ich schicke einfach eine postkarte um bekannt zu werden  :wink:

gruss
vincent
Title: Re: Tell a friend
Post by: michi-w. on June 01, 2005, 06:19:26 PM
Brauchst es ja nicht einbauen! :roll:
Title: Re: Tell a friend
Post by: ascanio on June 01, 2005, 08:22:42 PM
ENGLISH ??   :roll: :roll: :roll:
Title: Re: Tell a friend
Post by: artpics on June 01, 2005, 10:50:17 PM
http://www.tamingthebeast.net/articles3/tell-a-friend-script.htm

follow this link as in first post all working see my site  :D
Title: Re: Tell a friend
Post by: michi-w. on June 01, 2005, 11:03:44 PM
Attention, my english is not good, control this.
Change the script by -->xxx<--. (delete --><--)

1. new tellafriend.php in root of 4images.
contents
Code: [Select]
<?PHP

// Taming The Beast Tell-A-Friend script V 1.1
// Taming the Beast.net - http://www.tamingthebeast.net
// Free Web Marketing and Ecommerce Resources
// By using this code you agree to indemnify
// Taming the Beast from from any liability that might arise // from it's use.

# This section removes any nasty tags that the
# user may have entered in the form fields

strip_tags($friendmail1);
strip_tags($friendmail2);
strip_tags($friendmail3);
strip_tags($email);
strip_tags($name);

# This section sends you a notification email when
# the form is used

// Your email address (for copies to be sent to you)
$emailto = "Sender-Email-Adresse eintragen - ändern";

// Your email subject text
$esubject = "Titel der Email - ändern";

// The email text for copies sent to you
$emailtext = "
".$name." has one website recommendation mailed, your Email Adress is".$email."

To this email addresses the recommendation was sent:

".$friendmail1."
".$friendmail2."
".$friendmail3."

";
# Send the email to you
@mail("$emailto", $esubject, $emailtext, "From: $email");

## This section sends to the recipients

// Target page after successful submission
$thankyoupage = "index.php";

//  Change the subject text below to suit
$tsubject = "Webseiten-Empfehlung";

// Change the text below for the email
$ttext = "
Hallo,

".$name." with the email address ".$email." would like you on the down mentioned website attentive.

".$name." has for this email that Tell-A-Friend service of -->yourDomain.de<-- used.
-->Here still more email text can stand!!!!<--

Visit they
-->http://www.deineDomain.de/ <--

Thank you for the attention!
";
# This sends the email to the addresses entered
@mail("$friendmail1 $friendmail2 $friendmail3", $tsubject, $ttext, "FROM: $email");

# After submission, the target URL
header("Location: $thankyoupage");
exit;
?>

2. templates/default/header.html between <head> and </head>
Code: [Select]
<script language="javascript">
<!--

function reset() {
document.tellafriend.name.value="";
document.tellafriend.email.value="";
document.tellafriend.friendmail1.value="";
document.tellafriend.friendmail2.value="";
document.tellafriend.friendmail3.value="";
}

function validate() {


if (document.tellafriend.friendmail1.value.length==0) {
alert("please enter your friend's email address");
return false;
}

if (document.tellafriend.email.value.length==0) {
alert("please enter your email address");
return false;
}
if (document.tellafriend.name.value.length==0) {
alert("please enter your name");
return false;
}

document.tellafriend.submit()
return true;
}

//-->
</script>

3.  Actually would have after the author of the scripts still in body the header html
Code: [Select]
onload="reset()" topmargin="0" leftmargin="0" so
Code: [Select]
<body onload="reset()" topmargin="0" leftmargin="0">functioned with me also without.

4. new file in templates/default/
Copy the home.html and amend the name in tell.html, this file changes, the tell-a-friend range is
Code: [Select]
<table  border="0" bordercolor="#004C75" cellspacing="0" cellpadding="4" align="center">
<tr valign="top">
<td valign="middle" align="center">
<form name="tellafriend" action="tellafriend.php" method="post" onsubmit="return checkfields()">
<div align="center">
<center>
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td> *Ihr Name:</td>
<td>
<input size="30" name="name" maxlength="45">
</td>
</tr>
<tr>
<td>*Your Email:</td>
<td>
<input size="30" name="email" maxlength="45">
</td>
</tr>
<tr>
<td colspan="2">
Please insert the email adress, at that the recommendation to be sent is:</td>
</tr>
<tr>
<td>*email 1:</td>
<td>
<input size="30" name="friendmail1" maxlength="45">
</td>
</tr>
<tr>
<td>email 2:</td>
<td>
<input size="30" name="friendmail2" maxlength="45">
</td>
</tr>
<tr>
<td>email 3:</td>
<td>
<input size="30" name="friendmail3" maxlength="45">
</td>
</tr>
<tr>
<td colspan="2" align="center">

Please, the email contain their name and its email address consider.<br>
<input onclick="validate();" class="button" type="button" value="send">

</td>
</tr><tr>
<td colspan="2">*must be filled out</td></tr>
</table>
</center>
</div>
</form>
</td>
</tr>
<tr valign="top">
<td valign="middle" align="center">
&nbsp;
</td>
</tr>
</table>

5. these left use over tell-a-friend to use:
-->http://www.yourdomain.de/index.php?template=tell<--
Title: Re: Tell a friend
Post by: V@no on June 02, 2005, 12:16:06 AM
May I suggest to edit the original post instead of post new code as a separate reply. So people would not need hunt all over the topic for the correct code ;)
Title: Re: Tell a friend
Post by: michi-w. on June 02, 2005, 12:42:20 AM
My english so bad? :oops:
Sorry! :cry:
Title: Re: Tell a friend
Post by: V@no on June 02, 2005, 12:56:10 AM
My english so bad? :oops:
Sorry! :cry:
no, nothing about your english, its just please dont post "new" version as a reply, instead of edit the original post and update it to your new version ;)
because it confuses people, who see the code on top (old code), install it without reading the reply with new code...
Title: Re: Tell a friend
Post by: Chris on June 02, 2005, 04:32:49 AM
Editing the original post is DEFINITELY the thing to do :!:
Title: Re: Tell a friend
Post by: bibabobu on June 05, 2005, 03:26:27 AM
i have just installed the code.
but it does only works a part of it for me.

the cgi message mail is sent to my own email adress. but there are missing the variable info fields.
also the receipients have not become the email.

what i am doing wrong.

at the bottom of the php file. the 3 email variables have not to be a "," (comma) between???

i dont know.

who helps me?
Title: Re: Tell a friend
Post by: michi-w. on June 05, 2005, 11:57:15 AM
You becomes a email messages, if one used the tell-a-friend.

Posting your tellafriend.php

Title: Re: Tell a friend
Post by: bibabobu on June 05, 2005, 02:32:08 PM
Hi,

here is my tellafriend.php :

Code: [Select]
<?PHP

# This section removes any nasty tags that the
# user may have entered in the form fields

strip_tags($friendmail1);
strip_tags($friendmail2);
strip_tags($friendmail3);
strip_tags($email);
strip_tags($name);

# This section sends you a notification email when
# the form is used

// Your email address (for copies to be sent to you)
$emailto = "info@industrie-gravuren.de";

// Your email subject text
$esubject = "Industrie-Gravuren: Weiterempfehlung";

// The email text for copies sent to you
$emailtext = "
".$name." hat eine Webseiten Empfehlung versendet, seine Email Adresse ist ".$email."

An diese Email Adressen wurde die Empfehlung gesendet:

".$friendmail1."
".$friendmail2."
".$friendmail3."

";
# Send the email to you
@mail("$emailto", $esubject, $emailtext, "From: $email");

## This section sends to the recipients

// Target page after successful submission
$thankyoupage = "index.php";

//  Change the subject text below to suit
$tsubject = "Webseiten-Empfehlung INDUSTRIE-GRAVUREN GMBH";

// Change the text below for the email
$ttext = "
Hallo,

".$name." mit der Email Adresse ".$email." möchte Sie auf die unten angegebene Webseite aufmerksam machen.

".$name." hat für diese Email den Weiterempfehlungs-Service von industrie-gravuren.de verwendet.
TECHNISCHE UND KÜNSTLERISCHE GRAVUREN FÜR DIE GESAMTE METALL-, PAPIER- UND KUNSTSTOFFINDUSTRIE.

Besuchen sie doch mal
http://www.industrie-gravuren.de/
es ist bestimmt auch etwas Interessantes für Sie dabei!

Vielen Dank für die Aufmerksamkeit!
";
# This sends the email to the addresses entered
@mail("$friendmail1 $friendmail2 $friendmail3", $tsubject, $ttext, "FROM: $email");

# After submission, the target URL
header("Location: $thankyoupage");
exit;
?>

perhaps you could test it once for me.

my url: www.industrie-gravuren.de/galerie    test the link Weiterempfehlung

Thanks
Title: Re: Tell a friend
Post by: michi-w. on June 05, 2005, 05:02:44 PM
Wir können ja Deutsch :D

Also ich konnte nichts falsches finden, vielleicht nimmst du mal
Code: [Select]
onload="reset()" topmargin="0" leftmargin="0" aus dem body raus, das ist das einzige, was bei mir anders ist.

Ich könnte mir vorstellen, das es mit der Umleitung auf die thankyou.html zusammen hängt.
Wie hast du die Umleitung erzeugt?

In der tellafriend.php wird normalerweise auf die index.php verwiesen,
Code: [Select]
// Target page after successful submission
$thankyoupage = "index.php";


Mein Browser zeigt überrings Script Fehler an!
(Index.php Zeile 67)

Gruß
michi-w.
Title: Re: Tell a friend
Post by: bibabobu on June 05, 2005, 09:27:59 PM
Ja prima! Deutsch! Hatte ich mir auch schon gedacht.  8)

Also hatte zuerst auch nur auf die index.php verwiesen, da tat es auch nicht.
Habe die tahnkyou.html so eingebunden "index.php?template=thankyou"

Habe nicht so die Ahnung von dem Ganzen. Aber irgendwie setzt er mir nicht den Emailtext aus den Variablen zusammen und versendet diesen.

Weiß auch nicht, ob ich den Code im Body richtig eingefügt habe. Aber es tat auch nicht ohne.

Na ja vielleicht hast Du noch nen Tipp für mich. Werde weiter probieren es hinzubekommen.

Merci


Title: Re: Tell a friend
Post by: michi-w. on June 05, 2005, 11:41:44 PM
Deine header.html hat einen Fehler, ich habe die mal bei mir eingetragen und den gleichen Fehler erhalten.

Vielleicht ist ein Javascript nicht in Ordnung.

Tausch sie mal gegen das Original aus und füge den tellafriend javascript ein.
Title: Re: Tell a friend
Post by: bibabobu on June 06, 2005, 09:59:02 AM
Hi!

Habe die Orginal header.thml mit eingefügten javascript getestet. Kein Erfolg gehabt. er sendet nicht an die Zieladressen.
In der Bestätigungsmail keine variablen Texte eingebaut.
Vielleicht kannst Du mir ja mal Deine header.html. schicken oder posten zum Testen.
Falls die auch nicht gehen sollte, muß es wohl an etwas anderem liegen.
Ich denke ich habe das javascript schon richtig eingebaut.
Kenne mich nicht gut aus. In der Bestätigungsmail steht als Absender "a cgi user". ist das korrekt?

Title: Re: Tell a friend
Post by: michi-w. on June 06, 2005, 11:51:13 AM
Ich habe nun wohl die Ursache gefunden, weshalb mein Browser einen Fehler anzeigt.
Nehm
Code: [Select]
onload="reset()" topmargin="0" leftmargin="0" aus den body.

Außerdem sieht einer deiner Javascript etwas ... aus, so entspricht er der Norm:
Code: [Select]
<script language="javascript" type="text/javascript">
<!--
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
       
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
   
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}
// -->
</script>

Ich kenn mich mit cgi nicht so aus, aber ist das nicht der Sicherheitsbereich eines Servers?
Vielleicht hast du 4images in ein falsches Verzeichnis auf dem Server installiert.

Gruß
michi-w.
Title: Re: Tell a friend
Post by: bibabobu on June 07, 2005, 11:06:04 AM
Hallo Michi,

werde das mal prüfen. Hatte das angedeutete Script hier aus dem Forum als Fading Effect für Thumbnails.

Habe micht gestern entschieden zu hosteurope umzuziehen, da ich auch mit dem Umfrage Mod und den chmod Einstellungen Probleme hatte.
Dann greif ich nochmal neu an und hoffe alle Probs in den Griff zu bekommen.

Hatte die "onload" Zeile auch schon mal aus dem body entfernt. hatte aber nichts geändert.

Kannst du deine header.html mal als pm schicken?
Title: Re: Tell a friend
Post by: michi-w. on June 07, 2005, 03:08:27 PM
hosteurope Nein
Bei denen ist nun alles schlecht, vom Support bis zu den Servern.

Geh zu http://www.all-inkl.com auch wenn deren Kundenmenü-Führung schlecht ist, haben die einen sehr guten Support und deren Server sind auch sehr gut.
Alternativ dazu gibt es
http://www.greatweb.de oder http://www.server-drome.net, Webpack M ist klasse, einmalig 10 Euro, mit Confixx Kundenmenü-Führung, 15 GB Traffic und 2 Datenbanken, was braucht man mehr.

Das ist meine header, Copyright Schutz gibt es nicht.
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title></title>

<meta http-equiv="content-type" content="text/html; charset={charset}" />
<meta name="author" content="">
<meta name="publisher" content="">
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="page-topic" content="">
<meta name="audience" content="alle">
<meta name="language" content="deutsch, de">
<meta name="distribution" content="global">
<meta name="page-type" content="Private Homepage">
<meta name="robots" content="index,follow">

<link rel="stylesheet" href="{template_url}/style.css" />

<script language="javascript" type="text/javascript">
<!--
function opendetailwindow() {
window.open('','detailwindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=680,height=480');
}
// -->
</script>

<script language="JavaScript" type="text/javascript">
<!--
window.resizeTo(screen.availWidth,screen.availHeight);
window.moveTo(0,0);
//-->
</script>



<script language="JavaScript" type="text/javascript">
<!--
function reset() {
document.tellafriend.name.value="";
document.tellafriend.email.value="";
document.tellafriend.friendmail1.value="";
document.tellafriend.friendmail2.value="";
document.tellafriend.friendmail3.value="";
}

function validate() {


if (document.tellafriend.friendmail1.value.length==0) {
alert("please enter your friend's email address");
return false;
}

if (document.tellafriend.email.value.length==0) {
alert("please enter your email address");
return false;
}
if (document.tellafriend.name.value.length==0) {
alert("please enter your name");
return false;
}

document.tellafriend.submit()
return true;
}
//-->
</script>

</head>
<body>
Title: Re: Tell a friend
Post by: bibabobu on June 12, 2005, 04:58:50 PM
hallo michi,

also habe von Firmen gehört, daß hosteurope nicht schlecht sein soll. kann bis jetzt auch noch nichts negatives über sie sagen. (schnell und unkomplizierte Einstellungen).
aber deine vorschläge hören sich ja auch nicht schlecht an.

Aber der MOD funktioniert leider immer noch nicht!   :(
Auch nicht mit deiner header datei.

Müssen vielleicht noch Variablen in der main.php definiert werden? oder sowas? hab ja keine Ahnung.
Oder irgendwas mit dem SMTP in den Einstellungen? Oder E-Mail Server?  :roll:

Nach dem Providerwechsel kommt gar nichts mehr bei Sendern oder Empfängern an. No Mails.  :cry:

Bin ratlos.
Title: Re: Tell a friend
Post by: we_scooter on August 18, 2005, 01:22:38 AM
Guys so this mod works or not ,
I don't speak any German:( :roll:
Title: Re: Tell a friend
Post by: marod0er on August 18, 2005, 03:13:19 PM
I would also like to know (if this works) if it can be embedded into the actual page, instead of a different page.

Merci
Title: Re: Tell a friend
Post by: bibabobu on August 18, 2005, 08:50:22 PM
@we_scooter

yes of course. For me the MOD is working :D
You can test "Weiterempfehlung" on my URL
Title: Re: Tell a friend
Post by: we_scooter on September 12, 2005, 03:36:36 AM
so where can we start, there is alot of coding in here :oops: :oops:
perhaps if anyone can write in English I would appreciate it . As I can't follow. :arrow:

???

we_scooter
Title: Re: Tell a friend
Post by: artpics on September 13, 2005, 07:30:52 AM
so where can we start, there is alot of coding in here :oops: :oops:
perhaps if anyone can write in English I would appreciate it . As I can't follow. :arrow:

???

we_scooter

here are the instructions in english follow
http://www.tamingthebeast.net/articles3/tell-a-friend-script.htm
Title: Re: Tell a friend
Post by: Bugfixed on November 20, 2005, 03:48:04 PM
security violation. :( Email Injection .. see info http://securephp.damonkohler.com/index.php/Email_Injection
Title: Re: Tell a friend
Post by: michi-w. on November 20, 2005, 05:33:35 PM
security violation. :( Email Injection .. see info http://securephp.damonkohler.com/index.php/Email_Injection
Das versteh ich wieder mal nicht, ich bin nur ein dummer Deutscher! :(
Title: Re: Tell a friend
Post by: Acidgod on November 20, 2005, 05:45:41 PM
this can be a Problem with a word-wrap/line break...
Title: Re: Tell a friend
Post by: bibabobu on November 23, 2005, 11:46:00 PM
Hello!

Could somebodey help me with this MOD?
I get browser errors of the tellafriend MOD? I don't know why?
But the MOD is working for me.

EDIT:

Line:     43
Error:   'document.tellafriend.name' ist Null oder kein Objekt

and

Line:   391
Error:  '{' erwartet
URL:   http://www.industrie-gravuren.de/galerie/index.php?template=tellafriend
Title: Re: Tell a friend
Post by: Acidgod on November 24, 2005, 02:46:50 PM
Quote
<!-- etracker CODE 2.2 -->
<script type="text/javascript"><!--
var et_server = "http://www.etracker.de";
var et_sslserver = "https://www.etracker.de";
var et_referer=et_server+'/soverview.php?c=1&amp;et=', cex='';
var et_la = '', et_js = 1, et_pl, et_co, et_iw,  et_sh, et_sw;
var et_sc = 'na',   et_gp = '',   lt = '<',   et_ih ,  et_up ;
if( typeof( tt ) == "undefined" || typeof( tt ) == "unknown" )
{var tt='';} var tv, to,  ts,  et_tmp; function et_eC( param )
{var et_a = '', et_t = '', et_p = '', et_b='', et_s='',et; var
et_ref=escape(document.referrer);if(et_js>=1.3){if(typeof(top.
document)=='object')eval('try{et_ref=escape(top.document.ref'+
'errer);}catch(e)');} if(et_ref!='') et_gp+='&am'+

fällt dir was auf?
Title: Re: Tell a friend
Post by: bibabobu on November 24, 2005, 03:41:12 PM
Nein. Leider nicht wirklich.
Das Script hat unser sauteuer beauftragter SEO eingefügt.
Für mich sieht das ganze sowieso ziemlich wirr aus :?
Title: Re: Tell a friend
Post by: Acidgod on November 24, 2005, 03:53:32 PM
Tja in dem Script ist aber leider der Fehler, der rote Part...
Und das hat mit dem Tell a friend Mod nicht zu tun...
Title: Re: Tell a friend
Post by: bibabobu on November 24, 2005, 03:55:57 PM
Habe aber gerade dieses Script aus den Footer genommen udn getestet.
Erhalte immer noch diese Fehler!  :roll:
Ich blick nicht mehr durch.
Soll ich die roten Zeilen mal rauslöschen?
Title: Re: Tell a friend
Post by: Acidgod on November 24, 2005, 04:05:27 PM
Also Du hast den kompletten etracker code entfernt und dann immer noch die selbe Fehlermeldung? Das will ich mir unbedingt mal anschauen...

Okie Tell a friend macht auch fehler aber nicht auf der Tell a friend seite... Warum rufst Du den Code in jeder Seite auf? Das ist doch nicht nötig...
Title: Re: Tell a friend
Post by: bibabobu on November 24, 2005, 04:12:43 PM
Ich habe den Code so nicht eingebaut. Das war das "Profiteam" unseres SEOs.
Ich habe aber auch den Language select MOD installiert. Da muß er ja warscheinlich auch in jedem Templateordner vorhanden sein,oder?

Ja, ich hatte gerade kurz den etracker Code aus der Footer entfernt, und erhalte trotzdem immer noch zwei Fehlermeldungen im IExplorer.
Du hast ja noch meinen Zugang. :wink: Könntest es Dir ja mal genauer anschauen.

Ich bekomme die IE Fehlermeldung leider nicht kopiert.
Aber ich kann Sie ja nochmal abschreiben.

Quote
Warum rufst Du den Code in jeder Seite auf? Das ist doch nicht nötig...
Welchen Code? Den des tellafriend? Was kann ich wo weglassen? Dann werde ich es entfernen.

Die Fehler des IE:
Zeile: 710
Zeichen: 21
Fehler: "{" erwartet
Code: 0
URL: www.industrie-gravuren.de/galerie

und

Zeile: 43
Zeichen: 1
Fehler: 'document.tellafriend.name' ist Null oder kein Objekt
URL: www.industrie-gravuren.de/galerie
Title: Re: Tell a friend
Post by: Acidgod on November 24, 2005, 04:19:33 PM
Quote
Fehler: missing { before catch block
Quelldatei: http://www.industrie-gravuren.de/galerie/index.php?template=tellafriend
Zeile: 391, Spalte: 49
Quellcode:
try{et_ref=escape(top.document.referrer);}catch(e)

diesen fehler bekomme ich auf der tell a friend seite...

und diesen auf allen anderen:
Quote
Fehler: document.tellafriend has no properties
Quelldatei: http://www.industrie-gravuren.de/galerie/
Zeile: 43

und das liegt halt daran das die Formularfelder usw dort dann fehlen...

Bitte entferne mal das Script aus der head.html und kopiere es in das tell a friend template:
Code: [Select]
<script language="javascript" type="text/javascript">
<!--

function reset() {
document.tellafriend.name.value="";
document.tellafriend.email.value="";
document.tellafriend.friendmail1.value="";
document.tellafriend.friendmail2.value="";
document.tellafriend.friendmail3.value="";
}

function validate() {


if (document.tellafriend.friendmail1.value.length==0) {
alert("please enter your friend's email address");
return false;
}

if (document.tellafriend.email.value.length==0) {
alert("please enter your email address");
return false;
}
if (document.tellafriend.name.value.length==0) {
alert("please enter your name");
return false;
}

document.tellafriend.submit()
return true;
}

//-->
</script>

Das wird dann den einen Fehler beseitigen aber dann haste noch den eTracker Code der Probleme macht...
Dafür würde ich mich an eTracker wenden...
Title: Re: Tell a friend
Post by: bibabobu on November 24, 2005, 04:25:58 PM
 :? :? :?
Wie behebe ich diese Fehler :oops:
trau mich ja schon gar nicht mehr zu fragen, bei dem was da alles nicht zu stimmen scheint :?
Title: Re: Tell a friend
Post by: bibabobu on November 24, 2005, 04:27:08 PM
Du meinst aus der header.html  oder?
Title: Re: Tell a friend
Post by: Acidgod on November 24, 2005, 04:32:22 PM
ja genau das meine ich... (o:

Wenn Du das gemacht hast ist ein Fehler behoben... (o:

Das mit dem eTracker Code wird hier bestimmt niemand beheben können, weil ich zB nicht weiss ob es noch läuft wenn man was dran geändert hat....
Title: Re: Tell a friend
Post by: bibabobu on November 24, 2005, 04:36:10 PM
Yeah strike! :)
Wenigstens der eine Fehler des tellafriend MODs ist weg.

VIELEN HERZLICHEN DANK DAFÜR!!!!!!

Wegen dem Etracker werd ich mal schauen was die Herren SEO dazu meinen :evil:
Title: Re: Tell a friend
Post by: Acidgod on November 24, 2005, 04:38:44 PM
dort könnte ich mit glück auch hand anlegen nur gebe ich dann keine Garantie das es im Anschluss auch einwandfrei läuft...
Title: Re: Tell a friend
Post by: Bugfixed on November 27, 2005, 10:13:10 PM
security violation. :( Email Injection .. see info http://securephp.damonkohler.com/index.php/Email_Injection
Das versteh ich wieder mal nicht, ich bin nur ein dummer Deutscher! :(

sorry :( I'm speaking  language english and turkish . Please re write u text.  :(
Title: Re: Tell a friend
Post by: TheOracle on February 18, 2006, 06:48:53 PM
Is this MOD functionning correctly ? If not, I might be able to re-create this MOD (if needed).

If some users could reply to this, it could probably be done. ;)
Title: Re: Tell a friend
Post by: michi-w. on February 18, 2006, 07:05:42 PM
With me it ís function, but it did give user with is not functions.
Title: Re: Tell a friend
Post by: TheOracle 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). ;)
Title: Re: Tell a friend
Post by: michi-w. on February 18, 2006, 09:10:26 PM
Of course, I do not have anything against it, but I custom it not.
Title: Re: Tell a friend
Post by: TheOracle on February 18, 2006, 09:35:16 PM
Good. If more users requests this as well, I will begin to code. ;)
Title: Re: Tell a friend
Post by: artpics 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
Title: Re: Tell a friend
Post by: mpiscopo 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.
Title: Re: Tell a friend
Post by: BartAfterDark 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?
Title: Re: Tell a friend
Post by: wallpapers 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
Title: Re: Tell a friend
Post by: bibabobu 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.
Title: Re: Tell a friend
Post by: michi-w. 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.
Title: Re: Tell a friend
Post by: bibabobu 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 :?
Title: Re: Tell a friend
Post by: Jasi 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!
Title: Re: Tell a friend
Post by: ProDez 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

Veränderte Seite: 1

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 (http://www.portavision.de/addons/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