i need this code

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

4 replies · 422 views · started 17 years ago · 1 min read

4 participants
valentinbr Junior · 26 posts #1

you heave code for mass friends ???????? only for friends? I want each user to send mass refers only to his friends list is someone that code:(

valentinbr Junior · 26 posts #4

yesssssssssss

yes to all my buddy list

wapmetal Lead · 609 posts #5
/////////////////////send GM to all my buddylist
else
if($action=="b1")
{
  addonline(getuid_sid($sid),"PM all my buddy list","");
  echo "<card id=\"main\" title=\"Inbox\">";
  echo "<p align=\"center\">";
  echo "<u>Send A pm to ur budz</u><br/>";
  
  echo "</p>";
   echo "<p align=\"left\">";
  echo "<u>mensahe:</u><br/>";
  echo "<input name=\"pmtext\" maxlength=\"500\"/><br/>";
  echo "<anchor>[ SEND ]<go href=\"inbox.php?action=b2&sid=$sid\" method=\"post\">";
  echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
  echo "</go></anchor><br/><br/>";
  echo "</p>";
   echo "<p align=\"center\">";

echo "----<br/>";

  echo "<a href=\"meniu_prim.php?&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
  echo "</p>";
    echo "</card>";

}

else if($action=="b2")
{
addonline(getuid_sid($sid),"Sending","");
echo "<card id=\"main\" title=\"GM sent!\">";
  echo "<p align=\"center\">";
$pmtext = $_POST["pmtext"];
   $byuid = getuid_sid($sid);
  $tm = time();
  $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
    echo "Pm all your buddy list!<br/>";
    $pms = mysql_query("SELECT a.id, a.name FROM ibwf_users a INNER JOIN ibwf_buddies b  ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."'");
    $tm = time();
    while($pm=mysql_fetch_array($pms))
    {
      mysql_query("INSERT INTO ibwf_private SET text='[b]Send by your BUDDY[/b][br/]".$pmtext."[br/][i]autopm![/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");

      }
 

  echo "<a href=\"meniu_prim.php?&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
echo "main menu</a>";
  echo "</p>";
    echo "</card>";
}

dont forget to click thanks.....

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