Antispam Off Smileys

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

8 replies · 534 views · started 17 years ago · 1 min read

3 participants
Leviathan73 Senior · 260 posts #1

hello friends sorry, as you turn off the function of anti spamm smileys?

else if($nos>2){
                    $chnick = getnick_uid($chat[0]);
                    echo "[b]Chat System:»[i]*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*[/i][/b]
";
                  }else{

😉

something else Fellow · 2,296 posts #2

change ($nos>2) to how many smileys u want allowed eg ($nos>500)

or just delete the whole section or blank it out using /* */ eg:

/*else if($nos>2){
                    $chnick = getnick_uid($chat[0]);
                    echo "[b]Chat System:»[i]*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*[/i][/b]
";
                  }*/else{
subzero Super moderator Fellow · 3,954 posts #3

Use this will not give error 😉

else if($nos>1000000){
                    $chnick = getnick_uid($chat[0]);
                    echo "[b]Chat System:»[i]*Hey! $chnick, U Can Only Use 2 Smilies Per Msg!*[/i][/b]
";
                  }else{

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... _______…

Leviathan73 Senior · 260 posts #4

thanks! I can give an additional help? messages disappear from the chat, instead must stay:p

function addtochat($uid, $rid)

{
  $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
if($bago[0]==0){
$msg = "*mat Enter the Room";
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");
}

  $timeto = 86400;

  $timenw = time();

  $timeout = $timenw - $timeto;

  $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");

  $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");

  if(!$res)

  {
    
    mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");

  }

}
something else Fellow · 2,296 posts #5

change to

function addtochat($uid, $rid)

{
  $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
if($bago[0]==0){
$msg = "*mat Enter the Room";
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");
}

  $timeto = 86400;

  $timenw = time();

  $timeout = $timenw - $timeto;

  //$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");

  $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");

  if(!$res)

  {
    
    mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");

  }

}

but you will need to sort out your numbers of posts per page 😛

something else Fellow · 2,296 posts #7

change if($counter<10)

to how many posts u want

if($counter<100000000000000000000000)

Leviathan73 Senior · 260 posts #9

nooo disappeared again messages in chat :'(

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