forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: Qayyom on March 22, 2007, 12:55:14 pm

Title: Error in Sending PM to buddies
Post by: Qayyom on March 22, 2007, 12:55:14 pm
I wrote a short massage to my friend/ Buddy.

after writing, i wait (more than 30 Sec) even few minutes, but I face this error many times after waiting more time.

plz

you can check it by this ID

user ID:  cheetah
Passd:    salman

Title: Re: Error in Sending PM to buddies
Post by: Stramm on March 22, 2007, 01:56:02 pm
known issue... do you use the latest modpack version (1.4.10)  ?? If so, then I haven't published the fix yet
Title: Re: Error in Sending PM to buddies
Post by: Joachim Müller on March 23, 2007, 08:55:36 am
The page http://www.picsnclips.net/ appears to be using cpg1.4.10 modpack v1
Title: Re: Error in Sending PM to buddies
Post by: Stramm on March 23, 2007, 12:11:50 pm
I see, the latest PMS fix isn't in the downloadable zip yet

find in pms_send.php
Code: [Select]
$result = cpg_db_query("SELECT posted FROM  {$CONFIG['TABLE_PMS']} where sender_id='".(USER_ID)."' ORDER BY posted DESC LIMIT 1");
if(list($last) = mysql_fetch_row($result)){
if(((time() - date('Z')) - $last) < $CONFIG['pms_post_flood'])


and replace with
Code: [Select]
$result = cpg_db_query("SELECT posted FROM {$CONFIG['TABLE_PMS']} where sender_id='".(USER_ID)."' ORDER BY posted DESC LIMIT 1");
if(list($last) = mysql_fetch_row($result)){
if(((localised_timestamp(-1)) - $last) < $CONFIG['pms_post_flood'])

it may be, that already existing timestamps (from already sent PMs) in the db need to 'timeout'. How long that'll need depends on timezone differences. Unfortunately I'd used my own system to determine the timezone difference for users. It worked pretty well but made use of my shoutbox. When porting the 1.3x version to 1.4 the shoutbox got removed and your problems occured within some bridged environments
Title: Re: Error in Sending PM to buddies
Post by: Qayyom on March 26, 2007, 07:07:41 am
Thanks a lot.

after editing, now it is working very well.

thanks again...