Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: SMiFFER - lokakuu 22, 2019, 09:32:52 AP

Otsikko: Make a log entry
Kirjoitti: SMiFFER - lokakuu 22, 2019, 09:32:52 AP
Hi fellows, I would like to put code into my system that
- adds a log entry when a user amends his own email-address
- writes x changed his email FROM (old) TO (new)

Is there a mod that already does this?
Has anybody some code lines that I can put in?

Many thanks for any construtive help!!
Otsikko: Re: Make a log entry
Kirjoitti: Illori - lokakuu 22, 2019, 09:43:02 AP
users profile -> track user -> profile edits has this information already

it is not in one location for all users but it is in their own profiles.
Otsikko: Re: Make a log entry
Kirjoitti: Arantor - lokakuu 22, 2019, 10:00:42 AP
As long as it is turned on, it isn't by default to save space in the database.
Otsikko: Re: Make a log entry
Kirjoitti: SMiFFER - lokakuu 22, 2019, 10:03:03 AP
Lainaus käyttäjältä: Illori - lokakuu 22, 2019, 09:43:02 AP
it is not in one location for all users but it is in their own profiles.

Fine, but just that is what I ask for.
And to save db-memory only the email-address.

Otsikko: Re: Make a log entry
Kirjoitti: Illori - lokakuu 22, 2019, 10:05:20 AP
Lainaus käyttäjältä: Arantor - lokakuu 22, 2019, 10:00:42 AP
As long as it is turned on, it isn't by default to save space in the database.

which setting is that? I don't see one specifically for that.

Lainaus käyttäjältä: SMiFFER - lokakuu 22, 2019, 10:03:03 AP
Lainaus käyttäjältä: Illori - lokakuu 22, 2019, 09:43:02 AP
it is not in one location for all users but it is in their own profiles.

Fine, but just that is what I ask for.

no you did not ask for that, you asked to log the change, which is already logged. you did not say where you wanted it.
Otsikko: Re: Make a log entry
Kirjoitti: SMiFFER - lokakuu 22, 2019, 10:12:03 AP
Lainaus käyttäjältä: Illori - lokakuu 22, 2019, 10:05:20 AP
...which is already logged. you did not say where you wanted it.
In the logs. Not in the profile. I thought that would be logic. ;)

These logs: Admin > Maintenance > Logs > User
Otsikko: Re: Make a log entry
Kirjoitti: Kindred - lokakuu 22, 2019, 10:17:48 AP
there is no feature or mod to do this.

Tracking this information may be of questionable legality in some areas as well.



let's ask the obvious follow-up question.
WHY do you think you need to track this information?
Otsikko: Re: Make a log entry
Kirjoitti: Illori - lokakuu 22, 2019, 10:19:22 AP
Lainaus käyttäjältä: Kindred - lokakuu 22, 2019, 10:17:48 AP
there is no feature or mod to do this.
I already answered that this is logged in the profile of the user. why do you say this feature does not exist?
Otsikko: Re: Make a log entry
Kirjoitti: Kindred - lokakuu 22, 2019, 10:21:15 AP
there is no feature or mod to specifically log these changes in a separate log list, as the user expanded his request to include.
Otsikko: Re: Make a log entry
Kirjoitti: Arantor - lokakuu 22, 2019, 10:31:39 AP
So the change is part of the "Moderation and Admin Logs" core feature.

As for the change, you wanted constructive advice, which is "the feature exists already" and "no one wants to waste time reimplementing something SMF already has".