pm all online members ONLY! for owners

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

19 replies · 2,366 views · started 17 years ago · 1 min read

TL;DR · summary of 19 replies
  • -mr_lash created a tool for sending PMs to all online members and staff, but the functionality was not included in the original script.
  • -The thread discusses various functionalities such as pm all online members only, pm all site staff, pm all males, pm all females, and more, suggesting there are existing solutions available.
  • -There is no specific code provided or concluded for a solution to mr_lash's problem with sending PMs to all online members in the original script.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

16 participants
mr_lash Junior · 21 posts #1

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;

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

still in ownercp.php

add this;

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&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&sid=$sid\">»Main Menu</a>";
echo "</p>";
echo "</body>";
exit();

}

now in ownerproc.php add this;

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&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?😊

mr_lash Junior · 21 posts #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 😛

metulj Super moderator Principal · 1,726 posts #4

mr_lash wrote: 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ノ刀ノイリ!

anderson Developer · 146 posts #5

mr_lash wrote: 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;

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

still in ownercp.php

add this;

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&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&sid=$sid\">»Main Menu</a>";
echo "</p>";
echo "</body>";
exit();

}

now in ownerproc.php add this;

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&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...

crazybrumi Super moderator Principal · 1,064 posts #6

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

<?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&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&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.

http://flagcounter.com/more/W80q

mr_lash Junior · 21 posts #7

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

IceBurn Junior · 13 posts #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!

brand Senior · 391 posts #10

hypetype wrote: 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

External image (may be gone)

i only work on wapdesire v_2 coding only

shad0w Developer · 119 posts #11

hypetype wrote: 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 😀

whatmp3.name - search mp3 on mobile

nclemale36 Lead · 537 posts #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 .

arg0s12 Developer · 144 posts #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">";

echo "<form action="admproc.php?action=global&sid=$sid" method="post">"; echo "PM:<input name="pmtou" maxlength="250"/> "; 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> "; echo "<input type="submit" value="Update"/>"; echo "</form>"; echo "</tr>"; echo "</table>"; echo ""; echo "";

echo "";

echo " "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " > "; echo "admin cp"; echo " ";

}

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 "; $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 "; $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 "; $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 "; $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 ""; echo "";

echo "";

echo " "; echo "<a href="index.php?action=main&sid=$sid">Home</a>"; echo " > "; echo "admin"; echo " ";

}

arg0s12 Developer · 144 posts #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, ,

cheeky-girl Junior · 17 posts #16

yeah has ANYBODY got anything at all to do with wapdesire v_2 script coz lavalair script really dnt help me pmpl x

amylee Principal · 1,092 posts #17

cheeky-girl wrote: yeah has ANYBODY got anything at all to do with wapdesire v_2 script coz lavalair script really dnt help me pmpl x

wapdesire is lavalair script, be it a modded version

djlee Developer · 224 posts #18

arg0s12 wrote:

$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."'");
  }
}

all that mess could be replaced by a neater looking...

$who = $_POST["who"];
$pmtou = $_POST["pmtou"];
$byuid = getuid_sid($sid);
if(in_array($who, array("all", "staff", "males", "females")))
 {
 $sendres = mysql_query("SELECT id, name FROM ibwf_users".($who != "all" ? " WHERE ".($who == "males" ? "sex='M'" : ($who == "females" : "sex='F'" : "perm > 0")):""));
 if(mysql_num_rows($sendres) > 0)
  {
  $ins = array();
  switch($who) {
   case "all": $whotxt = "members"; break;
   case "males": $whotxt = "male members"; break;
   case "females": $whotxt = "female members"; break;
   default: $whotxt = "staff";
   }
  $txt = "'".mysql_real_escape_string("Public Anouncment:[br/]$pmtou[br/]This message was sent to all $whotxt")."'";
  while($sendarr = mysql_fetch_assoc($sendres)) {
   $ins[] = "($txt,$byuid,".$sendarr['id'].", ".time().")";
   }
  mysql_query("INSERT INTO ibwf_private (text, byuid, touid, timesent) VALUES ".implode(",",$ins));
  echo "Message was sent to ".count($ins)." $whotxt. <br />";
  }
 else
  echo "No one matching your criteria was found, no PMs were sent.";
 }
else
 echo "Unknown send to param.";
crazydemon Junior · 12 posts #20

can ne 1 code this 4 a wap v2 script please😕

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close