Just a case of defining output for the JSON and XML renderers...You just wrote these today, didn't you? I must say, very impressive and I'm looking forward to more of this type of stuff.
class XenForo_ViewPublic_Member_MiniStats extends XenForo_ViewPublic_Base
{
public function renderXml()
{
$document = new DOMDocument('1.0', 'utf-8');
$document->formatOutput = true;
$rootNode = $document->createElement('user');
$document->appendChild($rootNode);
foreach ($this->_params['user'] AS $key => $value)
{
$rootNode->appendChild($document->createElement($key, $value));
}
return $document->saveXML();
}
public function renderJson()
{
return $this->_params['user'];
}
}
Dynamic sizing in progress, need some thinking time now cause it's obviously buggy
Loving the last image Eriksrocks, I'm sure putting that on my signature as soon as it's released.
This is what I'm going to create with GD in a bit, but I have to do something else right now so it might not be done for a while.
sweet, it works now. it's made from 3 images (background,separator,end)
Loving the last image Eriksrocks, I'm sure putting that on my signature as soon as it's released.
Hehe slow down there, yeah I'll release the source code once it's done. I've even had an offer from somebody to host it so you all can use it.Can I have one of those?
I just split this stuff into a new thread.
Good grief that's a lot of code to do something very simple... How about just fetching http://xenforo.com/community/members/kier.2/mini-stats.xml ?
Are you using image tiles or are you drawing everything with GD? This is what I'm going to create with GD in a bit, but I have to do something else right now so it might not be done for a while.
Ok, I wont be a douche and not explain my theory on why mine doesnt work.
I think my privacy settings are blocking it.
Can't wait for Erik's last one, it looks so sexy.
We use essential cookies to make this site work, and optional cookies to enhance your experience.