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

11-26-2005, 06:51 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
|
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
|

11-26-2005, 07:01 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
|
What's the location of the rss feed?
|

11-26-2005, 07:13 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
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
|

11-26-2005, 07:13 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
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
|

11-26-2005, 07:21 PM
|
|
Junior Member
|
|
Join Date: 11-25-05
Posts: 6
|
|
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.
|

11-26-2005, 07:22 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
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..
|

11-26-2005, 07:57 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
|
JS, want me to get you that code?
|

11-26-2005, 07:59 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
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
|

11-26-2005, 08:01 PM
|
|
Junior Member
|
|
Join Date: 11-25-05
Posts: 6
|
|
|
What version of vBulletin is this?
|

11-26-2005, 08:02 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
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
|

11-26-2005, 08:04 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
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
|

11-26-2005, 08:06 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
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
|

11-26-2005, 08:11 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
yeah, but i mean like what info from thread
Option 1
Option 2
or what
|

11-26-2005, 08:14 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
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
|

11-26-2005, 08:36 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
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.
|

11-26-2005, 08:41 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
|
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
|

11-26-2005, 08:48 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
|
Rgr, what about the limiting length.
|

11-26-2005, 08:57 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
|
35 characters?
__________________
My Facebook - Add Me
“It is no measure of health to be well adjusted to a profoundly sick society.”
JSES
|

11-26-2005, 09:04 PM
|
 |
v7n Mentor
|
|
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
|
|
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
|

11-26-2005, 09:04 PM
|
 |
Individualist
|
|
Join Date: 09-27-03
Location: Japan, mostly
Posts: 27,715
|
|
|
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
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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
|
|
|