Page Index Toggle Pages: 1 ... 4 5 [6] 7 8 9 Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] Go to last post read by user! (Read 51287 times)
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [BETA] Go to last post read by user!
Reply #75 - May 1st, 2002 at 7:33am
Print Post  
hehe...this did go fast, and I didn't do much of it either Grin
Last beta I wrote of this was beta 4 or 5, and the rest has been done by you guys Smiley
Should we call it done? I've got an announcement mod to work on Wink
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [BETA] Go to last post read by user!
Reply #76 - May 1st, 2002 at 7:36am
Print Post  
Do you think so, Globalopper?

Actually I would prefer a consistent solution to avoid confused users.

What about disabeling the mark as read instead?

newbe
  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [BETA] Go to last post read by user!
Reply #77 - May 1st, 2002 at 8:38am
Print Post  
you do that in Admin Center - Disable Mark As Read Buttons or something...
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [BETA] Go to last post read by user!
Reply #78 - May 1st, 2002 at 9:33am
Print Post  
Very good point, krikkert!!!  Embarrassed

What about a second option in the admin center if the logs should be written when "mark as read" is switched on?



  
Back to top
 
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [BETA] Go to last post read by user!
Reply #79 - May 1st, 2002 at 9:37am
Print Post  
I think that should be done automatically....I'll implement that
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Gobalopper
Junior Member
**
Offline



Posts: 89
Joined: Jul 27th, 2001
Re: [BETA] Go to last post read by user!
Reply #80 - May 2nd, 2002 at 1:42am
Print Post  
Well it makes sense to make them all store the last post when you hit mark as read but it will make a large .log file.
Currently mark all as read just sets each forum as being read so thats usually only a couple lines. But if we were to do it with this mod you would need to make a line in the .log file for every thread on your board. So a board like this one would need 5000+ lines in every users .log file and that would probably take a while to parse through... It would be nice to do but I think not practical. But we won't know for sure until we try though. Smiley
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Go to last post read by user!
Reply #81 - May 2nd, 2002 at 11:07am
Print Post  
The way it is now, you're taken to the first new post since you last actually viewed the thread. If you tie it in with the "mark threads as read" buttons then you'll be taken to the last thread, even if you haven't read the first one. And you'll have the problems with very large log files that Gobalopper stated above.

Personally, I'd leave it as it is and call it done - but that's just my opinion. Wink
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Taco_John
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 27th, 2002
Re: [DONE] Go to last post read by user!
Reply #82 - May 2nd, 2002 at 4:36pm
Print Post  
If it is going to make the board slower, then I'd say probably should leave well enough alone...

I'm not a coder, so I don't know...  But I've got a question for you...  What is to stop this thing from getting too big anyway?  What happens to the log 500 threads later, or even 5000 threads later?
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [DONE] Go to last post read by user!
Reply #83 - May 2nd, 2002 at 4:52pm
Print Post  
There's an admin option that removes entries from the users log after XX days, which is why old threads that haven't been visited for ages are marked as "new" even if no-one has posted to them!

[Edit: it's done automatically, the admin option just says what number the XX is!]
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
splungent
New Member
*
Offline


./what?

Posts: 46
Joined: Nov 12th, 2001
Re: [DONE] Go to last post read by user!
Reply #84 - May 2nd, 2002 at 6:27pm
Print Post  
Where can I get the beta of this mod?  I have a sp 1.1 board I am willing to test it on........ Tongue
  

Thanks for reading me...............
Back to top
 
IP Logged
 
Black_Eagle
Junior Member
**
Offline



Posts: 51
Joined: Apr 13th, 2002
Re: [DONE] Go to last post read by user!
Reply #85 - May 2nd, 2002 at 6:40pm
Print Post  
look at the very bottom of page 5
  

Black_Eagle
Back to top
 
IP Logged
 
splungent
New Member
*
Offline


./what?

Posts: 46
Joined: Nov 12th, 2001
Re: [DONE] Go to last post read by user!
Reply #86 - May 2nd, 2002 at 7:26pm
Print Post  
DUH  Tongue Thanks.

*Splungent slinks into his corner in embarrasment*

Wink
  

Thanks for reading me...............
Back to top
 
IP Logged
 
newbe
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Apr 28th, 2002
Re: [DONE] Go to last post read by user!
Reply #87 - May 2nd, 2002 at 7:45pm
Print Post  
Quote:
There's an admin option that removes entries from the users log after XX days, which is why old threads that haven't been visited for ages are marked as "new" even if no-one has posted to them!

[Edit: it's done automatically, the admin option just says what number the XX is!]


bhra,

I was already considering to implement a kind of compression to avoid that problem.
But it may take a while until I go into that issue more seriously. Are there already any considerations regarding this?

newbe
  
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [DONE] Go to last post read by user!
Reply #88 - May 2nd, 2002 at 11:36pm
Print Post  
I think the "marking old threads as new" was intended as a feature rather than a problem (at least according to a post I read a while ago on the YaBB forum.)


At the moment, when you view the message index, YaBB has to load the users log, then check to see if each message is new or has been read, then check to see if the forum or board has been marked as read.

When you view a thread, the information in the log file has to be updated. This means reading in all the entries again, and modifying or adding an entry for the thread being viewed, then saving the new information.

If you have a lot of enties in the users log, lots of users, and lots of threads, all this reading and writing will take time.

Compression may not help in these circumstances because everytime someone views a thread, you would have to load the users log, uncompress it, update the details, re-compress it then save it back to the server. You may gain speed in the read-write stages at the expence of processor usage in the compress-uncompress stages.

I really don't know enough about it to know for sure. You could try asking Michael Prager who I believe has tried using Gzip compression on this board, but I'm not sure how it was implimented.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Gobalopper
Junior Member
**
Offline



Posts: 89
Joined: Jul 27th, 2001
Re: [DONE] Go to last post read by user!
Reply #89 - May 3rd, 2002 at 12:42am
Print Post  
I might be wrong but doesn't Gzip just compress what it is sending the browser? I think it saves bandwidth but I don't think it would help here as all of this will be done on the server.

Basically what would have to happen is it will need to read every board.txt file and take from that the time and number of replies and then write that to the user.log file. Gzip might have helped if YaBB used cookies to store the data on the users computer but it stores it server side.

Imagine if you had a number of users hit "mark as read" at about the same time, your CPU usage would probably max out. I guess one way around this would be to only take a certain number of threads and store that. If you were to only take a certain number of the most recent threads it wouldn't be so bad.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 4 5 [6] 7 8 9
Send TopicPrint