code not found

Makes it posble for admin to specify witch type of users may mass PM any usergroup
Also PM users can be a list of usernames, so PM can be sendt to any number of users

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

code not found

Postby WaRhEaD on Mon 17. Nov, 2003 19:44

Hi,

I have tryed to install this mod, but in emailer.php

Code: Select all
#-----[ FIND ]------------------------------------------------
#
function send()

#
#-----[ REPLACE WITH ]----------------------------------------
#

// Start replacement - Custom mass PM MOD
function send($multiple_pm='no')
// End replacement - Custom mass PM MOD

#
#-----[ FIND ]------------------------------------------------
#
// Did it work?
if (
{
message_die(
}

the code
Code: Select all
// Did it work?
if (
{
message_die(
}

Wasn't found...

Does anyone have a solution?

BTW, to tell u the truth, I don't know if there is another mod involved in this... But when I opend the original 2.0.6 emailer.php (just downloaded) and saw it was there, but also a bit different.
Code: Select all
// Did it work?
      if (!$result)
      {
         message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
      }
WaRhEaD
Poster
Poster
 
Posts: 2
Joined: Tue 01. Apr, 2003 09:23

Postby Niels on Tue 25. Nov, 2003 01:10

actually the code you found are the code to find :D

You see, it is standart NOT to include long lines in a FIND tag, this is to awoid problems if other MODs have altered the line of code

so this code
Code: Select all
// Did it work?
if (
{
message_die(
}

does actually ref to this code
Code: Select all
// Did it work?
      if (!$result)
      {
         message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
      }


but imagin another MOD wich have changed the line of code to e.g.
Code: Select all
// Did it work?
      if (!$result)
      {
         message_die(GENERAL_ERROR, 'Could not send mail :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
      }


you see it is almost identical, but if the last part of the code was included in my how-to, it would not be posible to find

so every FIND tag in a how-to ONLY indicates the start of the line - this is standart procedure with phpBB2 mods - hope you understand, if not feel free to ask again
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron