Results 1 to 7 of 7

Thread: Amount of sub categories

  1. #1
    Senior Member attroll's Avatar
    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.

  2. #2
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    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.

  3. #3
    Senior Member attroll's Avatar
    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?

  4. #4
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    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.

  5. #5
    Senior Member attroll's Avatar
    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.

  6. #6
    Senior Member attroll's Avatar
    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.

  7. #7
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •