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

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]

Main Menu

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

Started by Ivan, December 06, 2003, 05:21:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ivan

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. :(
Ivan

Oasis

$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?
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org