Author |
Topic |
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 27 February 2004 : 16:32:58
|
When a user creats a subject its marked as unread for the user. What have i missed ?
|
Stewe Lundin 'Napalm sticks to kids' is *not* a motivational phrase. |
Edited by - ruirib on 28 February 2004 22:20:01 |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 27 February 2004 : 16:47:24
|
Nothing, that's just the way the forum works. Wether a topic has been read or not is determined by the post date and your forum last visit date. All posts made later than your last visit date are shown as unread. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 27 February 2004 : 16:55:13
|
hmm thats no good... I there a fix ? There must bee a way of fixing that problem... To get the forum to some how remeber where i was the last entering i that topic and mark it as unread. |
Stewe Lundin 'Napalm sticks to kids' is *not* a motivational phrase. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 27 February 2004 : 17:00:47
|
It is a problem, I can tell U that, if I can't fix it its back to phpBB. Anny idea of where to start looking. |
Stewe Lundin 'Napalm sticks to kids' is *not* a motivational phrase. |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 27 February 2004 : 17:05:39
|
What you want would mean a database structure, because you'd need to maintain the date of the last read topic per user per forum (at least) and add all the code to handle that. That would mean also changing a lot of pages...
I guess you will need to go back to phpBB... |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 27 February 2004 : 17:08:23
|
Okej!!! How do I mark a topic as Old then so that its not marked as New then :) Where do I start looking i the code... |
Stewe Lundin 'Napalm sticks to kids' is *not* a motivational phrase. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 27 February 2004 : 17:53:34
|
You can pick every single page where topics are displayed, or info about recent topics is shown: default.asp, active.asp, forum.asp, personal profile pages and probably moderation pages as well. Start by defining the changes to the database structure and proceed from there. Enjoy the ride :). |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 28 February 2004 : 04:59:33
|
Fraggel, to answer your question properly ...
It all works on the member's "last here" date, so you'll have to make the date on the thread 'older' than youre last visit. |
|
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 28 February 2004 : 09:17:01
|
quote: Originally posted by laser It all works on the member's "last here" date, so you'll have to make the date on the thread 'older' than youre last visit.
Hmm wonder if i can solve that by giving the post a virtual older date, or if i hae to tamper the database. In what resulution is the last visit resolved ??? minuts och seconds?
Idea: Create a list in global.asa that contains the ID of the topics written and/or replyed during tha last session. And the when drawing the page check the topics against the session variable list. Cant be that tricky. The hard part is just to findout WHERE to implement it.
|
Stewe Lundin 'Napalm sticks to kids' is *not* a motivational phrase. |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 28 February 2004 : 09:27:02
|
if you are wanting to keep track of every single topic and whether it has been read or not by every single member, you'll need to modify the DB. I did a little "who read" MOD that you might be able to add to for your purposes. Do a search for it to find where to download. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
|
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 28 February 2004 : 09:45:33
|
Thanks Nikkol...
Is there some documents about the database structurer ???
Or do I have to mapup the database my self :D?
The Lazydog Fraggel
|
Edited by - Fraggel on 28 February 2004 09:46:05 |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 28 February 2004 : 10:11:57
|
To document who has read a topic or not, you just need to record the topic id and the member id in another table. take a look at that MOD, and you'll see what I did. I also include the date/time it was read. One word of caution, if you do this, the size of your database will grow pretty fast depending on the number of members and topics you have. |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
|
|
Fraggel
Starting Member
Sweden
31 Posts |
Posted - 28 February 2004 : 10:37:52
|
quote: Originally posted by Nikkol One word of caution, if you do this, the size of your database will grow pretty fast depending on the number of members and topics you have.
Hehehehe No problems I have a 120bg disk dedicated to the forum and im hosting it in a sql server. Then Ill figer some thing out that clears the table of entitys when the user logs of and the relay on the last logon function. Just to keep the db size down.
|
Stewe Lundin 'Napalm sticks to kids' is *not* a motivational phrase. |
|
|
ajhvdb
Junior Member
Netherlands
392 Posts |
Posted - 28 February 2004 : 11:43:29
|
I'm using the "who read" mod and love it. Was already thinking of using it for the purpose of marking topics as read/unread but do not have enough experience with sql.
The sql statement i want in simple words is an "unread list": - with every topic (in a forum) check if a record exists for the member in "topic_read" - if not then add this topic to the list "unread".
Later i can do something with the field "last_read_date"
|
Edited by - ajhvdb on 28 February 2004 11:53:31 |
|
|
|
Topic |
|