vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   external.php - xml - lastpost - INCLUDE A POST PREVIEW (https://vborg.vbsupport.ru/showthread.php?t=219270)

BlueChipEarth 07-23-2009 02:47 PM

external.php - xml - lastpost - INCLUDE A POST PREVIEW
 
How can I alter external.php to return XML, last post in the thread but ALSO include a short preview of the post, just like the RSS2 returns?

in other words, I want to go to http://www.boatpittsburgh.com/forums...&lastpost=true

But instead of the stupid forum description, I want the description to include a post preview.

I can't seem to get this code to do ANYTHING different than what it's doing. I went through and commented out all mentions of the word "description" and still it prints out the description tag with all the information in it. How is this even logically possible, if I've commented out all the code regarding description!?

I've tried everything, the next step is going to be walking out into the street and start punching people in the face, and see if that works.

Who wants to prevent some violence in the streets of Pittsburgh today?

Please help me, I'm at the end of my rope.

Zachery 07-23-2009 03:43 PM

Code:

<?xml version="1.0" encoding="ISO-8859-1" ?>
- <source>
 <url>http://www.boatpittsburgh.com/forums/</url>

- <thread id="385">
 <title>Homestead Volunteer Fire Company Help</title>

 <author>DiveBoat</author>

- <++++this>
- <![CDATA[ Good Idea Chuck,Here is the link for Homestead Volunteer Fire Company - PayPal Donations Page.  http://www.homesteadvfd.com/index.php  If you are willing to help the Volunteers with a money contribution going towards River Rescue Equipment, please visit our website.  Also, if you have new or used equipment that you wish to help us with, we are very thankful to you.Be assured that your Tax Deductable Contribution will help us during River Rescue Operations on the Mon & Yough Rivers, and we hope to get underway soon. ]]>
 </++++this>

I see the preview in the xml code


All times are GMT. The time now is 04:56 PM.

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.00916 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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