vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Exclude Usergroups or forums from time limit editing posts (https://vborg.vbsupport.ru/showthread.php?t=245311)

Asterix_ita 06-25-2010 10:00 PM

Exclude Usergroups or forums from time limit editing posts
 
1 Attachment(s)
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


Sayid 06-26-2010 07:58 AM

This is one of the most important mods and it should be built in the system
An option for excluding forums will be really nice
Many thanks :)

H22A 06-26-2010 09:34 AM

Can it bypass Time Limit on Editing of Thread Title as well

SuperJoker 06-26-2010 11:16 AM

Thanks allot!

Hornstar 06-27-2010 05:52 AM

Yeah if you can build onto this, then you are my hero!
I'd love to have the ability to give certain users the ability to continue to edit in certain threads.

That would be amazing if you could somehow code that :D

jrap 06-29-2010 01:29 PM

Exactly what I was looking for, thanks so much!

Asterix_ita 06-30-2010 07:29 AM

Quote:

Originally Posted by SuperJoker
I was wondering if it would be easy to modify this mod to exclude a usergroup from the time limit of editing the thread title?

I'm sorry I could not find how to disable the option, as it has not provided the option value of 0 but I have a way to assign a different time than the default for selected groups

as a solution if you can come in handy release version 1.0.1 beta

SuperJoker 06-30-2010 11:57 AM

Sure.

Testing right now...

Edit: It works. Thanks allot!

Sweeks 07-02-2010 10:12 AM

Works great thank you!

Iguana Goddess 07-07-2010 03:36 AM

Great hack thanks.

LauraM 02-07-2011 04:19 PM

Quote:

Originally Posted by Sayid (Post 2059760)
This is one of the most important mods and it should be built in the system
An option for excluding forums will be really nice
Many thanks :)

I really REALLY need it to exclude FORUMS from the time limit. I have some classifieds forums that I would like users to be able to edit and/or delete their posts from without effecting the entire board (other discussion forums). Any chance of that happening?? :)

Asterix_ita 02-09-2011 03:57 PM

Quote:

I really REALLY need it to exclude FORUMS from the time limit
I think it's possible to exclude some forum.

LauraM 02-09-2011 06:41 PM

Quote:

Originally Posted by Asterix_ita (Post 2160606)
I think it's possible to exclude some forum.

Hi,

Thanks for the reply! I don't see that option in the screenshots you've posted. How/where would one be able to apply the option for excluding a particular forum instead of a usergroup?

Asterix_ita 02-11-2011 08:19 AM

We misunderstood, the current version was not provided but there will be the next;

the function you requested is being tested, these days I should be able to release version 1.0.2

LauraM 02-11-2011 10:57 AM

Oh, I see. Thank you very much for the explanation and your efforts to provide this option. I will keep an eye on this thread and watch for the new version!

Asterix_ita 02-11-2011 11:41 AM

released v.1.0.2

- remove change time limit (will create an addon for this function)
- add option exclude forum

LauraM 02-11-2011 11:55 AM

Wow! Thanks! You're amazing!

Going to download it now!

LauraM 02-11-2011 12:36 PM

Okay, I downloaded it, and installed it, and chose the forums I want to exclude from the time limit ........and I chose the usergroups I want to exclude underneath the forum exclude option, leaving blank the usergroups I wanted to give the ability to use this option to. And I logged in as a regular user and accessed a thread I created for testing purposes several days ago. While logged in as that user, I DO have the option to delete a thread......but when I tried to actually use that option and delete a thread, I got the error message:

you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


What am I missing?

LauraM 02-11-2011 12:45 PM

Never mind, I think I've got it. :) I was using the thread tools deletion option, and not the option to delete under the first post's "edit" button.

LauraM 02-11-2011 01:05 PM

Okay, got it working now and it's fabulous! Thanks so much!

Asterix_ita 02-11-2011 01:13 PM

I temporarily removed the addon v. 1.0.2 for more testing

Asterix_ita 02-11-2011 05:02 PM

released v.1.0.3

LauraM 02-11-2011 05:18 PM

What did you change?

Asterix_ita 02-11-2011 06:37 PM

In the 1.0.2 version was a bug, it compares the button edit, could change the text but when you save could not be taken

LauraM 02-11-2011 07:02 PM

Thanks........I uninstalled 1.0.2 and installed 1.0.3. :)

momen 03-29-2011 09:48 AM

Thank you very mutch.

Delazar 01-17-2012 03:27 PM

1 Attachment(s)
When you save I get this message:
Screenshot

Protium 08-21-2012 12:53 PM

I'm not sure why but I tried to click "Mark Installed" and I got a no permission error :(

Anyway it is installed on 3.8.1 PL1 and working fine.

Thanks

khurtsiya 02-27-2013 05:38 PM

Is there a mod not for editing, but posting?

joshg1 05-20-2013 04:09 PM

Quote:

Originally Posted by khurtsiya (Post 2406793)
Is there a mod not for editing, but posting?

Maybe I don't understand what you're asking, but Vb already has the capability to limit posting in a forum to certain usergroups.

A big missing thing in VB has been the ability to let certain groups edit their posts beyond the normal (global) time limit. We can adjust almost everything else in terms of limits by usergroup, but not this... until this great mod.

joshg1 05-20-2013 05:18 PM

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!

AramisErak 08-29-2013 09:34 AM

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.

Asterix_ita 08-29-2013 10:29 AM

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

AramisErak 09-06-2013 12:55 AM

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.)


All times are GMT. The time now is 06:35 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.01174 seconds
  • Memory Usage 1,811KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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