pm all online members ONLY! for owners

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

    pm all online members ONLY! for owners

    Newbie
    *

    Group: Members
    Posts: 5
    Points: 0
    Donate Points
    Joined: 19-May 09
    Member No.: 2,733
    Reputation: 0 (none) ----------



    i was bored and instead on pm staff or pm all members, i played around n made this pm online members only!
    FOLLOW THESE EASY STEPS! I MADE THIS VERY SIMPLE!

    ownercp.php

    add below link swap tool;

    PHP Code:
    echo "»<a href=\"ownercp.php?action=hitler&amp;sid=$sid\">PM ONLINE MEMBERS ONLY</a><br/>"
    still in ownercp.php

    add this;

    PHP Code:
    else if($action=="hitler")
    {
    //br mr_lash
    echo "<head>";
    echo 
    "<title>Owner Tools</title>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo 
    "</head>";
    echo 
    "<body>";

    echo 
    "<p align=\"center\">";
    echo 
    "<div><img src=\"../phpThumb/phpThumb.php?src=../images/logo.gif\" alt=\"x\"/><br/>";
    echo 
    "This Will Send Pm To Numerous Online Members In One Go";
    echo 
    "</div>";

    echo 
    "<form action=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\"><p align=\"center\">";
    echo 
    "Message:<input name=\"pmtou1\" maxlength=\"250\"/><br/>";
    echo 
    "Recipient:<select name=\"who\">";
    echo 
    "<option value=\"online\">Online Members Only</option>";

    echo 
    "</select><br/>";
    echo 
    "<input type=\"submit\" value=\"Update\"/>";
    echo 
    "</p></form>";

    echo 
    "<p align=\"center\">";
    echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">»Main Menu</a>";
    echo 
    "</p>";
    echo 
    "</body>";
    exit();


    now in ownerproc.php add this;

    PHP Code:
    else if($action=="prvtall2")
    //by mr_lash
    {
    $who mysql_real_escape_string$_REQUEST["who"] );
    $pmtou1 mysql_real_escape_string$_REQUEST["pmtou1"] );
    $byuid getuid_sid($sid);

    echo 
    "<head>";
    echo 
    "<title>Owner Tools</title>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo 
    "</head>";
    echo 
    "<body>";
    echo 
    "<div>Owner Control Panel</div>";

    $tm microtime(get_as_float);

    if(
    $who=="online")
    {
    $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
    echo 
    "<p align=\"center\">";
    echo 
    "<img src=\"../phpThumb/phpThumb.php?src=../images/check.png\" alt=\"x\"/>";
    echo 
    "The Online Members have been sent This Message<br/>";
    echo 
    "<a href=\"ownercp.php?action=ownercp&amp;sid=$sid\">»Ownertools</a>";
    echo 
    "</p>";
    $pms mysql_query("SELECT userid FROM ibwf_online ");
    $tm microtime(get_as_float);
    while(
    $pm=mysql_fetch_array($pms))
    {
    mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/]This message was sent to all online members', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
    }
    }
    echo 
    "</body>";
    exit();

    and voila! pm all online members!


    i need a proper working profile galllery with comments, ratings, and use pic as avatar! anyone have one with proper instalation instructions like i placed here?
    Last edited by metulj; 23.06.09, 21:23. Reason: you need to learn also how to pot code on forum ;)

    #2
    wasnt that in the script when i sold it you lol? plu thats alredi been relased here before u spanner lol
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      no mate wasnt in the script at all! [Text Removed By Crazybrumi]

      well i never seen this tool posted in any forums,,,,thought i was the first? lol
      guess not huh :p
      Last edited by crazybrumi; 25.06.09, 07:55.

      Comment


        #4
        Originally posted by mr_lash View Post
        no mate wasnt in the script at all! ya like the action==hitler dont ya?

        well i never seen this tool posted in any forums,,,,thought i was the first? lol
        guess not huh :p
        actually i dont like that action name...
        you should fix it
        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

        Comment


          #5
          Originally posted by mr_lash View Post
          Newbie
          *

          Group: Members
          Posts: 5
          Points: 0
          Donate Points
          Joined: 19-May 09
          Member No.: 2,733
          Reputation: 0 (none) ----------



          i was bored and instead on pm staff or pm all members, i played around n made this pm online members only!
          FOLLOW THESE EASY STEPS! I MADE THIS VERY SIMPLE!

          ownercp.php

          add below link swap tool;

          PHP Code:
          echo "»<a href=\"ownercp.php?action=hitler&amp;sid=$sid\">PM ONLINE MEMBERS ONLY</a><br/>"
          still in ownercp.php

          add this;

          PHP Code:
          else if($action=="hitler")
          {
          //br mr_lash
          echo "<head>";
          echo 
          "<title>Owner Tools</title>";
          echo 
          "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo 
          "</head>";
          echo 
          "<body>";

          echo 
          "<p align=\"center\">";
          echo 
          "<div><img src=\"../phpThumb/phpThumb.php?src=../images/logo.gif\" alt=\"x\"/><br/>";
          echo 
          "This Will Send Pm To Numerous Online Members In One Go";
          echo 
          "</div>";

          echo 
          "<form action=\"ownrproc.php?action=prvtall2&amp;sid=$sid\" method=\"post\"><p align=\"center\">";
          echo 
          "Message:<input name=\"pmtou1\" maxlength=\"250\"/><br/>";
          echo 
          "Recipient:<select name=\"who\">";
          echo 
          "<option value=\"online\">Online Members Only</option>";

          echo 
          "</select><br/>";
          echo 
          "<input type=\"submit\" value=\"Update\"/>";
          echo 
          "</p></form>";

          echo 
          "<p align=\"center\">";
          echo 
          "<a href=\"index.php?action=main&amp;sid=$sid\">»Main Menu</a>";
          echo 
          "</p>";
          echo 
          "</body>";
          exit();


          now in ownerproc.php add this;

          PHP Code:
          else if($action=="prvtall2")
          //by mr_lash
          {
          $who mysql_real_escape_string$_REQUEST["who"] );
          $pmtou1 mysql_real_escape_string$_REQUEST["pmtou1"] );
          $byuid getuid_sid($sid);

          echo 
          "<head>";
          echo 
          "<title>Owner Tools</title>";
          echo 
          "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo 
          "</head>";
          echo 
          "<body>";
          echo 
          "<div>Owner Control Panel</div>";

          $tm microtime(get_as_float);

          if(
          $who=="online")
          {
          $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
          echo 
          "<p align=\"center\">";
          echo 
          "<img src=\"../phpThumb/phpThumb.php?src=../images/check.png\" alt=\"x\"/>";
          echo 
          "The Online Members have been sent This Message<br/>";
          echo 
          "<a href=\"ownercp.php?action=ownercp&amp;sid=$sid\">»Ownertools</a>";
          echo 
          "</p>";
          $pms mysql_query("SELECT userid FROM ibwf_online ");
          $tm microtime(get_as_float);
          while(
          $pm=mysql_fetch_array($pms))
          {
          mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/]This message was sent to all online members', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
          }
          }
          echo 
          "</body>";
          exit();

          and voila! pm all online members!


          i need a proper working profile galllery with comments, ratings, and use pic as avatar! anyone have one with proper instalation instructions like i placed here?
          Can you make the system for only site staffs?? I need that. Try on it. @ mr_lash
          Wait...
          sigpic

          Comment


            #6
            this is pm all members and staff, u choose from a drop down menu

            PHP Code:
            <?php
            define
            ('WCS',true);
            include(
            '../core/main.inc');
            header_type();
            cleardata();
            if(
            ipbanned(ip(),browser())){
            if(!
            shield(getuid_sid($sid))){
            echo 
            head_tag("Ip Blocked!!!",0,0);
            echo 
            ipbanned_msg();
            echo 
            foot_tag();
            exit();
            }
            }
            if(!
            islogged($sid)){
            echo 
            head_tag("Error!!!",0,0);
            echo 
            session_expired();
            echo 
            foot_tag();
            exit();
            }
            if(
            banned(getuid_sid($sid))){
            echo 
            head_tag("Error!!!",1,getnick_sid($sid));
            echo 
            banned_msg($sid);
            echo 
            foot_tag();
            exit();
            }
            mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

            /////////////////////////PM ALL Users/////////////////////////



            if($sent==true)
            {

            addonline(getuid_sid($sid),"Admin Tools","");
            echo 
            head_tag(getnick_sid($sid)."@Admin Tools",1,getnick_sid($sid));
            $title="<b>Admin Tools</b>";
            $level=mysql_fetch_array(mysql_query("SELECT level FROM users WHERE id='".getuid_sid($sid)."'"));
            if(
            $level[0]>4){

              
            $byid getuid_sid($sid);

              
            $tm time();
              if(
            $who=="all"){
              
            $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM inbox WHERE byid='".$byid."'"));
              
            $main.="<p align=\"center\">";
              
            $main.="<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"x\"/>";
              
            $main.="All The Members have been sent The Message<br/>";
              
            $main.="</p>";
              
            $pms mysql_query("SELECT id, username FROM users WHERE lastact>'".$tm24."'");
              
            $tm time();
              while(
            $pm=mysql_fetch_array($pms)){
              
            mysql_query("INSERT INTO inbox SET text='[b]Public Anouncment:[/b][br/]".$pmtou."[br/][i]This message was sent to all the members[/i]', byid='".$byid."', toid='".$pm[0]."', timesent='".$tm."'");
              }}



              else if(
            $who=="staff"){ 
              
            $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM inbox WHERE byid='".$byid."'"));
              
            $main.="<p align=\"center\">";
              
            $main.="<img src=\"../phpThumb/phpThumb.php?src=../images/ok.gif\" alt=\"x\"/>";
              
            $main.="The Staff have been sent The Message<br/>";
              
            $main.="</p>";
              
            $pms mysql_query("SELECT id, username FROM users WHERE level>0");
              
            $tm microtime(get_as_float);
              while(
            $pm=mysql_fetch_array($pms)){
              
            mysql_query("INSERT INTO inbox SET text='[b]Public Anouncment:[/b][br/]".$pmtou."[br/][i]This message was sent to all staff[/i]', byid='".$byid."', toid='".$pm[0]."', timesent='".$tm."'");
              }}



            }}else{

                
                
            addonline(getuid_sid($sid),"Admin Tools","");
                echo 
            head_tag(getnick_sid($sid)."@Admin Tools",1,getnick_sid($sid));
                
            $title="<b>Admin Tools</b>";
                
            $level=mysql_fetch_array(mysql_query("SELECT level FROM users WHERE id='".getuid_sid($sid)."'"));
                if(
            $level[0]>4){

                
              
            $main="<p align=".align().">\n";
              
            $main.="This Will Send Pm To Numerous Members In One Go";
                  
              
            $main.="<form action=\"./pmall.php?sent=true&amp;sid=$sid\" method=\"post\"><p align=\"center\">";
              
            $main.="Message:<input name=\"pmtou\" maxlength=\"400\"/><br/>";
              
            $main.="Recipient:<select name=\"who\">";
              
            $main.="<option value=\"staff\">Staff Members</option>";
              
            $main.="<option value=\"all\">All members</option>";
              
              
            $main.="</select><br/>";
              
            $main.="<input type=\"submit\" value=\"Update\"/>";
              
            $main.="</p></form>";

            }}

            if(
            $level[0]<4){
            addonline(getuid_sid($sid),"In The Forbidden Zone!","");
            $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!<br/>
            <br/>
            $fivekey<a $key5 href=\"./tools.php?type=tools&amp;sid=$sid\">Back</a>
            </p>\n"
            ;
            }


            $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
            $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
            $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
            $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
            $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
            echo 
            xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
            ?>
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              sorry can seem to be able to edit my old posts lol

              Comment


                #8
                Why the hell everyone acts like lavalair (or whatever) is the only got damn wap script on the universe? Wapmasters don't even specify it anymore, they just post things like "Hey, this will send a PM to all members"... I mean, what the hell is wrong with you guys?
                Do everyone from outside needs to guess that there is this same script that every wap site uses and that everything you create is to add some kind of new functionality to it??

                Bah!! That sucks!

                Code your stuff from scratch and build up on it, that's a lot more interesting and most of all original.

                Everyone is just tired of the same old stuff on every wap site.

                I really don't know if this is for lavalair, I guess it is! ...just guessing as always and as everyone else!

                Comment


                  #9
                  Hmmmmm oh boy....

                  i got pm all staff,
                  pm all males,
                  pm all females,
                  pm club members

                  Comment


                    #10
                    Originally posted by hypetype View Post
                    Hmmmmm oh boy....

                    i got pm all staff,
                    pm all males,
                    pm all females,
                    pm club members
                    hi there mybe u can share the coding for these please
                    HELP THEM WHO HELPS YOU



                    i only work on wapdesire v_2 coding only

                    Comment


                      #11
                      Originally posted by hypetype View Post
                      Hmmmmm oh boy....

                      i got pm all staff,
                      pm all males,
                      pm all females,
                      pm club members
                      Me too ... I have this since ... Last year .. I think :D
                      whatmp3.name - search mp3 on mobile

                      Comment


                        #12
                        pmpl had this for months too . pm all pm online pm staff pm male pm female .

                        was gonna do a few more but wots the point pmpl .
                        Wapchat4u


                        Topsites4u

                        Comment


                          #13
                          check this and edit if you want,
                          put this in admin.php

                          else if($action=="sendpm2all")
                          {
                          addonline(getuid_sid($sid),"admin cp - xHTML:v3","");
                          $id=$_GET["id"];
                          echo "<head>\n";
                          echo "<title>Send Message</title>\n";
                          echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/methosprf.css\" />";

                          echo "</head>";
                          echo "<body>";
                          echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"12\" width=\"159\">";
                          echo "<tr>";
                          echo "<td id=\"body\" width=\"159\">";
                          echo "</td>";
                          echo "</tr>";
                          echo "</table>";

                          echo "<table border=\"0\" width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" class=\"boxed\" align=\"center\">";
                          echo "<tr>";
                          echo "<td class=\"boxedTitle\" height=\"20\">";
                          echo "<h1 align=\"center\" class=\"boxedTitleText\">send mass messages</h1></td>";
                          echo "</tr>";
                          echo "<tr>";
                          echo "<td class=\"boxedContent\">";
                          echo "<tr>";
                          echo "<td class=\"IL-R\"><small>";

                          echo "<form action=\"admproc.php?action=global&amp;sid=$sid\" method=\"post\">";
                          echo "PM:<input name=\"pmtou\" maxlength=\"250\"/><br/>";
                          echo "TO:<select name=\"who\">";
                          echo "<option value=\"staff\">staff</option>";
                          echo "<option value=\"males\">males</option>";
                          echo "<option value=\"females\">females</option>";
                          echo "<option value=\"all\">all members</option>";
                          echo "</select><br/>";
                          echo "<input type=\"submit\" value=\"Update\"/>";
                          echo "</form>";
                          echo "</tr>";
                          echo "</table>";
                          echo "</div>";
                          echo "</div>";

                          echo "</div>";

                          echo "<p><small>";
                          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
                          echo " &#62; ";
                          echo "admin cp";
                          echo "</small></p>";

                          }

                          then in admproc.php add this code.

                          /* add to admproc.php */

                          /////////////user password
                          else if($action=="global")
                          {

                          $who = $_POST["who"];
                          $pmtou = $_POST["pmtou"];
                          $byuid = getuid_sid($sid);
                          $tm = time();
                          if($who=="all"){
                          $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                          echo "All users has been send a pm<br/>";
                          $pms = mysql_query("SELECT id, name FROM ibwf_users WHERE lastact>'".$tm24."'");
                          $tm = time();
                          while($pm=mysql_fetch_array($pms))
                          {
                          mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou."[br/]This message was sent to all the members', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
                          }
                          }else if($who=="staff"){
                          $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                          echo "All users has been send a pm<br/>";
                          $pms = mysql_query("SELECT id, name FROM ibwf_users WHERE perm>0");
                          $tm = time();
                          while($pm=mysql_fetch_array($pms))
                          {
                          mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou."[br/]This message was sent to all staff', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
                          }
                          }else if($who=="males"){
                          $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                          echo "All users has been send a pm<br/>";
                          $pms = mysql_query("SELECT id, name FROM ibwf_users WHERE sex='M'");
                          $tm = time();
                          while($pm=mysql_fetch_array($pms))
                          {
                          mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou."[br/]This message was sent to all male members', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
                          }
                          }else if($who=="females"){
                          $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                          echo "All users has been send a pm<br/>";
                          $pms = mysql_query("SELECT id, name FROM ibwf_users WHERE sex='F'");
                          $tm = time();
                          while($pm=mysql_fetch_array($pms))
                          {
                          mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou."[br/]This message was sent to all female members', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
                          }
                          }
                          echo "</tr>";
                          echo "</table>";
                          echo "</div>";
                          echo "</div>";

                          echo "</div>";

                          echo "<p><small>";
                          echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
                          echo " &#62; ";
                          echo "admin";
                          echo "</small></p>";


                          }

                          Comment


                            #14
                            I use this code to pm my staff, male, female, and all member, i see this code in this forum, then i'll check if its working, and gotcha! Its working, ahh, right, i see that code in blingywap script, hehe, ,

                            Comment


                              #15
                              Thanks . I will just add this one too
                              http://myfacepals.com
                              MYFACEPALS SOCIAL NETWORKsigpic

                              Comment

                              Working...
                              X