PDA

View Full Version : Custom external.php output not XHTML valid...?


thuffner
06-01-2007, 05:17 PM
Hey guys. Kind of a weird question I have but am hoping someone might know the answer.

I have wanted to display the latest posts from my message board on my main index for some time, and have just recently found out how to implement it.

Using magpie's RSS reader and some manipulation of vB's external.php output, I have outputted the latest board posts to my index page, seen here in the upper left hand corner under 'Message Board':

http://www.bondmovies.com/

So the output is working, however, it is not parsing the ampersands in each thread's URL as XHTML compliant (here is the validation error page: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bondmovies.com%2F ).

Here is the URL of the RSS feed I input into magpie:
http://www.bondmovies.com/board/external.php?forumids=9,5,36,6,37,34,15,35,42,30,3 8,32,39,33,40,21,31,48,23,22,43,41

Any ideas how to make the URL's XHTML compliant?

Thanks! :)

Dismounted
06-02-2007, 07:43 AM
Find all instances of this in external.php:
$xml->add_tag('link', $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]&goto=newpost", array(), false, true);
Replace With:
$xml->add_tag('link', $vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]&goto=newpost", array(), false, true);
Submitted to vBulletin Bug Tracker

thuffner
06-04-2007, 05:50 PM
Hmm...did just that and am still getting the errors...

Dismounted
06-05-2007, 09:06 AM
It's validating now....