vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Custom external.php output not XHTML valid...? (https://vborg.vbsupport.ru/showthread.php?t=148682)

thuffner 06-01-2007 05:17 PM

Custom external.php output not XHTML valid...?
 
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=ht...dmovies.com%2F ).

Here is the URL of the RSS feed I input into magpie:
http://www.bondmovies.com/board/exte...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:
PHP Code:

$xml->add_tag('link'$vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]&goto=newpost", array(), falsetrue); 

Replace With:
PHP Code:

$xml->add_tag('link'$vbulletin->options['bburl'] . "/showthread.php?t=$thread[threadid]&goto=newpost", array(), falsetrue); 

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....


All times are GMT. The time now is 02:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01933 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete