Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Exclude Usergroups or forums from time limit editing posts Details »»
Exclude Usergroups or forums from time limit editing posts
Version: 1.0.4, by Asterix_ita Asterix_ita is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.x Rating:
Released: 06-25-2010 Last Update: 02-12-2011 Installs: 48
Uses Plugins
Translations  
No support by the author.

Remove Time Limit on Editing of Posts for selected usergroups

Install:

Upload the file
Import product-ct_nolimit_edit.xml (To install version 1.0.3 from version 1.0.1 to proceed with the first unistall addon)
Configure in vBulletin Options -> CT No Limit Edit Post

Changelog
26.06.2010 v. 1.0.0 only No Limit Edit Post
30.06.2010 v. 1.0.1 No Limit Edit Post and Change Time limit editing Title Thread (beta)
[S]11.02.2011 v.1.0.2 remove change time limit (will create an addon for this function) - add option exclude forum [/S]
11.02.2011 v.1.0.3 remove change time limit (will create an addon for this function) - add option exclude forum
11.02.2011 v.1.0.4 optimized code of the plugin

Translations

important : The test was performed on a version 3.8.5 but should work on 3.8.X

Support
Low priority will be given to posters who do not have this marked as installed


If you like this modification support me by donating

Download Now

File Type: zip No Limit Edit Post_3.8.zip (2.1 KB, 78 views)
File Type: zip No Limit Edit Post_3.8_v1.0.1.zip (2.8 KB, 61 views)
File Type: zip No Limit Edit Post_3 .8_v1.0.4.zip (3.4 KB, 193 views)

Screenshots

File Type: png 03-06-2010 20-12-45.png (9.9 KB, 0 views)
File Type: png 03-06-2010 20-13-14.png (28.2 KB, 0 views)
File Type: png nolimit.png (57.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-20-2013, 05:18 PM
joshg1 joshg1 is offline
 
Join Date: Feb 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is fantastic Asterix! Thank you.
In the future, do you think there could be a way to set specific time limits for editing posts for each usergroup?
It seems today that your addon removes the global time limit for specific user groups, but doesn't let me specify things like "let usergroup{x} edit own posts for 60 days".
But regardless, this is a huge benefit and great addon!
Reply With Quote
  #33  
Old 08-29-2013, 09:34 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found that I needed to hack the code just a touch in order to be able to automatically remove people from the exemption.

Code:
if ((THIS_SCRIPT == 'editpost') OR (THIS_SCRIPT == 'showthread'))
			{
				if($vbulletin->options['ct_nolimit_active'])
				{    
					$ctnolimitgroups = explode(',',$vbulletin->options['ct_nolimit_groups']); 
					$ctnolimitexgroups = explode(',',$vbulletin->options['ct_nolimit_exgroups']); 
					$ctnolimitforums = explode(',',$vbulletin->options['ct_nolimit_forums']);
					
					if (is_member_of($vbulletin->userinfo,$ctnolimitgroups)) 
						{
						$GLOBALS['vbulletin']->options['edittimelimit'] = 0;
						if (!is_member_of($vbulletin->userinfo,$ctnolimitexgroups))
							{
							$GLOBALS['vbulletin']->options['edittimelimit'] = 0;
							}
						}
					else
						{
							if (in_array($threadinfo['forumid'],$ctnolimitforums)) 
							{
								if (!is_member_of($vbulletin->userinfo,$ctnolimitexgroups))
								{
								$GLOBALS['vbulletin']->options['edittimelimit'] = 0;
								}
							}
							
						}
				}
			}
By deleting the code in red, and adding the code in blue, the exception group now blocks any exception list member group, and so I canhave a "not allowed to edit posts" infraction group. It would be nice if there was a separate preference check for a group list that overrides the allowed to edit group list.

(It would be even nicer if that was adjacent to the allowed to edit boxes , in a separate column...)

Other than that bit of hacking, love it.
Reply With Quote
  #34  
Old 08-29-2013, 10:29 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

this var ctnolimitexgroups: selected groups are excluded in all forums

ctnolimitexgroups: selected groups are excluded in the forums previously selected

with your edit there is no total exclusion if the groups are not present in both var

regards
Reply With Quote
  #35  
Old 09-06-2013, 12:55 AM
AramisErak AramisErak is offline
 
Join Date: Apr 2013
Location: Alaska
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tested with various groups, and by deleting the red, adding the blue, it does not allow edit for other groups, does allow it for the included groups unless an excluded group is there. (If you're colorblind, however, you might not see the colors in the edit, which would cause failure.)
Reply With Quote
Reply

Thread Tools

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 06:35 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.04359 seconds
  • Memory Usage 2,269KB
  • Queries Executed 20 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (6)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete