PDA

View Full Version : [Solved] Last edited


Stratis
04-22-2016, 04:45 PM
Is there a way to hide "Last edited" in posts from guests ?

Thanks

Seven Skins
04-22-2016, 04:48 PM
AdminCP > Usergroup manager > Unregistered / Not Logged In > Show edited by note on edited messages? = select no

Stratis
04-22-2016, 04:55 PM
Thought that setting was ok there for all situations.
Did not even think of it.

Thank you very much.

EDIT:
No, as I readed and tested this.. when some member edits the post is
to show thats edited or not. Maybe something else?

Lynne
04-23-2016, 12:04 AM
The above setting only controls whether Edited By gets shown when a user IN that usergroup makes an edit. If you want the Edited By to show to users, just not unregistered users, then you would need to put a conditional around the code in the postbit (or postbit_legacy) template to not show it to guests.

edit: Actually, Mark's plugin below is a better solution than editing the templates. :)

MarkFL
04-23-2016, 01:16 AM
Another alternative would be to create a plugin hooked at "postbit_display_complete" with the Plugin PHP Code:

if ($show['guest'])
{
$show['postedited'] = false;
}

Stratis
04-23-2016, 05:26 PM
Just tested, very easy this way as you say Lynne. Thank you. :)

:up: Thanks Mark.