PDA

View Full Version : PM Script Question


cardin
05-29-2002, 03:57 PM
I have created a second type of Private Message and want to increment the referral points when that type of PM is sent. I am getting a little confused as to which template or script to modify with the addition of the code for incrementing the refererrid field. So my specific question is this - when a PM is sent, what is the last script to be executed (or which section of that script is the last to be executed) or what is the last template to be used. That, I think, is where I want to add the code, since I don't want to increment until the message is finally sent.

Thanks,

Paul Cardin

Xenon
05-29-2002, 07:45 PM
file privat.php
section start send message

just put your code before:
eval("standardredirect(\"".gettemplate("redirect_pmthanks")."\",\"private.php?s= $session[sessionhash]\");");

cardin
05-30-2002, 02:47 PM
Thanks, it all works like a charm.

PDC