Problem with PM

форум посвящен дальнейшим разработкам базового мода SUDOKU

Moderator: el_teniente

Postby el_teniente on Fri Nov 30, 2007 1:39 am

un this test file---user with id=3 must receive a PM or ERRORS winkk:::

Attachments
test.zip
(1 KB) Downloaded 835 times
die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Postby Snoopy on Fri Nov 30, 2007 1:43 am

did now in 2 changed!

MfG Snoopy
Snoopy
Новобранец
 
Posts: 12
Joined: Thu Nov 29, 2007 11:42 am
Gender: None specified
Country: Germany

Postby el_teniente on Fri Nov 30, 2007 1:52 am

un test file---and tell about results, please

die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Postby Snoopy on Fri Nov 30, 2007 2:11 am

one



Will I see, Even when user id 2
MfG Snoopy
Snoopy
Новобранец
 
Posts: 12
Joined: Thu Nov 29, 2007 11:42 am
Gender: None specified
Country: Germany

Postby el_teniente on Fri Nov 30, 2007 2:13 am

done with no errors and PM is received?

die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Postby Snoopy on Fri Nov 30, 2007 2:17 am

d=3 became PN with OK



D=2 become not a pm

MfG Snoopy
Snoopy
Новобранец
 
Posts: 12
Joined: Thu Nov 29, 2007 11:42 am
Gender: None specified
Country: Germany

Postby el_teniente on Fri Nov 30, 2007 2:22 am

o everything is alright---functions work



everybody MUST receive PMs if they have games played in a week
die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Postby Snoopy on Fri Nov 30, 2007 2:29 am

he User yes!



Only the admin halt!



lso Admin id 2 change, and then I get the Pm?

MfG Snoopy
Snoopy
Новобранец
 
Posts: 12
Joined: Thu Nov 29, 2007 11:42 am
Gender: None specified
Country: Germany

Postby el_teniente on Fri Nov 30, 2007 2:32 am

Snoopy wrote:also Admin id 2 change, and then I get the Pm?


well :lol:



are you admin? and your ID=2?

change it to 2 and you'll receive PM
die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Postby Snoopy on Fri Nov 30, 2007 2:34 am

k!



Thanks!



Good night!
MfG Snoopy
Snoopy
Новобранец
 
Posts: 12
Joined: Thu Nov 29, 2007 11:42 am
Gender: None specified
Country: Germany

Re: Problem with PM

Postby austin on Sat Jan 09, 2010 12:00 pm

i el_teniente,

it is possible to send the evaluation to two administrators or moderators (2 user_id's) ?



Thank you - austin
austin
Новобранец
 
Posts: 3
Joined: Fri Sep 26, 2008 6:16 pm
Gender: Male
Country: Germany

Re: Problem with PM

Postby el_teniente on Sat Jan 09, 2010 12:37 pm

ure, it's possible but you have to do that manually



OPEN: sudoku/includes/functions_sudoku_cron.php

FIND:
Code: Select all
$admin_uid = $sudoku_general['sudoku_admin'];


ADD AFTRER:
Code: Select all
$second_admin_uid =   ;//enter second user_id here


FIND(3 instances):
Code: Select all
$sudoku->pm($admin_uid, $subject, $message, $sud_lang[$adm]['SUDOKU_REWARD_SYSTEM']);


ADD AFTRER(3 instances):

Code: Select all
$sudoku->pm($second_admin_uid, $subject, $message, $sud_lang[$adm]['SUDOKU_REWARD_SYSTEM']);




SAVE/CLOSE
die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Re: Problem with PM

Postby austin on Sun Jan 10, 2010 1:16 pm

his code is for phpbb3 - right? the file "functions_sudoku_cron.php" does not exist in phpbb2. I need it for the phpbb2.

austin
Новобранец
 
Posts: 3
Joined: Fri Sep 26, 2008 6:16 pm
Gender: Male
Country: Germany

Re: Problem with PM

Postby el_teniente on Sun Jan 10, 2010 6:04 pm

austin wrote: I need it for the phpbb2.


ooooops, sorry :lol:

OPEN: includes/sudoku_weekly_cron.php

FIND:

Code: Select all
// Send PMs to admin

       $to_member_id = 2;


ADD AFTER:

Code: Select all
$second_admin_uid =   ;//enter second user_id here


FIND THE LINE WITH THIS PART:

Code: Select all
$message = sprintf($lang['sudoku_notification_message'] ...


ADD AFTER:

Code: Select all
trest_send_admin_pm($second_admin_uid , $subject  , $message );


FIND THE LINE WITH THIS PART:

Code: Select all
$message = sprintf($lang['sudoku_samurai_notification_message'] ...


ADD AFTER:

Code: Select all
trest_send_admin_pm($second_admin_uid , $subject  , $message );


FIND THE LINE WITH THIS PART:

Code: Select all
$message = sprintf($lang['sudoku_ninja_notification_message'] ...


ADD AFTER:

Code: Select all
trest_send_admin_pm( $second_admin_uid , $subject  , $message );


SAVE/CLOSE
die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Re: Problem with PM

Postby austin on Sat Jan 16, 2010 10:23 am

hank you!

Everything worked fine.



austin
austin
Новобранец
 
Posts: 3
Joined: Fri Sep 26, 2008 6:16 pm
Gender: Male
Country: Germany

Previous

Return to Sudoku MOD

Who is online

Users browsing this forum: No registered users and 2 guests


Page generation time 0.08 sec (PHP: 75% - SQL: 25%) - DB queries 28 - Peak memory usage 3.61 MB
cron