Welcome Guest, Not a member yet? Register   Sign In
Developing CI Based Forum - WIP
#15

[eluser]srpurdy[/eluser]
[quote author="Aken" date="1345250655"]Github is certainly an excellent place for open source. I'd recommend it, or at least something like it (Bitbucket or what have you). Github is my favorite, though.[/quote]

Yeah I'm more familiar with GitHub so I'd likely use that. Smile

I've revised my topic tracking logic below. I think this makes the most sense.

Topic Tracking
-> if topic has no row in the database for X User than topic is currently unread.
-> If the topic does have a record in the database than compare the datetime stamp with the last post made in the topic to determine wither the topic is read or unread.
-> If the topic has no row in the database and the user visits the topic. Than add a row for that user with the current date time.
-> However if the user has more than 100 topics currently being tracked. Remove the oldest datetime topic from tracking.
-> If the topic is older than 10 days old without any new posts than we will mark the topic as read. We will also not attempt to insert any row if the user visits that topic. (This will mean if someone does post. The 10 day window will now be erased so the topic should display as unread.
-> Both the 10 Day window and the 100 max tracked topics per user will be configuration variables so these can be adjusted.
-> Also an option for Mark All Topics as Read. This will put a timestamp into the users information, and any topic older than that datetime will be consider read at that point.

If anyone see's some glaringly obvious flaws with that logic let me know. Smile


Messages In This Thread
Developing CI Based Forum - WIP - by El Forum - 08-10-2012, 12:22 AM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 03:26 AM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 06:23 AM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 09:28 AM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 12:48 PM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 03:04 PM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 04:55 PM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 05:01 PM
Developing CI Based Forum - WIP - by El Forum - 08-11-2012, 05:21 PM
Developing CI Based Forum - WIP - by El Forum - 08-17-2012, 01:25 PM
Developing CI Based Forum - WIP - by El Forum - 08-17-2012, 05:23 PM
Developing CI Based Forum - WIP - by El Forum - 08-17-2012, 05:32 PM
Developing CI Based Forum - WIP - by El Forum - 08-17-2012, 05:41 PM
Developing CI Based Forum - WIP - by El Forum - 08-17-2012, 05:44 PM
Developing CI Based Forum - WIP - by El Forum - 08-18-2012, 07:39 AM
Developing CI Based Forum - WIP - by El Forum - 08-19-2012, 01:26 PM
Developing CI Based Forum - WIP - by El Forum - 12-29-2012, 06:03 AM
Developing CI Based Forum - WIP - by El Forum - 12-29-2012, 04:39 PM
Developing CI Based Forum - WIP - by El Forum - 12-30-2012, 07:11 AM
Developing CI Based Forum - WIP - by El Forum - 01-03-2013, 10:36 PM
Developing CI Based Forum - WIP - by El Forum - 01-04-2013, 05:05 AM
Developing CI Based Forum - WIP - by El Forum - 01-04-2013, 12:25 PM
Developing CI Based Forum - WIP - by El Forum - 01-07-2013, 01:20 AM
Developing CI Based Forum - WIP - by El Forum - 01-07-2013, 07:00 PM
Developing CI Based Forum - WIP - by El Forum - 01-14-2013, 06:03 AM
Developing CI Based Forum - WIP - by El Forum - 01-25-2013, 06:57 AM
Developing CI Based Forum - WIP - by El Forum - 01-28-2013, 04:29 PM
Developing CI Based Forum - WIP - by El Forum - 01-28-2013, 06:33 PM
Developing CI Based Forum - WIP - by El Forum - 01-29-2013, 06:22 PM
Developing CI Based Forum - WIP - by El Forum - 01-30-2013, 04:38 PM
Developing CI Based Forum - WIP - by El Forum - 02-04-2013, 06:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB