vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Disable "last editd by" for specific usergroups (https://vborg.vbsupport.ru/showthread.php?t=300366)

K!nG 07-23-2013 01:46 AM

Disable "last editd by" for specific usergroups
 
Hello all,

I tried to look for this help, but found a lot of old posts with no answer, so creating own thread.

I would like to disable "last edited bye **username** today at **time** for specific usergroup.

I have Show edited by note on edited messages? set to NO in admincp. However still all usergroups including the ones i have it disable for can see it even if i edit my own post or some users posts. I understand i can increase the time limit, but that would be a temporary fix.

I wouldn't want this to be disabled for admins, but just specific usergroups only.

Help will be appreciated.

Thanks

t-j 07-23-2013 09:04 AM

Go to

ACP/usergroups/usergroup manager
Choose your group
Scroll down to General Permissions


dougdirac 07-23-2013 01:03 PM

One thing I think I figured out is that if you belong to multiple usergroups, the permissions seem to do a logical OR. So for "last edited by" to be disabled for a user, it has to be set to "no" for the primary usergroup as well as any secondary usergroups to which he/she may belong.

kh99 07-23-2013 01:48 PM

Quote:

Originally Posted by K!nG (Post 2434898)
I have Show edited by note on edited messages? set to NO in admincp. However still all usergroups including the ones i have it disable for can see it even if i edit my own post or some users posts. I understand i can increase the time limit, but that would be a temporary fix.

The message appears if there is an entry in the editlog table for a given post. The "Show edited by note on edited messages" controls whether or not an entry will be added to that table when the post is edited, but all users will see the message if there is an entry. So you would need to disable that setting for *your* usergroup. Also, if the post has already been edited and the message is appearing, changing the setting won't have any effect for that post - you would need to remove the entry from the editlog table.

It would be possible to create a plugin to hide those messages for certain usergroups and not others, if that's what you want to do.

Zachery 07-23-2013 07:15 PM

If you ever leave an edit reason, it will also show as well, incase that isn't clear, regardless of the permissions.

Ba'al 07-24-2013 10:38 PM

Quote:

Originally Posted by kh99 (Post 2434951)
The message appears if there is an entry in the editlog table for a given post. The "Show edited by note on edited messages" controls whether or not an entry will be added to that table when the post is edited, but all users will see the message if there is an entry. So you would need to disable that setting for *your* usergroup. Also, if the post has already been edited and the message is appearing, changing the setting won't have any effect for that post - you would need to remove the entry from the editlog table.

It would be possible to create a plugin to hide those messages for certain usergroups and not others, if that's what you want to do.

We have this issue also, it seemed to appear in 4.2.0 as we didnt have this issue 4.1.12, i have the Admin usergroup set to "No" and it still shows the message.

I will try adjusting the other usergroups i am in first and see if that works.

tbworld 07-24-2013 10:43 PM

Quote:

Originally Posted by kh99 (Post 2434951)
The message appears if there is an entry in the editlog table for a given post. The "Show edited by note on edited messages" controls whether or not an entry will be added to that table when the post is edited, but all users will see the message if there is an entry. So you would need to disable that setting for *your* usergroup. Also, if the post has already been edited and the message is appearing, changing the setting won't have any effect for that post - you would need to remove the entry from the editlog table.

It would be possible to create a plugin to hide those messages for certain usergroups and not others, if that's what you want to do.

Nice explanation @kh99, Thank you. Since you obviously looked at the source for that code, can I ask you where it is located. Then I can get up to speed.

Ba'al 07-24-2013 10:45 PM

Quote:

Originally Posted by dougdirac (Post 2434939)
One thing I think I figured out is that if you belong to multiple usergroups, the permissions seem to do a logical OR. So for "last edited by" to be disabled for a user, it has to be set to "no" for the primary usergroup as well as any secondary usergroups to which he/she may belong.

It worked, thanx

kh99 07-24-2013 11:19 PM

Quote:

Originally Posted by tbworld (Post 2435208)
Nice explanation @kh99, Thank you. Since you obviously looked at the source for that code, can I ask you where it is located. Then I can get up to speed.

In this case I knew because not too long ago I was trying to edit a post without leaving that message. So I don't know where in the code exactly to look. But what I usually do to trace down things like that is to go to the option in the admincp and find the var name (it pops up in a tool tip when you mouse over the option, but that might only happen in debug mode), then search the code for where it's used.


All times are GMT. The time now is 09:27 PM.

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.01091 seconds
  • Memory Usage 1,734KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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