SimplePortal

Development => Feature Requests => Applied Requests => Topic started by: mano82 on February 27, 2015, 07:05:56 AM

Title: add "Last Edited by:" string in pages
Post by: mano82 on February 27, 2015, 07:05:56 AM
As the title says I would like to have a little string saying who's last edited and when the page.

I'm managing sort of an internal wiki on my website and it will be interesting to have an indication of who and when last edited the page.

I know where to edit part of the "page" template, found in /Themes/default/PortalPages.template.php, but I'm totally lost concerning how to include the members and last edit date. Presumably I need to add two columns in the (smf_)sp_pages table of the database for the userid (or name) and the edit date, but I don't know where to put my hands to manage the part of the code concerning the user's edit action.

For whom is already writing me about simplewiki, I've already tried to bridge SMF/SP to simplewiki but was not successful because it didn't worked at all concerning the memberships. If someone had the same problem and solved it I would be glad to hear how he did...

Thanks
Title: Re: add "Last Edited by:" string in pages
Post by: ♦ Ninja ZX-10RR ♦ on February 27, 2015, 07:15:04 AM
I wonder why you would "ever" post in this section, really...
Title: Re: add "Last Edited by:" string in pages
Post by: mano82 on February 27, 2015, 07:47:51 PM
wow that really helped....as the little text below my name says...I'm a newbie of this forum and smf/sp in general. maybe I misunderstood the section?

@Mods: sorry. Wrong place. Could some one please move this topic?
Title: Re: add "Last Edited by:" string in pages
Post by: ♦ Ninja ZX-10RR ♦ on February 28, 2015, 12:33:58 AM
I answered like that because it takes quite a bit of effort to get into this section already, making me think you have digged a bit before asking but in the end if you did I really wonder why you came in here, lol.
Besides at the moment there isn't such a thing... I'd highly suggest you to restrict who has SP admin permissions instead :/ you don't want someone to random pages don't you? ;)
Title: Re: add "Last Edited by:" string in pages
Post by: mano82 on March 01, 2015, 05:25:21 AM
lol actually i digged the forum a bit but evidently i didn't understood it structure...

the problem is not who has admin permission so who actually edit the page. that is under control. the need was strictly informative and show the reader who's the author of the page.

anyway, I'll post in the new request. thanks.
Title: Re: add "Last Edited by:" string in pages
Post by: ♦ Ninja ZX-10RR ♦ on March 01, 2015, 07:39:25 AM
Only thing that comes to my mind would be to simply add a little signature :P
Like...
-Ninja

Or something like this >_<
SimplePortal 2.3.8 © 2008-2024, SimplePortal