Announcement

Collapse
No announcement yet.

[UPDATE] Mass PM (vB 2.0)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    subst:
    Code:
        $message=str_replace("$email",$user[email],$message);
        $message=str_replace("$username",$user[username],$message);
        $message=str_replace("$password",$user[password],$message);
    with:

    Code:
        $message=str_replace("\$email",$user[email],$message);
        $message=str_replace("\$username",$user[username],$message);
        $message=str_replace("\$password",$user[password],$message);

    (add slashes before $ otherwise it will parse as a var) :-)

    Comment


    • #17
      I don't understand how to install this hack?
      • Upload masspm.php
      • Then I get lost?

      Help?
      MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

      Comment


      • #18
        that is it, the run masspm.php.

        I used wreckman's and it went pearshaped and did not send the message for some reason so had to use my old one to do it. Not sure what the bug is but something not quite right i don't think?
        Christopher Padfield
        Web Based Helpdesk
        DeskPRO v3.0.3 Released - Download Demo Now!

        Comment


        • #19
          VERSION 2.1 VERSION 2.1!!! PLEASE ADD

          ~Chris

          Comment


          • #20
            all right! works fine
            Last edited by Kreker; Sun 6 May '01, 4:48am.

            Comment


            • #21
              I have done the below but still getting the problem were the first name in the first message is being sent in all PM'ed messages.

              Help!


              Originally posted by marl
              subst:
              Code:
                  $message=str_replace("$email",$user[email],$message);
                  $message=str_replace("$username",$user[username],$message);
                  $message=str_replace("$password",$user[password],$message);
              with:

              Code:
                  $message=str_replace("\$email",$user[email],$message);
                  $message=str_replace("\$username",$user[username],$message);
                  $message=str_replace("\$password",$user[password],$message);

              (add slashes before $ otherwise it will parse as a var) :-)

              Comment


              • #22
                That is what I am experiencing too

                Also, with the next update to this script, if possible could you make an "Are you sure" screen that allows you to select which users should and should not receive the message?

                Comment


                • #23
                  Solved the problem by running the repair script.

                  Comment


                  • #24
                    great hack !!!

                    I havent used it yet as i havent thought of a good enough subject to PM my users with !!!

                    here is a screen shot !!

                    Talking loud but aint saying nothing.

                    Comment


                    • #25
                      ok, found the error regarding the username not correctly parsed:

                      change this on:

                      PHP Code:
                          $message=$message;
                          
                      $message=str_replace("\$email",$user[email],$message);
                          
                      $message=str_replace("\$username",$user[username],$message);
                          
                      $message=str_replace("\$password",$user[password],$message);

                          
                      $sql=$DB_site->query("INSERT INTO privatemessage (privatemessageid, folderid, userid, touserid, fromuserid, title, message, dateline, showsignature, iconid, messageread) VALUES (NULL, '0', '$user[userid]', '$user[userid]', '$fromuserid', '".addslashes($title)."', '".addslashes($message)."', UNIX_TIMESTAMP(), '1', '0', '0')"); 
                      to this one:

                      PHP Code:
                          $messagetosend=$message;
                          
                      $messagetosend=str_replace("\$email",$touserinfo[email],$messagetosend);
                          
                      $messagetosend=str_replace("\$username",$touserinfo[username],$messagetosend);
                          
                      $messagetosend=str_replace("\$password",$touserinfo[password],$messagetosend);

                          
                      $sql=$DB_site->query("INSERT INTO privatemessage (privatemessageid, folderid, userid, touserid, fromuserid, title, message, dateline, showsignature, iconid, messageread) VALUES (NULL,'0','$user[userid]','$user[userid]','$fromuserid','".addslashes(htmlspecialchars($title))."','".addslashes($messagetosend)."',".time().",'1','0','0')"); 

                      Comment


                      • #26
                        Originally posted by The Realist
                        Solved the problem by running the repair script.
                        What repair script? I get the problem where if I have a message with something like "Your username: $username" then it says the username of me(id = 1). I've got a slash before the $ on each one of them...
                        Seriously! - The Definitive Home of All Things Serious
                        Seriously! Forums

                        To recieve support on these forums, enter your username here.

                        Comment


                        • #27
                          Is there an updated version with all the fixes?

                          Thanks,

                          Josh

                          Comment


                          • #28
                            yeah i wouldnt mind installin this one but with all the changes and stuff its baffled me a bit so il have 2 leave it for the sake of my forum!!!!!
                            http://

                            Comment


                            • #29
                              Problems

                              I install this, but it doesn't parsed the information (username, email, password). I also noticed that the user doesn't get a msg pop-up even when they specified to get a pop-up when new PM arrive.

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X