Bloglines mod - Posted (4817 Views)
Retired Support Moderator
MarcelG
Posts: 2625
2625
I'm trying to design a mod that enables a 'bloglines' like facility for registered members. The idea that I'm having is this:
- Create a new table in the db, called FORUM_FEEDS, where the ID, URL and NAME of the RSS feeds are stored. For instance:
Code:
FEED_ID, FEED_URL, FEED_NAME
1 , http://forum.snitz.com/rssfeed.asp , Snitz Forums 2000
2 , http://news.bbc.co.uk/rss/newsonline_world_edition/front_page/rss091.xml , BBC World News
Etc etc. Let's assume that this list is filled with 40+ feeds. Now, I want to enable each member to select a maximum of 10 feeds from that central list, in a page called 'my_feeds_edit.asp'. At first I thought I'd take the Avatar mod as the base for this mod, but I see that the Avatar mod stores the actual avatar_url in the members table, instead of the reference to the avatar_id. Using that route would mean that I'd have to add at least 10 columns to the members table, but that's not what I want to do. Instead, I want to add only 1 field, called MEMBERS.M_FEEDS, where I want to store the FEED_ID's, in this format :
Code:
1,4,5,8,21,34,28,12,14,17

Then, finally, I create a page called my_feeds.asp, where one sees the RSS Feeds displayed in the forum layout. I already have a piece of code to display the feeds.
I think I need to pull the feeds via this query ;
Code:
strSqL = "SELECT M_FEEDS " 
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS , " & strTablePrefix & "FEEDS "
strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_NAME = '" & strDBNTUserName & "'"
Now I've got the 'array', let's call it myFeeds
The second query pulls the URL's from the FEEDS table.
Code:
strSql = "SELECT FEED_URL, FEED_NAME "
strSql = strSql & "FROM " & strTablePrefix & "FEEDS "
strSql = strSql & "WHERE " & strTablePrefix & "FEEDS.FEED_ID IN (" & myFeeds & ") "

Perhaps, these two queries above can be put together in one query.. question
After this, I can loop through the feeds, and display them one by one.
So, the general idea is there, but perhaps someone has some other ideas about this, or is willing to work together on this mod. cool<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Etymon
Posts: 2396
2396
Marcel meant to post a link to his own board ...
Subject: Member Feeds
Download URL: http://oxle.nl/topic.asp?tid=3751<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Etymon, have you tried to isntall it yet ? Just curious.<
Posted
Junior Member
Bassman
Posts: 256
256
Treid to on my test forum, I keep getting _MFEEDS errors and a lots of JET's<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Mmm...bummer. Have you ran the dbs ?<
Posted
Junior Member
Bassman
Posts: 256
256
Yep i did, also there are a couple of includes in there we do not have like _spacer and _sidebar.<
Posted
Average Member
blackinwhite
Posts: 657
657
it works great in terms of functionality. But whole code must be taken care of in terms of tidiness.

thanks man for the initiative.<
You Must enter a message