php forum
php mysql forum
php mysql smarty
 
Topic Options
#226862 - 10/27/02 08:11 PM New Since Last Visit
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Anyone ever give thought to or manage to do a "new Since Last Visit" link?<br /><br />Where in the database does it keep track of what's "new" for users?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226863 - 10/27/02 08:46 PM Re: New Since Last Visit [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
I have given this some thought. lol<br /><br />One field is needed for a unix timestamp in the users table, call it U_NewPosts.<br /><br />A page would be generated pulling in all threads that they have access to that are newer than this time stamp. Once a user has read all that they want to read they can upate the page and have a current timestamp set and all of the previous threads will not be displayed because they are now older than the timestamp.<br /><br />If there is no value for the timestamp have it set to 24 hours ago and load the threads accordingly.<br /><br /><br />This is actually a pretty simple script to write up and I think it would be handy as I have heard of something simular if not this exact thing being requested here and there. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br /><br />This has been on my list but feel free to whip it out. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#226864 - 10/27/02 09:08 PM Re: New Since Last Visit [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
What does w3t_Last store??????<br /><br />I guess that's the last post they read in each forum?????<br /><br />This one seems a bit over my head still.....<br /><br />How would you get the timestamp into the w3t_Users table?<br /><br />Maybe after that I could do it.... no promises. LOL <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226865 - 10/27/02 10:30 PM Re: New Since Last Visit [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
That's the nice thing about doing it this way. w3t_Last doesn't matter. The user themselves are in controll of updating their lists.<br /><br />As far as the field goes it's something like ALTER w3t_Users ADD U_NewThreads INT(11)<br /><br />
_________________________
~Dave
ChattersOnline.com

Top
#226866 - 10/27/02 10:37 PM Re: New Since Last Visit [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Right to add the field.<br /><br />I meant... how would you timestamp into that field.<br /><br />Where would you have it write that info.. how often. Taken from w3t_Online?.... <br />that's the part that confuses me. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><img src="/forum/images/graemlins/confused.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226867 - 10/27/02 10:56 PM Re: New Since Last Visit [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I use the who's online hack on every page....<br /><br />I'm guessing you could have the ubbt.inc.php file write the timestamp to the users table in there. Or would that be too much?<br /><br />You can't count on people logging out each time to make it work.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226868 - 10/29/02 11:55 AM Re: New Since Last Visit [Re: Daine]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
Maybe a 'next unread thread' type button?
_________________________
Silly ricer.. Wings are for airplanes!

Top
#226869 - 10/29/02 12:05 PM Re: New Since Last Visit [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
It would only write to that field if the member choses to update their list. If they have read all they wanted to in the list they then click update and the current timestamp is added to their information and all threads added after this will be displayed next time they view it.<br /><br />You will also need to paginate because this list could become quite long. Have the number of displayed threads use their prefs also like postlist.php <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#226870 - 10/29/02 07:47 PM Re: New Since Last Visit [Re: sjsaunders]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
So instead of "new since your last visit" more like "new since you last looked at this list".<br /><br />That makes sense.<br /><br />I wonder if you read posts from there if they would get marked as read?<br /><br />I think I read rick post that postlist updates that.<br /><br /><img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />Maybe it would be best to make a "all new posts" link.... although that still baffles me as to how and where in the database that's tracked.<br /><br /><img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Oh well.... an idea worth kicking around. Not sure if it's practical to implement as a hack.<br /><br />Maybe it'll end up on Rick's radar one of these days.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226871 - 10/29/02 08:05 PM Re: New Since Last Visit [Re: Daine]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
More like "new since you last reset this" <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />Your right in that it's postlist.php that does the actual tracking though. So basicly what you would want is a postlist.php script that grabs from all forums that you have access to and not just one forum at a time.<br /><br />The route I suggest is less intrusive into the database and much easier to impliment. I guess it's up to you on a course of action. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
~Dave
ChattersOnline.com

Top
#226872 - 10/30/02 06:33 AM Re: New Since Last Visit [Re: sjsaunders]
sigridsholm Offline
User

Registered: 08/17/00
Posts: 32
Loc: Stockholm, Sweden
Why not, New since last Mark All Read. <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#226873 - 10/30/02 12:22 PM Re: New Since Last Visit [Re: the yapper]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
New Posts since -=insert date here=- ? And there is a cool new Javascript thing over at hotscripts that would toss a calendar up when you click to enter the date to allow you to select a date in calendar mode.<br /><br />I know its sounds confusing.
_________________________
Silly ricer.. Wings are for airplanes!

Top
#226874 - 12/20/02 02:59 PM Re: New Since Last Visit [Re: Franky]
PhotoPost Offline
Hacker

Registered: 02/03/02
Posts: 989
I wouldnt mind seeing this. Couldnt we also take the w3t_Last which was the greatest for the user and assume that was the last visit? Then we list all threads since that most recent visit to a forum.
_________________________
[]http://www.danasoft.com/vipersig.jpg[/]
Viper Alley - http://www.viperalley.com
Extreme Fitness - http://www.extremefitness.com[/b]

Top
#226875 - 04/21/03 11:08 PM Re: New Since Last Visit [Re: the yapper]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
[]sigridsholm said:<br />Why not, New since last Mark All Read. <img src="/threads/php/images/graemlins/smile.gif" alt="" /> [/]<br /><br />Wouldn't that be the same as full post tracking (in theory)? If it's showing all new since Mark All Read, then it's just doing what it normally does, unless it isn't unflagging posts after you read them.
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#226876 - 04/21/03 11:09 PM Re: New Since Last Visit [Re: beatdown]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I think they want to display a list of all new posts on one page.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226877 - 04/22/03 12:27 AM Re: New Since Last Visit [Re: Daine]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
Ahhhh.<br /><br />That's actually kinda related to something I've been thinking about working on. If I ever get around to it, you'll be certain to hear of it <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks