vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > Feedback & Suggestions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2007, 11:24 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Amount of sub categories

Right now we can set the amount of categories a usergroup can create.

I would like to see it so that we can assign it by individual users. If we could have it default by user group, but have it so we could change it in the users profile and have it override the usergroup setting.
Reply With Quote
  #2  
Old 02-26-2007, 11:30 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Amount of sub categories

Something like that would probably require changing vBulletin tables in order to add a new column for the number of categories, which is something we try to avoid whenever possible.
Reply With Quote
  #3  
Old 02-26-2007, 01:06 PM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Amount of sub categories

If the user group is only allowed one category then I could create another category in ADMIN and assign the user as the owner of the category and this would be a way of overriding this wouldn't it?
Reply With Quote
  #4  
Old 02-26-2007, 01:25 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Amount of sub categories

No, that would still count as the one of the users categories.
Any reason you couldn't just add another vB usergroup or two for those members and then add them to that group? If that wouldn't work, I could probably give you the code for a plugin that you could add to change the category limit for specific users.
Reply With Quote
  #5  
Old 02-26-2007, 01:35 PM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Amount of sub categories

Yes your right that would count as as one of the users categories, but if they have already reached their category limit then the Admin can create another category and assign it them them and that will let them exceed their limit right?

Yes I could also assign another VB usergroup, but I don't want to keep adding usergroups just for added the amount of categories a person can have.

Quote:
Originally Posted by Brian View Post
If that wouldn't work, I could probably give you the code for a plugin that you could add to change the category limit for specific users.
This would work also.
Reply With Quote
  #6  
Old 02-26-2007, 01:41 PM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: Amount of sub categories

I am so close to putting this on my real site now and asking for beta tester. I only need three things to complete that.
1. To get the categories that they can not submit to, to not show up.
2. Need the time stamp option.
3. Need to be able to override or set users to amount of categories that can create.
Reply With Quote
  #7  
Old 02-26-2007, 01:49 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Amount of sub categories

Ahh, sorry I misunderstood you. There are no checks for the number of categories a user has on the admin side, so yes, that would work.

Or a plugin that looks something like this should work:

Product: vBulletin
Hook Location: style_fetch
Title: (your choice)
Execution Order: 20
Plugin PHP Code:
PHP Code:
if (VBA_SCRIPT == 'blogicles')
{
    switch (
$vbulletin->userinfo['userid'])
    {
        case 
1:
        case 
2:
            
$vba_blog->_permissions['entries_maxcats'] = 500;
        break;

        case 
831:        
            
$vba_blog->_permissions['entries_maxcats'] = 25;
        break;
        
        case 
99:
            
$vba_blog->_permissions['entries_maxcats'] = 20;
        break;
            
    }


Of course that's just an example of the code. If you have multiple users that you want to allow the same number of categories for, that's where you use this part of the code:
PHP Code:
        case 1:
        case 
2:
        case 
5:
            
$vba_blog->_permissions['entries_maxcats'] = 50;
        break; 
Userids 1,2, and 5 will be allowed a maximum of 50 categories with that code.

Then when you just have one user who will have a different allotment, you use the code:
PHP Code:
        case 831:        
            
$vba_blog->_permissions['entries_maxcats'] = 25;
        break; 
That allows the userid 831 to have 25 categories.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collapse just some categories, some categories not basketmen Chit Chat 2 11-11-2006 11:40 AM
Changing the amount of latest post shown BroKeN "How Do I..." Questions 3 04-02-2006 06:49 PM
amount of queries Lionel Troubleshooting / "How do I..." Questions 23 08-21-2005 02:20 PM
[Q] What is the max amount of directories? MikaK "How Do I..." Questions 13 02-03-2005 04:51 PM


All times are GMT -4. The time now is 04:33 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.