Add picturetitle as the subject to PM Add picturetitle as the subject to PM
 

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

Add picturetitle as the subject to PM

Started by Willow69, November 27, 2006, 01:13:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Willow69

Hello everybody,

I wonder if there is a way to hand over the titel of a picture as the subject of a PM.
Right now the Send PM Button just hands over the owner_id to automaticaly determine the receipiant of the PM.

I tried it this way:

<a href='".(PM_LINK).$pic_data['owner_id']."&subject=".$pic_data['title']."'>

and the result is a URL like this :


http://www.meineseite.de/cpg/pms_send.php?id=1&subject=Testbild


However the PM opens with the right receipiant (in this example its Admin) but no subject. Any clue?

Cheers and THX in advance,
Willow

Stramm

after
if (!$CONFIG['pms_enabled'] || (!USER_ID)) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
add
isset($_GET['subject']) ? $subject = $_GET['subject'] : $subject = '';

Willow69

Works perfect  ;D

BIG THANK YOU for the quick response and for the modpack itself!!

THX and greets,
Willow