[help] Send Pm To Multi Users

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

12 replies · 1,244 views · started 18 years ago · 1 min read

7 participants
Guest #1

hi guys

can you help me with the code how to send pm to multi users on lava script?

Example on send to

Name: nick1, nick2, nick3, nick4, nick5, and so on

Message: blablabla

thanks

Guest #3

what wapdesire script? thx anyway sweet

laro696 Developer · 205 posts #5

add this in core.php

function textall($text)
{ 
$sql= mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users "));
for($i=0;$i<$sql[0];$i++)
{
$txts="[b]PM to all members:[/b][br/] $text";
mysql_query("INSERT INTO ibwf_private SET bywho='1' , towho='".$i."' text='".$txts."' new='1'"); 
}}

and this in index.php

else if($action=="sendbrdcast")
{
addonline(getuid_sid($sid),"Sending PM to all members","index.php?action=$action");
  $pmtou = $_POST["pmtou"];
  $byuid = getuid_sid($sid);
  $tm = time();
  $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
  echo "All users has been sent this 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='[b]PM to all members[/b][br/]".$pmtou."[br/][i]This message was sent to all the members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
  }
echo "<p align=\"center\">";

echo "</p>";    
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
echo "</html>";
}
laro696 Developer · 205 posts #7

add in index.php under admin cp

echo "<form action=\"index.php?action=sendbrdcast&sid=$sid\" method=\"post\">";
echo "<input type=\"text\" name=\"pmtou\" size=\"15\" maxlength=\"500\" />
";
echo "<input type=\"submit\" value=\"PM every1\"/>";
echo "
";
echo "</form>";

this isnt actually wat the topic poster wants. this sends to all users. but just edit it

subzero Super moderator Fellow · 3,954 posts #10

lol if she got a send all to members she dont own the server ?

and the cpu hits high in like 15 %

she will kill she server on one hit so if she got 2030102 members online and she sends it hahahaha boom !

Fast MySql do use cpu and ram phpmyadmin use cpu server use cpu

now lie how much you do i know it hurts the server lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #11

Im after a script were members can apply to be head admin, admin etc when they apply a pm gets sent to the owner. Can i use this script for that. Thanks

SpiderWap Lead · 622 posts #12

I dont think its a good idea if people can ask to be admin or whatever dude.

Thats where you come in to see who is really a true member to your site and decide yourself who you want to make a mod or admin etc.

inet Senior · 264 posts #13

I dont think its a good idea if people can ask to be admin or whatever dude.

Thats where you come in to see who is really a true member to your site and decide yourself who you want to make a mod or admin etc.

he might need more admins to his site..

anybody out there be the next admin or headadmin at [url="http://www.pinoy2.com"]<a href="http://www.pinoy2.com" target="_blank">http://www.pinoy2.com! </a> pinoy2.com needs admins and head admins too..

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

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