Need Upgrade 4 Pm 2 All

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

7 replies · 604 views · started 18 years ago · 1 min read

3 participants
ionutxp Developer · 137 posts #1

this in core.php

function mass($text){
$offline = 300;
$sql = @mysql_query("SELECT * from `lib3rtymrc_users` WHERE lastact>'".intval(time()-$offline)."'");
while ($id = @mysql_fetch_array($sql)){
@mysql_query("INSERT INTO lib3rtymrc_private SET byuid = '1', touid = '".$id[0]."', text = '[b]Pm to all conected users:[/b][br/]".$text."', timesent = '".time()."'");
}
}

what i need 2 put 2 show the name of who send the pm not only the id 1 ..? hmm 🙂

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

ionutxp Developer · 137 posts #3

thi is the rest of the code

else if ($action=="mass"){

echo '<card id="main" title="Send 2 all online!!!">

';

echo "Text:

<input type=\"text\" name=\"msg\"/>

<anchor>send";
echo "<go href=\"sef.php?action=mass2&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>";
echo "
<a href=\"index.php?action=proprietar&sid=$sid\">Panou Proprietar</a>
"; 

echo "

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

}

/////////pm tuturor
else if ($action=="mass2"){
echo '<card id="main" title="PM sent to online members!!!">

';
$msg = $_POST['msg'];
mass($msg);
echo "Pm sent 2 all $numesite online members !
";
echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Acasa</a>";
echo "
<a href=\"index.php?action=proprietar&sid=$sid\">Panou Proprietar</a>
"; 

echo "</p></card>";

}

because that is what i need :P:P .. ideas ? 😀

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

something else Fellow · 2,296 posts #4

Change to this:

CODEfunction mass($text,$uid){ $offline = 300; $sql = @mysql_query("SELECT * from lib3rtymrc_users WHERE lastact>'".intval(time()-$offline)."'"); while ($id = @mysql_fetch_array($sql)){ @mysql_query("INSERT INTO lib3rtymrc_private SET byuid = '$uid', touid = '".$id[0]."', text = 'Pm to all conected users:[br/]".$text."', timesent = '".time()."'"); } }

CODE/////////pm tuturor else if ($action=="mass2"){ $uid = getuid_sid($sid); echo '<card id="main" title="PM sent to online members!!!">

'; $msg = $_POST['msg']; mass($msg,$uid); echo "Pm sent 2 all $numesite online members ! "; echo "

<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>Acasa</a>"; echo " <a href="index.php?action=proprietar&sid=$sid">Panou Proprietar</a> "; echo " </card>"; }

...untested 🙂

ionutxp Developer · 137 posts #5

thx bru respect to work completly the cod must look like this :

/////////pm 2 all
else if ($action=="mass2"){
echo '<card id="main" title="PM sent to online members!!!">

';
$msg = $_POST['msg'];
$uid = getuid_sid($sid);
mass($msg,$uid);
echo "Pm sent 2 all $sitename online members !
";
echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
echo "
<a href=\"index.php?action=propcp&sid=$sid\">Prop Cp</a>
"; 
echo "</p></card>";
}
$uid = getuid_sid($sid);

app but if i want to send inbox only members active at last 24h what code i need?:D

Hate romains that take codes from here and tell to all that they had made that External image (may be gone)

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