kaser Posted January 31, 2007 Share Posted January 31, 2007 i'm currently building a forum for a website of mine and the current method i have implemented had a big flaw over looked so i need to fix it.I was suggested to take a look at some of other open source forums and how they do it, i've dug through some phpBB files and couldn't even find what i was looking for.if any of you know where to point me, the help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/ Share on other sites More sharing options...
kaser Posted January 31, 2007 Author Share Posted January 31, 2007 eh it turns out this forum was where i posted this problem a while back and not the other one i thaught i posted it on. sorry for the double post but maybe someone that can help me a little more can help me out. Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173457 Share on other sites More sharing options...
redarrow Posted January 31, 2007 Share Posted January 31, 2007 all you do is put a extra colum in the message collum and call it read if the user reads it put a 1 if they have not read it defult the colum to a 0.so if read =="1" they read it, or if read=="0" not read it.afther doing that then it gets even more exciting then you can do all columns with a 1 to be copied to the users privert sent messages then delete all the messages with 1.ordelete all messages that got a 1.good luck exstend the program ok. Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173460 Share on other sites More sharing options...
kaser Posted January 31, 2007 Author Share Posted January 31, 2007 the problem with that is if i view it, it marks it as read, and my buddy who hasn't read it, goes there, and it's marked as read because i read it.would a users_who_read field where i store all the user's id's in the table seperated by ,'s i just think that'd get a little resource savvy Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173462 Share on other sites More sharing options...
redarrow Posted January 31, 2007 Share Posted January 31, 2007 i dont get it is this for a privert message system or a forum. Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173465 Share on other sites More sharing options...
redarrow Posted January 31, 2007 Share Posted January 31, 2007 the way i told you is what phpbb use ok sorry.can you kindly exsplain what the whole project is please cheers. Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173470 Share on other sites More sharing options...
kaser Posted January 31, 2007 Author Share Posted January 31, 2007 Oh. yeah. No problem.The way you explained would work perfectly for private messages. you are correct. infact that's what i use in my private message script...this is for forums.each user is going to have a different read / unread post and i also need to display the results accordingly. Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173480 Share on other sites More sharing options...
redarrow Posted January 31, 2007 Share Posted January 31, 2007 A user logs on to the forum therefore the user has a id that id would be entered into the database updating a read colum and also entering that colum id then only if that user is logged on the link shows read else not read to others got me i hope? Link to comment https://forums.phpfreaks.com/topic/36448-tracking-read-and-unread-post/#findComment-173490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.