The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

XML/PhP Widget Problem

Go down

XML/PhP Widget Problem Empty XML/PhP Widget Problem

Post by marvlis February 20th 2009, 6:28 pm

I use my forum for my world of warcraft guild, I wanted to include this code from raidbuilder.com in a widget, but it will not work. The code is:
<.div style="width: 250px;">
<?php
$xsltproc = new XsltProcessor();

$xsl = new DomDocument;
$xsl->load('http://www.raidbuilder.com/public/xsl/bosskills.xsl');
$xsltproc->importStylesheet($xsl);
$xml_doc = new DomDocument;
$xml_doc->load('http://www.raidbuilder.com/public/xmlfeeds/bosskills/bosskills-860.xml');
if ($html = $xsltproc->transformToXML($xml_doc)) {
echo $html;
}
else
{
trigger_error('XSL transformation failed.', E_USER_ERROR);
}
?>
<./div>
(I put the . in the brackets so you couls view the whole code.)
I wrote to the team at Raidbuilder.com and they replied with
"It looks to me like Forumotion don't support adding custom PHP to their pages. It is displaying the PHP code as if it is HTML rather than actually processing it. I'm afraid I'm not familiar with the Forumotion features and after having a quick look on their homepage I didn't see anything specifically about PHP. I did notice that it said you can create widgets and they state that they strive to be reactive to new features so it could well be worth contacting their support department or posting on their support forum.

If you do contact support feel free to get us involved (either through emails or on their forum) and we'll help as much as we can."

Any help you can provide would be greatly appreciated, thank you in advance.
avatar
marvlis
New Member

Posts : 3
Reputation : 0
Language : English

Back to top Go down

XML/PhP Widget Problem Empty Re: XML/PhP Widget Problem

Post by marvlis February 20th 2009, 6:39 pm

I view the page source on the raidbuilder.com page and came up with:

<.div style="width: 170px">
<.div class="bosskills-feed-container">
<.div class="heading">Boss Kill Progress<./div>
<.div>
<.ul class="tree">
<.li class="li-open" onclick=" if (this.className == 'li-open') {this.className = 'li-closed';} else {this.className = 'li-open';}; ">Obsidian Sanctum<span class="instanceprogress">1/1</span><.ul>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Sartharion<span class="killdate">(14 January 2009, 1 kill)</span><./li>
<./ul>
<./li>
<.li class="li-closed" onclick=" if (this.className == 'li-open') {this.className = 'li-closed';} else {this.className = 'li-open';}; ">Naxxramas<span class="instanceprogress">13/15</span><.ul>

<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldcross.gif);">Kel'Thuzad<span class="killdate">( -- )</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldcross.gif);">Sapphiron<span class="killdate">( -- )</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Four Horsemen Chest<span class="killdate">(15 February 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Gothik the Harvester<span class="killdate">(15 February 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Instructor Razuvious<span class="killdate">(13 February 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Loatheb<span class="killdate">(13 February 2009, 1 kill)</span><./li>

<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Heigan the Unclean<span class="killdate">(16 January 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Noth the Plaguebringer<span class="killdate">(16 January 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Maexxna<span class="killdate">(23 January 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Grand Widow Faerlina<span class="killdate">(16 January 2009, 1 kill)<./span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Anub'Rekhan<span class="killdate">(16 January 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Thaddius<span class="killdate">(18 February 2009, 1 kill)</span><./li>

<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Gluth<span class="killdate">(18 February 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Grobbulus<span class="killdate">(18 February 2009, 1 kill)</span><./li>
<.li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Patchwerk<span class="killdate">(16 January 2009, 1 kill)</span><./li>
<./ul>
<./li>
<./ul>
<./div>
<.div class="footer">Powered by <a href="http://www.raidbuilder.com" target="child">Raidbuilder</a><./div>
<./div>
It looks like
<div style="width: 250px">
<div class="bosskills-feed-container">
<div class="heading">Boss Kill Progress</div>
<div>
<ul class="tree">
<li class="li-open" onclick=" if (this.className == 'li-open') {this.className = 'li-closed';} else {this.className = 'li-open';}; ">Obsidian Sanctum<span class="instanceprogress">1/1</span><ul>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Sartharion<span class="killdate">(14 January 2009, 1 kill)</span></li>
</ul>
</li>
<li class="li-closed" onclick=" if (this.className == 'li-open') {this.className = 'li-closed';} else {this.className = 'li-open';}; ">Naxxramas<span class="instanceprogress">13/15</span><ul>

<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldcross.gif);">Kel'Thuzad<span class="killdate">( -- )</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldcross.gif);">Sapphiron<span class="killdate">( -- )</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Four Horsemen Chest<span class="killdate">(15 February 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Gothik the Harvester<span class="killdate">(15 February 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Instructor Razuvious<span class="killdate">(13 February 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Loatheb<span class="killdate">(13 February 2009, 1 kill)</span></li>

<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Heigan the Unclean<span class="killdate">(16 January 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Noth the Plaguebringer<span class="killdate">(16 January 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Maexxna<span class="killdate">(23 January 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Grand Widow Faerlina<span class="killdate">(16 January 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Anub'Rekhan<span class="killdate">(16 January 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Thaddius<span class="killdate">(18 February 2009, 1 kill)</span></li>

<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Gluth<span class="killdate">(18 February 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Grobbulus<span class="killdate">(18 February 2009, 1 kill)</span></li>
<li class="li-bullet" style="background-image: url(http://www.raidbuilder.com/public/images/icons/shieldtick.gif);">Patchwerk<span class="killdate">(16 January 2009, 1 kill)</span></li>
</ul>
</li>
</ul>
</div>
<div class="footer">Powered by <a href="http://www.raidbuilder.com" target="child">Raidbuilder</a></div>
</div>

</div>
</div>


I can't find an example of how it should look, but what is posted above doesn't look the way it should. There should be 1 shield (with a check or an X) denoting if the boss was killed.
avatar
marvlis
New Member

Posts : 3
Reputation : 0
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum