The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do I make a RSS to PHP file
I would like to make a separate .php file for my forum that will display the latest news on the homepage using RSS, and use the IFRAME tags to place it on my site, I was wondering if any one could point me in the right direction to a tutorial, advice, or exactly how to do it.
Example of what I'm trying to accomplish :http://www.boxden.com/tracksandalbums.php if some one could point me in the right direction that would be great, thank you very much |
#2
|
||||
|
||||
See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed [HowTo] Display your latest threads on an external page using an XML feed [HowTo] Display your latest threads on an external page using an RSS feed As for iframe tags, I suppose just modify the javascript to do it. |
#3
|
|||
|
|||
How do you actually format the RSS into a form that suits your webpage though?
I have got the RSS to post, but I want to put it in a table all one one line, add images etc. |
#4
|
||||
|
||||
You have to modify the javascript to output it how you want. Right now, you get a bunch of lines defined by this:
HTML Code:
$rss_output .= "<dt><strong><a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>"; |
#5
|
|||
|
|||
Thanks Lynne.
Is there a list of the full array that external is able to use? Things like how many times a thread has been viewed etc, basically all the thread information I can get inside vb. I'm looking for things like how many times its been viewed, the forum the thread is in, when was the last post, what time was the last post. I've seen forums have external sites with the last post showing as "yesterday" etc |
#6
|
||||
|
||||
It's in the external.php page. There are not a lot - I think the five (I think?) used in the tutorial are it.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|