Author Topic: Request: Keep the photos anonymous for seven days.  (Read 5569 times)

0 Members and 1 Guest are viewing this topic.

Offline fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Request: Keep the photos anonymous for seven days.
« on: October 29, 2010, 10:13:17 AM »
Hi,

It's possible this modification.

Keep the photos anonymous for seven days.

Thanks,
www.globalfoto.net

Sintra - Portugal

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
Re: Request: Keep the photos anonymous for seven days.
« Reply #1 on: October 29, 2010, 02:43:16 PM »
In includes/functions.php find:
  if (isset($image_row[$user_table_fields['user_name']]) && $image_row['user_id'] != GUEST) {

Insert above :above::
  if ($user_info['user_level'] != ADMIN && $image_row['image_date'] > (time() - 60 60 24 7))
  {
    
$image_row['user_id'] = GUEST;
  }
« Last Edit: November 01, 2010, 02:22:46 AM by V@no »
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 fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Request: Keep the photos anonymous for seven days.
« Reply #2 on: October 30, 2010, 10:18:47 PM »
Hi Vano,

Thanks a lot,

Works...but show the name of  authors from the last seven days and hide all the others.

Now show the names after 23 of October and hide all below this date.

I need in the reverse way. :)

Thanks
Sorry the poor english
www.globalfoto.net

Sintra - Portugal

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
Re: Request: Keep the photos anonymous for seven days.
« Reply #3 on: October 30, 2010, 10:25:10 PM »
Sorry, I have no idea what you mean. Show what, when and most importantly where?
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 fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Request: Keep the photos anonymous for seven days.
« Reply #4 on: October 30, 2010, 10:32:22 PM »
Hi Vano

I need hide for seven days the name of the authors of the new photos.

If a user vote or comment dont know the name of author in this seven days.

thanks
www.globalfoto.net

Sintra - Portugal

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
Re: Request: Keep the photos anonymous for seven days.
« Reply #5 on: October 31, 2010, 01:26:33 AM »
Oh, that's what I understood the first time too, but...evidently I screwed up. In my code above replace < with >

Sorry about that :oops:
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 fermachado

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: Request: Keep the photos anonymous for seven days.
« Reply #6 on: October 31, 2010, 06:43:57 PM »
Hi Vano,

Thanks a lot for your help my friend ,works very nice. :D :thumbup:

Obrigado
Fernando
www.globalfoto.net

Sintra - Portugal