I can start up classes from Gui so it looks ok but as soon as I try to use StyleParser it fails. So my question is really how to get StyleParser working.If you already use the Maniaplanet Web Services SDK, copy the libraries/ManiaLib folder next to your existing libraries/Maniaplanet folder. Make sure your SDK is up-to-date (current version is 1.2, released January 2012)
StyleParser problems
Moderator: NADEO
StyleParser problems
Hi, I'm trying to get StyleParser to work for a webpage to parse nicknames and such correctly coloured. I have webservices working and as wiki explained about ManiaLib, I installed the Manialib folder properly I guess
Re: StyleParser problems
well showing the error would help sorting what you're doing wrong
example:
example:
Code: Select all
require_once __DIR__.'/manialib/libraries/autoload.php';
$styleParser = new \ManiaLib\Utils\StyleParser();
$styleParser->toHtml($server->serverName)
- w1lla
- Posts: 2396
- Joined: 15 Jun 2010, 11:09
- Manialink: maniaplanetblog
- Location: Netherlands
- Contact:
Re: StyleParser problems
or
Code: Select all
StyleParser::toHtml
TM² Info
SM Info
QM Info
OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
SM Info
QM Info
OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Re: StyleParser problems
Yeah I know. Just gotta find where the hell the page decides to turn all error reporting off. :/
I've tried your way above as it is the logical way but it was a no go for StyleParser.
--EDIT--
Ok so error repporting on and nothing att all comes out.
But somehow I can feed strings into toHtml now (yesterday it refused the same code )
Strange... Maybe I was just tired and stupid yesterday.
--EDIT 2--
Seems it works just fine now. No idea why it wouldn't yesterday. Well best way to sort something out is to ask for help I guess.
I've tried your way above as it is the logical way but it was a no go for StyleParser.
--EDIT--
Ok so error repporting on and nothing att all comes out.
But somehow I can feed strings into toHtml now (yesterday it refused the same code )
Strange... Maybe I was just tired and stupid yesterday.
--EDIT 2--
Seems it works just fine now. No idea why it wouldn't yesterday. Well best way to sort something out is to ask for help I guess.
Who is online
Users browsing this forum: No registered users and 1 guest