Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


stone
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Fri Jun 11, 2010 3:54 pm    Post subject: stone Reply with quote

you needed me?
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Jun 11, 2010 3:58 pm    Post subject: Reply with quote

Whenever someone posts *.image, like say "laughingelfman.jpg", I want a filter to automatically change it to an html like like this:
Entered text: hey look it's troll.gif
What post becomes: hey look it's <img src="files/troll.gif">

Any way to do this?
I tried with the plain old word censor doing *gif to <img src="files/troll.gif"> but it doesn't capture the whole thing.
Back to top
View user's profile Send private message
Moments
Grandmaster Cheater Supreme
Reputation: 17

Joined: 20 Mar 2008
Posts: 1196

PostPosted: Fri Jun 11, 2010 4:14 pm    Post subject: Reply with quote

Stone; is this for a forum, or what?
Back to top
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Fri Jun 11, 2010 4:15 pm    Post subject: Reply with quote

Regular expressions, check for a space followed by .* and then .gif/png/etc
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Jun 11, 2010 4:16 pm    Post subject: Reply with quote

Holland wrote:
Regular expressions, check for a space followed by .* and then .gif/png/etc

Um, how do I do that in phpbb2?
Back to top
View user's profile Send private message
majjikelkitty
Expert Cheater
Reputation: 139

Joined: 04 Jul 2006
Posts: 106

PostPosted: Fri Jun 11, 2010 4:21 pm    Post subject: Reply with quote

Sorrow wrote:
Stone; is this for a forum, or what?


wtf
Back to top
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Fri Jun 11, 2010 4:21 pm    Post subject: Reply with quote

Stone wrote:
Holland wrote:
Regular expressions, check for a space followed by .* and then .gif/png/etc
Um, how do I do that in phpbb2?
wat

Do it in PHP
Back to top
View user's profile Send private message
Moments
Grandmaster Cheater Supreme
Reputation: 17

Joined: 20 Mar 2008
Posts: 1196

PostPosted: Fri Jun 11, 2010 4:22 pm    Post subject: Reply with quote

MajjikelKitty wrote:
Sorrow wrote:
Stone; is this for a forum, or what?


wtf
what if it was for a chatbox or something ;.;
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Jun 11, 2010 6:07 pm    Post subject: Reply with quote

Holland wrote:
Stone wrote:
Holland wrote:
Regular expressions, check for a space followed by .* and then .gif/png/etc
Um, how do I do that in phpbb2?
wat

Do it in PHP

Like which file?
I have no idea what you're talking about.
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Fri Jun 11, 2010 6:16 pm    Post subject: Reply with quote

with greasemonkey should be kind of like this I guess..

(( recycling holland's script ))

Code:
var post = getElementsByClass("postbody");
for (x in post)
  {
   if(post[x].innerHTML.search("troll.jpg") != -1)
   {
       post[x].innerHTML.replace(/troll.jpg/g, <img src="files/troll.gif">)
   }
 
  }
Back to top
View user's profile Send private message MSN Messenger
Uzeil
Moderator
Reputation: 6

Joined: 21 Oct 2006
Posts: 2411

PostPosted: Fri Jun 11, 2010 6:20 pm    Post subject: Reply with quote

Greasemonkey = javascript not PHP

Not that I know what the fuck I'm talking about Very Happy

_________________


Mini Engine v3.0
Mipla v1.0

Reposted old threads out of the MS section.
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Fri Jun 11, 2010 6:23 pm    Post subject: Reply with quote

an if it is for a forum.
phpbb2

jut go to where you make the bbcodes and make a word filter that filters troll.jpg with <img src="files/troll.gif">

can do it from the admin menu
Back to top
View user's profile Send private message MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Jun 11, 2010 8:34 pm    Post subject: Reply with quote

gogodr wrote:
an if it is for a forum.
phpbb2

jut go to where you make the bbcodes and make a word filter that filters troll.jpg with <img src="files/troll.gif">

can do it from the admin menu

I'm modifying the actual forum, not making a skin.
And I don't want to make a word censor for each image, because there's a potentially unlimited amount of images.
Back to top
View user's profile Send private message
CrisNMP
Fun Supervisor
Reputation: 16

Joined: 11 Apr 2007
Posts: 4649

PostPosted: Fri Jun 11, 2010 8:38 pm    Post subject: Reply with quote

see how bbcodes are made in phpbb2 and use that example to change *.jpg to <img src..
_________________

BENBENBENBENBENBENBENBEN
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Jun 11, 2010 8:40 pm    Post subject: Reply with quote

CrisNMP wrote:
see how bbcodes are made in phpbb2 and use that example to change *.jpg to <img src..

Tried bbcode, the whole system requires []'s.
I don't see how or why, but that's how it is.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites