Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2013, 01:46 AM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 07-23-2013, 09:04 AM
t-j t-j is offline
 
Join Date: May 2013
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to

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

Reply With Quote
  #3  
Old 07-23-2013, 01:03 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
Ba'al
  #4  
Old 07-23-2013, 01:48 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by K!nG View Post
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.
Reply With Quote
Благодарность от:
tbworld
  #5  
Old 07-23-2013, 07:15 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you ever leave an edit reason, it will also show as well, incase that isn't clear, regardless of the permissions.
Reply With Quote
  #6  
Old 07-24-2013, 10:38 PM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
Reply With Quote
  #7  
Old 07-24-2013, 10:43 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
Reply With Quote
  #8  
Old 07-24-2013, 10:45 PM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dougdirac View Post
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
Reply With Quote
  #9  
Old 07-24-2013, 11:19 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04268 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (2)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete