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: Add picturetitle as the subject to PM  (Read 4161 times)

0 Members and 1 Guest are viewing this topic.

Willow69

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
Add picturetitle as the subject to PM
« 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
« Last Edit: November 28, 2006, 04:20:52 pm by GauGau »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Add picturetitle as the subject to PM
« Reply #1 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 = '';

Willow69

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
Re: Add picturetitle as the subject to PM
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.