Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 11-26-2005, 06:51 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Inserting RSS into a page

How would I go about inserting the v7n forums RSS into the v7n home page?

I just want like the titles of a few recent posts to show up there.
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #2 (permalink)  
Old 11-26-2005, 07:01 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
What's the location of the rss feed?
 
Reply With Quote
  #3 (permalink)  
Old 11-26-2005, 07:13 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
The feeds are currently provided in two formats, RSS and RSS v2. The differences are as follows:

RSS 0.91 - This feed is based on a standard written by netscape and provides a link and the title of the thread.
http://www.v7n.com/forums/external.php?type=rss
RSS 2.0 - This feed contains title, author, date and the contents of the first post of the thread.
http://www.v7n.com/forums/external.php?type=rss2
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #4 (permalink)  
Old 11-26-2005, 07:13 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Copied and pasted from the FAQ.
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #5 (permalink)  
Old 11-26-2005, 07:21 PM
Junior Member
 
Join Date: 11-25-05
Posts: 6
iTrader: 0 / 0%
It's probably a hack you can find on vBulletin.org. Or you can use JavaScript.

The stuff on vBulletin.org is probably easier to use, though.
 
Reply With Quote
  #6 (permalink)  
Old 11-26-2005, 07:22 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
JS - put them into http://m3lt.getmyip.com/php/rss/index.php
of course, thats a straight up parser, and can be designed into whatever color or however many..
 
Reply With Quote
  #7 (permalink)  
Old 11-26-2005, 07:57 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
JS, want me to get you that code?
 
Reply With Quote
  #8 (permalink)  
Old 11-26-2005, 07:59 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Damn you Spear. I want something like this:

Code:
<simple code//rss.feed. rss.location=http://www.v7n.com/forums/external.php?type=rss end.simple code>
If I were a coder, everything would be that simple.
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #9 (permalink)  
Old 11-26-2005, 08:01 PM
Junior Member
 
Join Date: 11-25-05
Posts: 6
iTrader: 0 / 0%
What version of vBulletin is this?
 
Reply With Quote
  #10 (permalink)  
Old 11-26-2005, 08:02 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
Yeah, I know, what do you want it to display like, I will change the code then send it,

you will just do like
Code:
<?php $url = "http://url/to/rssfeed"; echo getRSSFeed($url); function getRSSFeed($url) { ... } ?>
but I will go ahead and make it in format you want, so you dont have to mess with it, i.e. simple for you
 
Reply With Quote
  #11 (permalink)  
Old 11-26-2005, 08:04 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Quote:
Originally Posted by surfer-talk
What version of vBulletin is this?

vBulletin 3.0.8
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #12 (permalink)  
Old 11-26-2005, 08:06 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Quote:
Originally Posted by theSpear
Yeah, I know, what do you want it to display like, I will change the code then send it,

you will just do like
Code:
<?php $url = "http://url/to/rssfeed"; echo getRSSFeed($url); function getRSSFeed($url) { ... } ?>
but I will go ahead and make it in format you want, so you dont have to mess with it, i.e. simple for you
I want to use RSS 0.91 because the other version includes too much info.

I want to put it on the v7n home page, and I'd think the css would take care of the font color and size, no?
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #13 (permalink)  
Old 11-26-2005, 08:11 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
yeah, but i mean like what info from thread

Option 1
Quote:
Threadname
Option 2
Quote:
Threadname - Poster

or what
 
Reply With Quote
  #14 (permalink)  
Old 11-26-2005, 08:14 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Title of thread, author, and link.
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #15 (permalink)  
Old 11-26-2005, 08:36 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
K, JS, go to same url -> http://m3lt.getmyip.com/php/rss/ and put in rss2.0 (other version doesnt have author) and tell me what you think, and number you want to display.


EDIT: Want me to do one of those nifty scripts where it adds ... to the end if length of topic is too long? If so, at how many characters?

Last edited by kwvarga; 11-26-2005 at 08:41 PM.
 
Reply With Quote
  #16 (permalink)  
Old 11-26-2005, 08:41 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
I would rather just display 4 thread titles.

Do-able?
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #17 (permalink)  
Old 11-26-2005, 08:48 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
Rgr, what about the limiting length.
 
Reply With Quote
  #18 (permalink)  
Old 11-26-2005, 08:57 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
35 characters?
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
  #19 (permalink)  
Old 11-26-2005, 09:04 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
Aight, how is http://m3lt.getmyip.com/php/rss/getrss.php

can make each one in different divs if u want. right now it just does title <br>\r\n title.. etc..

*no longer have ability to send in own, hardcoded that in now
 
Reply With Quote
  #20 (permalink)  
Old 11-26-2005, 09:04 PM
John Scott's Avatar
Individualist
 
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
iTrader: 3 / 100%
Is it possible to limit the forums from whence the posts are taken? So, for example, posts from the Offers forum don't show up in the RSS feed?
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting a .wav ball420 Coding Forum 4 03-03-2007 06:17 AM
Inserting some JS for a Mailer into my page schweermo Coding Forum 0 03-01-2007 12:19 PM
Inserting dates emil.sp Web Usability 7 07-06-2006 01:50 AM
Inserting ALT Text John Scott Coding Forum 6 04-10-2006 06:29 AM
Inserting cpanel help docquesting Web Design Lobby 5 03-20-2005 07:53 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:07 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.