The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
RSS rdb file format parse into DB table; use vBAdvanced and/or AboutToday to display
Need to input the following RSS feed which is in rdb format, hopefully into a database table in vBulletin. Then create a module to display the latest reading on my cmps_index page and maybe at the bottom of all my pages. I am a newbie so I understand the concept; just don't know how to start & finish
I would need step by step instructions since I am so green, i.e Go to adminCP or MySQL to create table, etc. Use this code to load table; Go to cmps and add module, etc. Use RSS or AboutToday or this code to go get the data every hour or maybe just twice a day. There are comment lines before the data that start with #. The first row of the data defines the columns. After that is the real data. I would want to load rows into the database that are unique by Date & Time. Each read is usually an hour apart. Then, again my module would display the latest reading with Date, Time and Level. Here is a paste of the data coming in. URL is: USGS Level @ Lake Murray, SC I don't know how to make this box bigger Maybe a Moderator/Member would teach a newbie how? PM is OK. PHP Code:
|
#2
|
|||
|
|||
I've got the data down to three lines after the comments which start with a #. I just need the last line of data which has date, time and level. For some reason when I put the data within the php tags it is wrapping the last line. Can anyone help me?
At this point I'll even take just pulling the last line of data and displaying it within some text like "Lake Murray Level @ xxx on date time". Whatever is easiest. Display it, create a post in News forum, etc. Here's the new URL with the reduced amount of data. I just need to post date time level (which in the example below is 357.30. Would like to automagically pull it twice a day. USGS Lake Murray PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|