The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Okies, I have never ever used RSS before, have no idea how and what you use it for, but I am trying to get my head around it.
I had asked this question before, in another format, but hoping someone can help. Example: rss feed on our site is http://www.yobromofo.com/forum/exter...SS2&forumid=40 Now as far as i know, ( noob ) this is rss thats already parsed, but where do i get the xml for this particular feed, so that I can integrate it on a 2nd website, and display the feed within that websites pages. Ste |
#2
|
||||
|
||||
![]()
Is this kinda what you are looking for? [HowTo] Display your latest threads on an external page using an RSS2 feed
|
#3
|
||||
|
||||
![]()
Lynne I hope so !
Will take a gander thankyou :up: --------------- Added [DATE]1232159146[/DATE] at [TIME]1232159146[/TIME] --------------- works a treat thanks !! --------------- Added [DATE]1232159234[/DATE] at [TIME]1232159234[/TIME] --------------- is there a way to indicate the last posters name ? within the xml --------------- Added [DATE]1232168071[/DATE] at [TIME]1232168071[/TIME] --------------- Ok now I need to apply CSS. Having looked around, it appears inline css is the go. How is this achieved using VB.com version of parsing rss feed. How do we apply style attributes to the rss elements. Ste |
#4
|
||||
|
||||
![]()
You can add it inline in here:
PHP Code:
|
#5
|
||||
|
||||
![]()
OK.
But. Code:
$rss2_output .= "<dt><strong><p style="color: sienna; margin-left: 20px"> <a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></p></strong> - " . htmlspecialchars(trim($date)) . " by <em>" . htmlspecialchars(trim($author)) . "</em></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>"; Code:
$rss2_output .= "<dt><strong> <a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong> - " . htmlspecialchars(trim($date)) . " by <em>" . htmlspecialchars(trim($author)) . "</em></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>"; |
#6
|
||||
|
||||
![]()
It's because you aren't escaping your quotes. - \" instead of " (when you want to have the quote there). So:
HTML Code:
$rss2_output .= "<dt><strong><p style=\"color: sienna; margin-left: 20px\"> <a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></p></strong> - " . htmlspecialchars(trim($date)) . " by <em>" . htmlspecialchars(trim($author)) . "</em></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>"; HTML Code:
$rss2_output .= "<dt><strong> <a href='" . trim($link) . "'><span style=\"color: sienna; margin-left: 20px\">" . htmlspecialchars(trim($title)) . "</span></a></strong> - " . htmlspecialchars(trim($date)) . " by <em>" . htmlspecialchars(trim($author)) . "</em></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>"; |
#7
|
||||
|
||||
![]()
Thanks Lynne.
I am slowly getting there, its all new to me. Albeit I have done css , this is a bit weird lol. Ok now I have: Code:
$rss2_output .= "<dt><strong> <a href='" . trim($link) . "'><span style=\"font-family: sergo UI,sans-serif;font-size:16px;text-decoration: underline;color: #73a202; margin-left: 20px\">" . htmlspecialchars(trim($title)) . "</span></a></strong> - <span style=\"font-family: sergo UI,sans-serif;font-size:12px;color: #92b5e7\">" . htmlspecialchars(trim($date)) . "</span> <span style=\"font-family: sergo UI,sans-serif;font-size:14px;color: #bbbbbb\">" . htmlspecialchars(trim($author)) . "</span></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>"; Appreciate your help again ![]() |
#8
|
||||
|
||||
![]()
There are a few external sites and even an rss2html tool that will give you a little easier control of how to display the feed, maybe a little easier or ideas for something different
http://www.rss-specifications.com/display-rss.htm http://jade.mcli.dist.maricopa.edu/f...ex.php?s=build http://rssxpress.ukoln.ac.uk/lite/include/?t=1 http://www.rss-to-javascript.com/p/138.html http://www.rss2html.com/step-1.php |
#9
|
||||
|
||||
![]() Quote:
Thanks Mate. I had tried rss2html, wasnt that keep. Magpierss i couldnt get my head around. Will look at the others tho, much appreciated. The vb rss works fine, for external pages. Just the styling is a bit arse about face lol. My one concern is , is the page ( on the external site ) spiderable by search engine robots, or is the feed treated similarly to iframes, and ignored as non page content ? Any suggestions please. |
#10
|
||||
|
||||
![]()
It should be spiderable, if you use view source you should be able to get an idea of what it out puts, most output html that gets generated from using javascript
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|