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 


Can a Javascript coder finish this for me please.
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
potaters
Grandmaster Cheater
Reputation: 72

Joined: 13 Apr 2009
Posts: 969

PostPosted: Sat Mar 02, 2013 4:38 pm    Post subject: Can a Javascript coder finish this for me please. Reply with quote

It's basically a thread title readername checker.
My idea for it is with some type of addon you can easily check the thread title without going to another site to see if its real and just replace your username with [ readername ]. Just upload this PHP file to your server and access like:
Code:
http://domain.tld/readername.php?t=563029

You also need this file in the same directory:
http://sourceforge.net/projects/simplehtmldom/files/simple_html_dom.php/download

Thanks for any help. Returns Hitler if it is and real if it's...real. Change those to whatever, I can make it easier if you need as well.
Code:
<?php

require_once('simple_html_dom.php');

if (is_numeric($_GET['t']))
{
   $thread = trim($_GET['t']);
   $html = file_get_html('http://forum.cheatengine.org/viewtopic.php?t=' . $thread);
   
   foreach ($html->find('a[class=maintitle]') as $string)
   {
      if (stristr($string->innertext, 'Hitler') !== FALSE)
      {
         echo '[readername]';
      }
      else
      {
         echo 'real';
      }
   }
}
else
{
   echo 'Improper formatting of thread number.';
}


Last edited by potaters on Sat Mar 02, 2013 5:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
HannibalLecter
Advanced Cheater
Reputation: -1

Joined: 28 Feb 2013
Posts: 78
Location: Hateville, USA

PostPosted: Sat Mar 02, 2013 4:44 pm    Post subject: Reply with quote

I am honest;y confused as to why people do not think Im real. Confused
Back to top
View user's profile Send private message
HitIer
How do I cheat?
Reputation: 22

Joined: 09 Feb 2013
Posts: 0
Location: Location Location Location

PostPosted: Sat Mar 02, 2013 4:50 pm    Post subject: Reply with quote

loser! I don't know shit about programming but I have FRIENDS.

ME 1
Coders 0
Back to top
View user's profile Send private message MSN Messenger
potaters
Grandmaster Cheater
Reputation: 72

Joined: 13 Apr 2009
Posts: 969

PostPosted: Sat Mar 02, 2013 4:53 pm    Post subject: Reply with quote

^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.
Back to top
View user's profile Send private message
HitIer
How do I cheat?
Reputation: 22

Joined: 09 Feb 2013
Posts: 0
Location: Location Location Location

PostPosted: Sat Mar 02, 2013 4:55 pm    Post subject: Reply with quote

potaters wrote:
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.


not on CEF. IRL
Back to top
View user's profile Send private message MSN Messenger
HannibalLecter
Advanced Cheater
Reputation: -1

Joined: 28 Feb 2013
Posts: 78
Location: Hateville, USA

PostPosted: Sat Mar 02, 2013 4:58 pm    Post subject: Reply with quote

igottadigbickandwatchpom wrote:
potaters wrote:
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.


not on CEF. IRL


point
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Sat Mar 02, 2013 4:59 pm    Post subject: Reply with quote

igottadigbickandwatchpom wrote:
potaters wrote:
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.


not on CEF. IRL

Rolling Eyes
0 stupid and ignorant fake friends if that is what you mean.
Back to top
View user's profile Send private message MSN Messenger
teeigeryuh
Master Cheater
Reputation: 25

Joined: 13 Oct 2008
Posts: 261
Location: The netherlands

PostPosted: Sat Mar 02, 2013 5:02 pm    Post subject: Reply with quote

gogodr wrote:
igottadigbickandwatchpom wrote:
potaters wrote:
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.


not on CEF. IRL

Rolling Eyes
0 stupid and ignorant fake friends if that is what you mean.

sakura-chan and naruto-kun are not a fake friends

they love me just the way i am

_________________

ლ(╹◡╹ლ)
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sat Mar 02, 2013 5:12 pm    Post subject: Reply with quote

prince.blue wrote:
gogodr wrote:
igottadigbickandwatchpom wrote:
potaters wrote:
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.


not on CEF. IRL

Rolling Eyes
0 stupid and ignorant fake friends if that is what you mean.

sakura-chan and naruto-kun are not a fake friends

they love me just the way i am

sasuke-kun pls hold me tight
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Sat Mar 02, 2013 5:13 pm    Post subject: Reply with quote

back on topic...
I tried with Jquerry .Get function but I'm not sure it will see the website logged off.
like run his script while browsing RS
$.get("http://forum.cheatengine.org/viewforum.php?f=16", function(data) {
// search the titles here in the dom.
});
Back to top
View user's profile Send private message MSN Messenger
teeigeryuh
Master Cheater
Reputation: 25

Joined: 13 Oct 2008
Posts: 261
Location: The netherlands

PostPosted: Sat Mar 02, 2013 5:14 pm    Post subject: Reply with quote

Cryoma wrote:
prince.blue wrote:
gogodr wrote:
igottadigbickandwatchpom wrote:
potaters wrote:
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.


not on CEF. IRL

Rolling Eyes
0 stupid and ignorant fake friends if that is what you mean.

sakura-chan and naruto-kun are not a fake friends

they love me just the way i am

sasuke-kun pls hold me tight
plz be gentle
_________________

ლ(╹◡╹ლ)
Back to top
View user's profile Send private message
HitIer
How do I cheat?
Reputation: 22

Joined: 09 Feb 2013
Posts: 0
Location: Location Location Location

PostPosted: Sat Mar 02, 2013 5:14 pm    Post subject: Reply with quote

(Cool I gotta friend named Mary Jane and she make me feel strange (Cool
Back to top
View user's profile Send private message MSN Messenger
potaters
Grandmaster Cheater
Reputation: 72

Joined: 13 Apr 2009
Posts: 969

PostPosted: Sat Mar 02, 2013 5:52 pm    Post subject: Reply with quote

gogodr wrote:
back on topic...
I tried with Jquerry .Get function but I'm not sure it will see the website logged off.
like run his script while browsing RS
$.get("http://forum.cheatengine.org/viewforum.php?f=16", function(data) {
// search the titles here in the dom.
});

Gogodr, I think you misunderstood.
I want you to use my PHP script, upload it to your host and use the JS off that (domain.tld/readername.php?t=THREADID as mentioned in the OP). Of course the JS would see it as your username.
Simply get the ?t= variable and pass it to the script and get the result, append the page with the Hitler if it is.
Thanks.



p.s. at the other guy, I do have friends irl, many. Being a programmer does not mean, in any way shape or form you have to be anti social.
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Sat Mar 02, 2013 6:03 pm    Post subject: Reply with quote

oh you want to get the thread IDs of the listing with JS ?
Back to top
View user's profile Send private message MSN Messenger
potaters
Grandmaster Cheater
Reputation: 72

Joined: 13 Apr 2009
Posts: 969

PostPosted: Sat Mar 02, 2013 6:16 pm    Post subject: Reply with quote

gogodr wrote:
oh you want to get the thread IDs of the listing with JS ?

What....
All I want is when a person clicks a thread the addon/JS calls the URL where the PHP file is and passes the thread to it via a GET variable named 't', identical to the one in the thread the user has clicked, if the script detects it is readername it appends the thread title with [ readername ]. Else, do nothing.
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