Author Topic: Postkarten-Versand-Verbesserungs-Vorschlag ;))  (Read 8420 times)

0 Members and 1 Guest are viewing this topic.

Offline Matthias

  • Pre-Newbie
  • Posts: 8
    • View Profile
Postkarten-Versand-Verbesserungs-Vorschlag ;))
« on: May 10, 2002, 02:34:06 PM »
Hi Jan,

wäre es möglich, beim Versand von Postkarten standardmässig die aktuell im User-Profil eingestellte E-Mailadresse (und eventuell den Benutzernamen) in den Absender-Formular-Feldern erscheinen zu lassen.. (ich hab sehr Kreative-Verbesserungsvorschläge einbringende User ;) und da wurde das eben bei nem E-Card-Versandmarathon bemerkt)..

Erscheint mir als ne gute Idee - gibt es eventuell schon Arrays, in denen die Info eh mitgegeben wird??

Thx und nen schönes Wochenende!!  :lol:

Matthias

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Postkarten-Versand-Verbesserungs-Vorschlag ;))
« Reply #1 on: May 10, 2002, 02:57:47 PM »
Das ist ganz einfach zu ändern. In "postcards.php" diese 2 Zeilen:

Code: [Select]
$sender_name = "";
$sender_email = "";


zu:

Code: [Select]
$sender_name = $user_info['user_name'];
$sender_email = $user_info['user_email'];


ändern.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Matthias

  • Pre-Newbie
  • Posts: 8
    • View Profile
Postkarten-Versand-Verbesserungs-Vorschlag ;))
« Reply #2 on: May 10, 2002, 03:49:08 PM »
Ey subbää!  :P

Echt beeindruckend, wie schnell einem hier immer geholfen wird!   :D

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Postkarten-Versand-Verbesserungs-Vorschlag ;))
« Reply #3 on: May 10, 2002, 09:08:30 PM »
Hi jan can you please translate that one , if i understand it correctly he wanted to automaticly put the users name and email in there is that right  :?:

In this line

$sender_name = htmlspecialchars(trim($HTTP_POST_VARS['sender_name']));
  $sender_email = htmlspecialchars(trim($HTTP_POST_VARS['sender_email']));

And change it to

$sender_name = $user_info['user_name'];
$sender_email = $user_info['user_email'];

Is that right because nothing happens for me , maybe its got some thing to do with not being able to read german  :cry:

Can you help

Giffy :wink:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Postkarten-Versand-Verbesserungs-Vorschlag ;))
« Reply #4 on: May 10, 2002, 09:54:20 PM »
No, Matthias wanted the the fields sender name and email is prefilled out with the name and email of the loggedin user.

For that replace
Code: [Select]
$sender_name = "";
$sender_email = "";


with:
Code: [Select]
$sender_name = $user_info['user_name'];
$sender_email = $user_info['user_email'];


Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Postkarten-Versand-Verbesserungs-Vorschlag ;))
« Reply #5 on: May 10, 2002, 11:15:45 PM »
Thanks got that corrected nice little touch , ok got the half of it right maybe i should learn german , Jan maybe it would be a good idea to put all these little things in a forum category by them selves so its easier to find them and saves you time replying to the same question twice  :idea:
Just an idea

Giffy 8)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Nice
« Reply #6 on: May 14, 2002, 06:59:31 AM »
I agree.  Prefilling the sender's name and email from the logged in user info is a real nice touch.  THANKS !