forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Willow69 on November 27, 2006, 01:13:18 pm

Title: Add picturetitle as the subject to PM
Post by: Willow69 on November 27, 2006, 01:13:18 pm
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 :

Code: [Select]
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
Title: Re: Add picturetitle as the subject to PM
Post by: Stramm on November 27, 2006, 07:15:27 pm
after
Code: [Select]
if (!$CONFIG['pms_enabled'] || (!USER_ID)) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);add
Code: [Select]
isset($_GET['subject']) ? $subject = $_GET['subject'] : $subject = '';
Title: Re: Add picturetitle as the subject to PM
Post by: Willow69 on November 28, 2006, 01:26:41 pm
Works perfect  ;D

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

THX and greets,
Willow