Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Problems with unread subjects..
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Fraggel
Starting Member

Sweden
31 Posts

Posted - 27 February 2004 :  16:32:58  Show Profile  Visit Fraggel's Homepage
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  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

Fraggel
Starting Member

Sweden
31 Posts

Posted - 27 February 2004 :  16:55:13  Show Profile  Visit Fraggel's Homepage
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.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 February 2004 :  16:58:50  Show Profile  Send ruirib a Yahoo! Message
No, that would mean a lot of code changes in many places. There is no fix because that is not seen as a problem.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Fraggel
Starting Member

Sweden
31 Posts

Posted - 27 February 2004 :  17:00:47  Show Profile  Visit Fraggel's Homepage
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.
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 27 February 2004 :  17:02:01  Show Profile
Furthermore, there is no such thing as "read topics" ... just "new posts" as defined by Rui above.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 February 2004 :  17:05:39  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

Fraggel
Starting Member

Sweden
31 Posts

Posted - 27 February 2004 :  17:08:23  Show Profile  Visit Fraggel's Homepage
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.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 February 2004 :  17:53:34  Show Profile  Send ruirib a Yahoo! Message
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
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 28 February 2004 :  04:59:33  Show Profile
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.
Go to Top of Page

Fraggel
Starting Member

Sweden
31 Posts

Posted - 28 February 2004 :  09:17:01  Show Profile  Visit Fraggel's Homepage
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.
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 February 2004 :  09:27:02  Show Profile
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 ~
Go to Top of Page

Fraggel
Starting Member

Sweden
31 Posts

Posted - 28 February 2004 :  09:45:33  Show Profile  Visit Fraggel's Homepage
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
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 28 February 2004 :  10:11:57  Show Profile
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 ~
Go to Top of Page

Fraggel
Starting Member

Sweden
31 Posts

Posted - 28 February 2004 :  10:37:52  Show Profile  Visit Fraggel's Homepage
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.
Go to Top of Page

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 28 February 2004 :  11:43:29  Show Profile
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07