new/nonew icons (forums)
#1
Posted 12 March 2006 - 03:41 PM
any help would be great, an explanation of what i would need to do, a script, a tutorial would be better
#2
Posted 12 March 2006 - 06:54 PM
#3
Posted 12 March 2006 - 07:26 PM
-austen
PS: sorry for the slightly jumbled reply, I had several ideas on this... though I'd check out the use of cookies first.
EDIT: I know now that this is done with cookies... I changed computers and the topics that were "old" on my powerbook are "new" on my windows machine I just fixed sooo.... yeah, get good with cookies... though I'm not really sure how to go about it.
Edited by austen, 12 March 2006 - 07:57 PM.
#4
Posted 13 March 2006 - 08:23 AM
well thats how i would do it
#5
Posted 13 March 2006 - 09:32 AM
like austen said you would use cookies, you would compare the time in the database for the last post and compare it against the last time you were on the board
well thats how i would do it
That's what I was thinking..
-austen
#6
Posted 13 March 2006 - 10:41 AM
#7
Posted 13 March 2006 - 04:20 PM
using timestamps to compare last user log in to last post just wont work cause what if they log in, but dont see all topics and have to get off to do something... they wont know what they did and didn't see.
the cookies is a bit more viable i guess but still.. cookies for every topic seems like overkill, but i'm thinking of ways i could use cookies for this
#8
Posted 13 March 2006 - 04:38 PM
Try n keep it under 20 topics
Myabe you could do something like an extra field in the forum's databse for every topic which holds all the names who have already read that topic...
#9
Posted 13 March 2006 - 04:42 PM
-austen
Myabe you could do something like an extra field in the forum's databse for every topic which holds all the names who have already read that topic...
I believe that would make your database quite large and what would happen if you did that, and a new reply was posted, you'd clear that field? I guess that could hypothetically work... and you could show the user something based on if their name was in that topic's field.
-austen
#10
Posted 13 March 2006 - 04:50 PM
Even i don't know how the whole new topic thing works as i've never looked into it. I also know that creating forums is not an easy task, which is another reason i've never looked into "marking posts as read" or anything like that.I think i read somewhere that IE doesnt allow you to put more than 20 cookies on a computer from a single domain.
Try n keep it under 20 topics
Myabe you could do something like an extra field in the forum's databse for every topic which holds all the names who have already read that topic...
But, in regards to the above quote, you could always use one cookie to store 20,000 topic ids (but that would just be all sorts of annoying). I've thought about the database thing as well, but like austen said, if you have a forum the size of p2l's, you'd rack up a 20 gig database in no time (and that's even less enjoyable then the cookie idea).
#11
Posted 13 March 2006 - 05:04 PM
-austen
#12
Posted 13 March 2006 - 05:27 PM
thats what i was thinking of doing actuallyuse one cookie to store 20,000 topic ids
i actually looked at my cookies and looked at my forums (the actual ones that are in use not the in-production ones) and i saw the cookie 'topicsread' and it was loooongggggggg i actually think thats how big forums do it... oh well.. we'll see
#13
Posted 13 March 2006 - 06:22 PM
A solution would be t clear the cookies every now and then or make user increase their cookiesize in the browser preferences
#14
Posted 13 March 2006 - 06:53 PM
if they viewed that thread, insert there id and mark it as read. then remove id, but that wud set at back at unread right?
#15
Posted 14 March 2006 - 09:10 AM
I have an idea, i will take a look later on and get back to it
#16
Posted 14 March 2006 - 09:19 AM
-austen
#17
Posted 15 March 2006 - 02:10 AM
#18
Posted 15 March 2006 - 09:25 AM
http://www.phpfreaks...showtopic=88375
This seems like it'd work to me...
-austen
#19
Posted 15 March 2006 - 11:21 PM
But his forums have a bit of a problem of keeping people logged in..somethings wrong there
But it is in very early stages..He's releasing it as a free open source forum software in the future..
#20
Posted 16 March 2006 - 01:21 AM
You would definately want to clean it up every once in a while though.
That krpytek site is pretty impressive BTW if he did it by scratch.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users