S
(Shovel)
Guest
OK, this is being asked in a general sense, though in reality it will be implemented as a PHPNuke/PostNuke block, so if you have any experience with that, please do bear it in mind.
Using the phpNuke "journals" system (Columns/Weblogs to you and me), every user on my site gets a column if they want it.
By default, you have to click a "Columns" link to get the list of columnists, and then choose a column.
I want to code (php/mySQL) a block (left hand menu item) that will list all the columns that the user has not read yet, then when he does read it, the column disappears from the list. Therefore, I need a way to determine which he has read and which he hasn't.
Getting the date of the last entry is not problem, that'll just be a mySQL query. The problem I have is how to store the data of "what has and hasn't been read".
The number of members could end up rather large, so using a bitmask (one bit for each member and have that correspond to the member ID) would be impractical when the members numbers get above say, 64 (using 128-bit numbers doesn't strike me as effcicient?).
So, how would you recommend doing it? Don't worry about the phpNuke bit, just with regard to if you were to code this yourself for any site.
Thanks very much for your help.
Using the phpNuke "journals" system (Columns/Weblogs to you and me), every user on my site gets a column if they want it.
By default, you have to click a "Columns" link to get the list of columnists, and then choose a column.
I want to code (php/mySQL) a block (left hand menu item) that will list all the columns that the user has not read yet, then when he does read it, the column disappears from the list. Therefore, I need a way to determine which he has read and which he hasn't.
Getting the date of the last entry is not problem, that'll just be a mySQL query. The problem I have is how to store the data of "what has and hasn't been read".
The number of members could end up rather large, so using a bitmask (one bit for each member and have that correspond to the member ID) would be impractical when the members numbers get above say, 64 (using 128-bit numbers doesn't strike me as effcicient?).
So, how would you recommend doing it? Don't worry about the phpNuke bit, just with regard to if you were to code this yourself for any site.
Thanks very much for your help.