Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: pm all online members ONLY! for owners

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Red face 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 at 21:23. Reason: you need to learn also how to pot code on forum ;)

  2. #2
    Super Moderator crazybrumi's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham, England
    Posts
    1,062
    Thanks
    13
    Thanked 17 Times in 12 Posts
    Rep Power
    0

    Default

    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 [Only registered and activated users can see links. Click Here To Register...] for a prices.



    [Only registered and activated users can see links. Click Here To Register...]

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    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 at 07:55.

  4. #4
    Super Moderator metulj's Avatar
    Join Date
    Jan 2007
    Location
    your root... now think fast... =]
    Posts
    1,708
    Thanks
    558
    Thanked 212 Times in 130 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by mr_lash [Only registered and activated users can see links. Click Here To Register...]
    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ノ刀ノイリ!

  5. #5
    Senior Member anderson's Avatar
    Join Date
    Jan 2009
    Posts
    146
    Thanks
    1
    Thanked 10 Times in 2 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by mr_lash [Only registered and activated users can see links. Click Here To Register...]
    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

  6. #6
    Super Moderator crazybrumi's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham, England
    Posts
    1,062
    Thanks
    13
    Thanked 17 Times in 12 Posts
    Rep Power
    0

    Default

    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 [Only registered and activated users can see links. Click Here To Register...] for a prices.



    [Only registered and activated users can see links. Click Here To Register...]

  7. #7
    Junior Member
    Join Date
    Jun 2009
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

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

  8. #8
    Junior Member IceBurn's Avatar
    Join Date
    Jun 2009
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    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!

  9. #9
    Senior Member hypetype's Avatar
    Join Date
    May 2006
    Location
    Jamaica/ Manchester
    Posts
    129
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Default

    Hmmmmm oh boy....

    i got pm all staff,
    pm all males,
    pm all females,
    pm club members
    [Only registered and activated users can see links. Click Here To Register...]

  10. #10
    Senior Member
    Join Date
    May 2009
    Posts
    395
    Thanks
    45
    Thanked 18 Times in 11 Posts
    Rep Power
    5

    Default

    Quote Originally Posted by hypetype [Only registered and activated users can see links. Click Here To Register...]
    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

    [Only registered and activated users can see links. Click Here To Register...]

    i only work on wapdesire v_2 coding only

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [web] 65 Most Needed Php Scripts
    By jayasanka in forum Scripts Forum
    Replies: 19
    Last Post: 09-11-10, 15:30
  2. Active Members
    By Dj-marc in forum Coding Forum
    Replies: 4
    Last Post: 08-03-09, 22:53
  3. No Buddies Online Help :0)
    By jsyguy23 in forum Coding Forum
    Replies: 9
    Last Post: 05-03-09, 09:24
  4. Replies: 19
    Last Post: 18-06-08, 16:40
  5. Mysql Online Buddy Count
    By GumSlone in forum Coding Forum
    Replies: 9
    Last Post: 16-06-08, 22:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19