| Coding Forum Problems with your code? Let's hear about it. |
11-26-2005, 07:51 PM
|
#1 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
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.
|
|
|
11-26-2005, 08:01 PM
|
#2 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
What's the location of the rss feed?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
11-26-2005, 08:13 PM
|
#4 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
Copied and pasted from the FAQ. 
|
|
|
11-26-2005, 08:21 PM
|
#5 (permalink)
|
|
Inactive
Join Date: 11-25-05
Posts: 24
Latest Blog: None
|
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, 08:22 PM
|
#6 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
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.. 
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
11-26-2005, 08:57 PM
|
#7 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
JS, want me to get you that code?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
11-26-2005, 08:59 PM
|
#8 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
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.
|
|
|
11-26-2005, 09:01 PM
|
#9 (permalink)
|
|
Inactive
Join Date: 11-25-05
Posts: 24
Latest Blog: None
|
What version of vBulletin is this?
|
|
|
11-26-2005, 09:02 PM
|
#10 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
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 
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
11-26-2005, 09:04 PM
|
#11 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
Quote:
|
Originally Posted by surfer-talk
What version of vBulletin is this?
|
vBulletin 3.0.8
|
|
|
11-26-2005, 09:06 PM
|
#12 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
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?
|
|
|
11-26-2005, 09:11 PM
|
#13 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
yeah, but i mean like what info from thread
Option 1
Option 2
or what 
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
11-26-2005, 09:14 PM
|
#14 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
Title of thread, author, and link. 
|
|
|
11-26-2005, 09:36 PM
|
#15 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
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?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
Last edited by kwvarga : 11-26-2005 at 09:41 PM.
|
|
|
11-26-2005, 09:41 PM
|
#16 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
I would rather just display 4 thread titles.
Do-able?
|
|
|
11-26-2005, 09:48 PM
|
#17 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
Rgr, what about the limiting length.
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
11-26-2005, 09:57 PM
|
#18 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,297
|
35 characters?
|
|
|
11-26-2005, 10:04 PM
|
#19 (permalink)
|
|
Possible Terrorist
| |