I wont add this : if any1 have the code to add this pls write at this topic 🙂
tnks
if like my post click:
Started on the old forum in October 2008 · view the original in the archive · old links redirect here
I wont add this : if any1 have the code to add this pls write at this topic 🙂
tnks
if like my post click:
this is my idea...owner can send multi inbox to all members or all staff members or all users banned... at 1 click...
I not have the code 4 add this ...
if like my post click:
is only code html... is only 4 idea screen 😉 I wont add this at my last script...
if like my post click:
inca I send inbox before I reactivate nicks 😉 inca u can help me to code this?:)
if like my post click:
at my new version I can block users only at forums/chat/inbox and popups/modify profile/uploads photos/deactivate all actions (only access 4 read) or ban 😀
if like my post click:
but its already been coded for you over and over again
all thats differnt this time is its got a dropdown box lol
there is no point in me coding it as you can code it yourself you just cant be arsed to try
the only thing you get stuck on is ARRAYs and seeming there is no need for fetching ARRAYs for this. you can code it yourself lol dont be lazy try coding it your self then when you get stuck post it here and someone might help lol
with this code I send inbox to all members... but how I can add messagge to send???
$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 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='[b]Public Anouncment:[/b][br/]".$pmtou."[br/][i]This message was sent to all the members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
}
tnks...
if like my post click:
here the coding .... there is an error in the original coding u posted (time) i cant be arsed to work that out also im not coing send pm to all banned users as that is a really crap idea
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=\"all\">all members</option>";
echo "</select>
";
echo "<input type=\"submit\" value=\"Update\"/>";
echo "</form>";
$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='[b]Public Anouncment:[/b][br/]".$pmtou."[br/][i]This message was sent to all the members[/i]', 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='[b]Public Anouncment:[/b][br/]".$pmtou."[br/][i]This message was sent to all staff[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
}
}
banned users is bad idea??:? and all users logged at last 24 hours is good idea??? 😉
tnks buddy 🙂
if like my post click:
yeah sending a global pm to all banned users is a shit idea there is no point to it at all well unless you want thoose messages to build up and build up cos they aint goona get read lol face it if someones banned they either dont bother coming back or re-register with a new nick/browser/ip etc so therfore they wont ever read that pm.
What message would you send them anyway?..........
maybee something like............
HAHAHA YOUR BANNED!