Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2009, 11:05 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default RSS stuff help needed

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
Reply With Quote
  #2  
Old 01-16-2009, 11:16 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this kinda what you are looking for? [HowTo] Display your latest threads on an external page using an RSS2 feed
Reply With Quote
  #3  
Old 01-17-2009, 12:10 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 01-17-2009, 03:11 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can add it inline in here:
PHP 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>"
You notice that they use the definition list html to display it. You could add css for that in the Main CSS - probably give the div that it is all in an id and then you can define "#yourid dt" and "#yourid dt" in there, then you wouldn't need to do it inline. Or, you could not use the definition list to output it, but instead use a table or whatever.
Reply With Quote
  #5  
Old 01-17-2009, 03:33 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>";
Produces an error over the original code below.

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>";
Am i so dense I am missisng something painfully obvious lol
Reply With Quote
  #6  
Old 01-17-2009, 03:41 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>";
You probably need to put the color inside the <a> tag. Also, don't use <p>, use <span>.

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>";
Reply With Quote
  #7  
Old 01-17-2009, 04:56 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>";
I am struggling to style the description.

Appreciate your help again
Reply With Quote
  #8  
Old 01-17-2009, 05:00 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 01-17-2009, 05:05 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
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

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.
Reply With Quote
  #10  
Old 01-17-2009, 05:19 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:16 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.04796 seconds
  • Memory Usage 2,275KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete