| View previous topic :: View next topic |
| Author |
Message |
potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Sat Mar 02, 2013 4:38 pm Post subject: Can a Javascript coder finish this for me please. |
|
|
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 |
|
 |
HannibalLecter Advanced Cheater
Reputation: -1
Joined: 28 Feb 2013 Posts: 78 Location: Hateville, USA
|
Posted: Sat Mar 02, 2013 4:44 pm Post subject: |
|
|
I am honest;y confused as to why people do not think Im real.
|
|
| Back to top |
|
 |
HitIer How do I cheat?
Reputation: 22
Joined: 09 Feb 2013 Posts: 0 Location: Location Location Location
|
Posted: Sat Mar 02, 2013 4:50 pm Post subject: |
|
|
loser! I don't know shit about programming but I have FRIENDS.
ME 1
Coders 0
|
|
| Back to top |
|
 |
potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Sat Mar 02, 2013 4:53 pm Post subject: |
|
|
^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends.
|
|
| Back to top |
|
 |
HitIer How do I cheat?
Reputation: 22
Joined: 09 Feb 2013 Posts: 0 Location: Location Location Location
|
Posted: Sat Mar 02, 2013 4:55 pm Post subject: |
|
|
| potaters wrote: | ^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends. |
not on CEF. IRL
|
|
| Back to top |
|
 |
HannibalLecter Advanced Cheater
Reputation: -1
Joined: 28 Feb 2013 Posts: 78 Location: Hateville, USA
|
Posted: Sat Mar 02, 2013 4:58 pm Post subject: |
|
|
| 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 |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sat Mar 02, 2013 4:59 pm Post subject: |
|
|
| igottadigbickandwatchpom wrote: | | potaters wrote: | ^ The fuck.
Who are they.
But apparently if you can program, you have 0 friends. |
not on CEF. IRL |
0 stupid and ignorant fake friends if that is what you mean.
|
|
| Back to top |
|
 |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Sat Mar 02, 2013 5:02 pm Post subject: |
|
|
| 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 |
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 |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Sat Mar 02, 2013 5:12 pm Post subject: |
|
|
| 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 |
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 |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sat Mar 02, 2013 5:13 pm Post subject: |
|
|
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 |
|
 |
teeigeryuh Master Cheater
Reputation: 25
Joined: 13 Oct 2008 Posts: 261 Location: The netherlands
|
Posted: Sat Mar 02, 2013 5:14 pm Post subject: |
|
|
| 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 |
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 |
|
 |
HitIer How do I cheat?
Reputation: 22
Joined: 09 Feb 2013 Posts: 0 Location: Location Location Location
|
Posted: Sat Mar 02, 2013 5:14 pm Post subject: |
|
|
( I gotta friend named Mary Jane and she make me feel strange (
|
|
| Back to top |
|
 |
potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Sat Mar 02, 2013 5:52 pm Post subject: |
|
|
| 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 |
|
 |
gogodr I post too much
Reputation: 125
Joined: 19 Dec 2006 Posts: 2041
|
Posted: Sat Mar 02, 2013 6:03 pm Post subject: |
|
|
| oh you want to get the thread IDs of the listing with JS ?
|
|
| Back to top |
|
 |
potaters Grandmaster Cheater
Reputation: 72
Joined: 13 Apr 2009 Posts: 969
|
Posted: Sat Mar 02, 2013 6:16 pm Post subject: |
|
|
| 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 |
|
 |
|