Advertisement:

Author Topic: [modified_name] Can we change this column?  (Read 5128 times)

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
[modified_name] Can we change this column?
« on: November 08, 2011, 04:56:15 PM »
In "messages" table of default database structure of SMF 2.0 we have a column declared as "modified_name".

Today I noticed that SMF saves the username of the person who has modified the post, instead of his user id.

Why not to save the "user id" of the person modifying the post instead of his name.

We can pull out the data of the person who has modified the post and instead of usernames we can have their profile links in posts.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,620
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: [modified_name] Can we change this column?
« Reply #1 on: November 08, 2011, 05:18:31 PM »
What happens when they delete their account?
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline Joker™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,914
  • Gender: Male
    • siddhartha-gupta on GitHub
Re: [modified_name] Can we change this column?
« Reply #2 on: November 10, 2011, 06:13:20 AM »
Ummm wired thought, change the id's with the username in that case.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved