vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [Solved] Last edited (https://vborg.vbsupport.ru/showthread.php?t=322440)

Stratis 04-22-2016 04:45 PM

[Solved] Last edited
 
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:

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.


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01079 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete