Author Topic: what do u think about "new images since your last visit" ?  (Read 6649 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
what do u think about "new images since your last visit" ?
« on: February 24, 2003, 03:51:42 AM »
I was thinking about this kind of change, like on this forum, it shows new posts since last visit.
what do u think, is it worthit to try?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
what do u think about "new images since your last visit
« Reply #1 on: February 24, 2003, 08:58:52 AM »
I think thats not hard to do. You will have the users lastvist in $user_info['user_lastvisit'] and you can simply fetch all images with image_date > $user_info['user_lastvisit'] from the database.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
what do u think about "new images since your last visit
« Reply #2 on: February 24, 2003, 09:18:50 AM »
Quote from: Jan
I think thats not hard to do. You will have the users lastvist in $user_info['user_lastvisit'] and you can simply fetch all images with image_date > $user_info['user_lastvisit'] from the database.

Jan

yes, that's what I was thinking, but the only problem I could think of using sessions.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
what do u think about "new images since your last visit
« Reply #3 on: February 24, 2003, 10:02:46 AM »
Quote
yes, that's what I was thinking, but the only problem I could think of using sessions.

Sorry, i don't understand what you mean.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
what do u think about "new images since your last visit
« Reply #4 on: February 24, 2003, 10:17:03 AM »
well, my idea was - to use "last action" and/or session, minus 24 hours.
so, when user logged in, it starts new session, and he'll see new pictures untill eather:
it pass 24 hours or new session started.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
what do u think about "new images since your last visit
« Reply #5 on: February 24, 2003, 11:07:28 AM »
No, you can use $user_info['user_lastvisit']. This contains the date of the users last login.

Login at 24.02.2002
Login again at 27.02.2002 -> $user_info['user_lastvisit'] contains 24.02.2002

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
what do u think about "new images since your last visit
« Reply #6 on: February 24, 2003, 01:21:10 PM »
Quote from: Jan
No, you can use $user_info['user_lastvisit']. This contains the date of the users last login.

Login at 24.02.2002
Login again at 27.02.2002 -> $user_info['user_lastvisit'] contains 24.02.2002

Jan

ah, I see! the easier way!  :D
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
what do u think about "new images since your last visit
« Reply #7 on: February 24, 2003, 01:30:56 PM »
Yes, this feature is already implement but not used at the moment ;)

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline jengwen

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.jenrichardsphotography.com
[mod] New images since last visit
« Reply #8 on: March 15, 2003, 07:04:03 AM »
I just posted a mod in the other forum that will do this.