4images Forum & Community
The forum for all 4images gallery administrators
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
[2023-01-23] 4images 1.10 released
Home
Help
Search
Login
Register
4images Forum & Community
»
4images Modifications / Modifikationen
»
Mods & Plugins (Requests & Discussions)
(Moderator:
mawenzi
) »
Request: Keep the photos anonymous for seven days.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Request: Keep the photos anonymous for seven days. (Read 5569 times)
0 Members and 1 Guest are viewing this topic.
fermachado
Jr. Member
Posts: 92
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,
Logged
www.globalfoto.net
Sintra - Portugal
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...
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
:
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
»
Logged
Your first three "must do" before you ask a question:
Forum rules
FAQ
Error messages
Bug Fixes & Patches
Search
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)
fermachado
Jr. Member
Posts: 92
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
Logged
www.globalfoto.net
Sintra - Portugal
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...
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?
Logged
Your first three "must do" before you ask a question:
Forum rules
FAQ
Error messages
Bug Fixes & Patches
Search
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)
fermachado
Jr. Member
Posts: 92
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
Logged
www.globalfoto.net
Sintra - Portugal
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...
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
Logged
Your first three "must do" before you ask a question:
Forum rules
FAQ
Error messages
Bug Fixes & Patches
Search
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)
fermachado
Jr. Member
Posts: 92
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.
Obrigado
Fernando
Logged
www.globalfoto.net
Sintra - Portugal
Print
Pages: [
1
]
« previous
next »
4images Forum & Community
»
4images Modifications / Modifikationen
»
Mods & Plugins (Requests & Discussions)
(Moderator:
mawenzi
) »
Request: Keep the photos anonymous for seven days.