Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: The email automatically is not inserted from a database...  (Read 2366 times)

0 Members and 1 Guest are viewing this topic.

Ivan

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
The email automatically is not inserted from a database...
« on: December 06, 2003, 05:21:12 am »

The email automatically is not inserted from a database...

Send an e-card
=====
From
Your name: (automatic inserting my name)
Your email address: (my address is not inserted from a database)
=====

I use bridge to vBulletin 2.3.2 (\bridge\vbulletin.inc.php).

In database for vBulletin 2.3.2 in table "user" in field "email" my email is presented.

How to force Coppermine 1.2.0 Final to insert automatically my email into a field "Your email address:"?

=== ecard.php ===
    if (!USER_ID) {
        $USER['name'] = $sender_name;
        $USER['email'] = $sender_email;
    }
======

$USER['name'] = $sender_name; - It works correctly.
$USER['email'] = $sender_email; - It does not work. :(
Logged
Ivan

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
The email automatically is not inserted from a database...
« Reply #1 on: December 06, 2003, 07:27:09 am »

Code: [Select]
$sender_name  = get_post_var('sender_name', USER_ID ? USER_NAME : (isset($USER['name']) ? $USER['name'] : ''));
$sender_email = get_post_var('sender_email', USER_ID ? $USER_DATA['user_email'] : (isset($USER['email']) ? $USER['email']


$USER_DATA['user_email']

is the name of the email field different in vbulletin?
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 14 queries.