Refresh Spam!!

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

7 replies · 1,187 views · started 16 years ago · 1 min read

4 participants
Ponick Developer · 216 posts #1

After posting message in chat room if some one press F5 or refresh the browser , the chat room instantly became flooded with same text!! how can i stop this? someone help please

/* I don't know everything hehe */

Find me on facebook

khan Lead · 681 posts #2

Just call the last chat post and use like if ($msg!=$lastmsg){@mysql.......you can use your code here to show your chat post.;}

Ponick Developer · 216 posts #3

can you give me somthing details ? "$lastmsg" how can i select from db?

/* I don't know everything hehe */

Find me on facebook

khan Lead · 681 posts #6

1stly you should search here.here lots of lavalair mods. and most of them having no problem regarding this. you can take one from here and can solve your problem by own. if you cant then i will sort it out.

something else Fellow · 2,296 posts #7

Change your Sql To something like:

CREATE TABLE `ibwf_chat` (
  `id` int(99) NOT NULL auto_increment,
  `chatter` int(100) NOT NULL default '0',
  `who` int(100) NOT NULL default '0',
  `timesent` int(50) NOT NULL default '0',
  `msgtext` varchar(255) NOT NULL default '',
  `rid` int(99) NOT NULL default '0',
  `exposed` char(1) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `msgtext` (`msgtext`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
honkytonkman Senior · 252 posts #8

khan89 wrote: 1stly you should search here.here lots of lavalair mods. and most of them having no problem regarding this. you can take one from here and can solve your problem by own. if you cant then i will sort it out.

i don't think this kindof code could be here..i also needed. something like a antiflood for messages in chtrooms (in lava forums exist)

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

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