[PHP/MYSQL] TMFDataFetcher v1.3b

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

Post Reply
User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.2

Post by f*ckfish » 29 Dec 2008 15:47

Add this line in the <head> section of the document:

Code: Select all

<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
inactive, sorry

CRMax
sunday driver
sunday driver
Posts: 55
Joined: 27 Jan 2008 20:04
Owned TM-games: TMU, TMUF

Re: [PHP/MYSQL] TMFDataFetcher v1.2

Post by CRMax » 29 Dec 2008 15:49

Thanks, I was so stupid to remove it...
Sorry for my bad English :D
Clanleader of the world famous 【ฯЯ】 clan!
Visit us at: http://intense.racing.free.fr/!

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3

Post by f*ckfish » 29 Dec 2008 17:10

New version 1.3 is out, be sure to read the update notes in the first post =)
inactive, sorry

CRMax
sunday driver
sunday driver
Posts: 55
Joined: 27 Jan 2008 20:04
Owned TM-games: TMU, TMUF

Re: [PHP/MYSQL] TMFDataFetcher v1.3

Post by CRMax » 30 Dec 2008 08:24

Thank you Fufi for the update!
Would you try to use <?php in every single PHP file you make...
Otherwise there could be some people with problems.

Max
Sorry for my bad English :D
Clanleader of the world famous 【ฯЯ】 clan!
Visit us at: http://intense.racing.free.fr/!

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by f*ckfish » 30 Dec 2008 10:20

:oops: Every d*mn time...

1.3b shouldn't have shorttags anymore, thanks for the info. :thumbsup:
inactive, sorry

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by w1lla » 30 Dec 2008 10:29

F*ckfish if clans have an ip adress you will see the link first of the site where its hosted and then the original clan link. That doesnt work

To replace add this line into colorparser or make it an else if command.

Code: Select all

	function fixWWWLinks(){
		foreach ($this->links as $key => $value){
			$value = trim($value);
			if (substr(strtolower($value), 16, 0) == ''){
				$value = 'http://'.$value;
				$this->links[$key] = $value;
			}
		}
	}

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by f*ckfish » 30 Dec 2008 15:54

w1lla wrote:F*ckfish if clans have an ip adress you will see the link first of the site where its hosted and then the original clan link. That doesnt work

To replace add this line into colorparser or make it an else if command.

Code: Select all

	function fixWWWLinks(){
		foreach ($this->links as $key => $value){
			$value = trim($value);
			if (substr(strtolower($value), 16, 0) == ''){
				$value = 'http://'.$value;
				$this->links[$key] = $value;
			}
		}
	}
Let's discuss that in the ColorParser thread =)
inactive, sorry

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Ant » 20 Jan 2009 01:52

are you able to make this work with the xaseco stats v1.9c (download from my site) because then the stats will be completely sorted for tmf I reckon.

I only ask cos there is an issue with statsbox 4 it reads the rank info and all that from a tmn login rather than from tmf and if this can sort that out - that would be perfect !! :mrgreen:

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by f*ckfish » 22 Jan 2009 19:05

The website stats are none of my business, I also think it wouldn't be so good to totally rewrite them to use the TMFDataFetcher since you need a stats server account to use it and this would make the website stats unaccessable for a lot of users. Who is maintaining the website stats at the moment? Maybe he/she could build in the TMF support including a switch where you can choose if you have a stats server account or not.
inactive, sorry

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Ant » 22 Jan 2009 23:05

ok thats fair enough, all I really need I suppose, is the url to access the ladder section in TMF so I can edit my TMNDataFetcher.

If thats possible for you to do that then that would be quality :mrgreen:

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Knutselmaaster » 22 Jan 2009 23:48

you need to ask alinoa for acces as stated in the first post.
As far as i know there is no simple url (http) acces like there was in tnm.

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by f*ckfish » 23 Jan 2009 12:24

Knutselmaaster wrote:you need to ask alinoa for acces as stated in the first post.
As far as i know there is no simple url (http) acces like there was in tnm.
That's correct =) It's https now.
Tony_Bad_Mann wrote:ok thats fair enough, all I really need I suppose, is the url to access the ladder section in TMF so I can edit my TMNDataFetcher.
If thats possible for you to do that then that would be quality :mrgreen:
Nope TMN and TMF data fetching are two completely different things and a simple URL change wouldn't be enough. It's nearly impossible to rewrite the TMNDataFetcher to work with TMF without deleting all lines and starting from scratch or just copy-and-pasting the TMFDataFetcher source :D

If you want to use the TMFDataFetcher with the Website stats, they have to be rewritten to work with this tool, not the other way round, since that is impossible.
inactive, sorry

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Ant » 24 Jan 2009 19:51

ok man so I guess what your sayin is that its gonna be impossible for the statsbox4 banner in the XAseco Stats 1.9c to show any info from tmf. At least all the other banners are fine tho - but thats cos they are server stats and not ladder stats.

Cheers for the info anyway :thumbsup:

User avatar
Knutselmaaster
swift roadking
swift roadking
Posts: 692
Joined: 16 Feb 2007 01:40
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Location: Between DisneyLand and Paris
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by Knutselmaaster » 24 Jan 2009 20:05

No it's not going to be impossible, but you will need to build a new statsbar from scratch with help of the datafetcher Fufi made and an account at the Nadeo Masterserver that you need to request from Alinoa.
There is no way of easily adapting a system made for the TMN ladder to work with the TMNF (and TMUF) ladder.

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [PHP/MYSQL] TMFDataFetcher v1.3b

Post by f*ckfish » 24 Jan 2009 20:20

Knutselmaaster wrote:No it's not going to be impossible, but you will need to build a new statsbar from scratch with help of the datafetcher Fufi made and an account at the Nadeo Masterserver that you need to request from Alinoa.
There is no way of easily adapting a system made for the TMN ladder to work with the TMNF (and TMUF) ladder.
Perfectly said, mate =)
inactive, sorry

Post Reply