Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Secondary Group Permissions Issue Details »»
Secondary Group Permissions Issue
Version: , by RaceJunkie RaceJunkie is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-05-2006 Last Update: Never Installs: 0
 
No support by the author.

I don't allow regular members play the arcade. I only allow supporters or VIP members. If I set a regular members secondary group to VIP they still can't play the arcade, but if I set the primary group to VIP they can.

Note: When the users secondary permission is set to VIP the permissions work fine everywhere on the site, it's only the arcade that has the problem.

I am currently running the most recent version
ibProArcade v2.5.6+

Show Your Support

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

Comments
  #12  
Old 10-31-2006, 09:20 PM
jiffy jiffy is offline
 
Join Date: May 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd be willing to kick in $20 for this. I have one forum that could use this. Switching to using only secondary user groups isn't really an option. It would be nice if it could function like other hacks where it looks to either the primary or secondary usergroup for the permissions. Not one or the other.
Reply With Quote
  #13  
Old 11-02-2006, 05:54 PM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool nice one mr jiffy. we got $70 up to now then in the pot is anyone else up for chipping in and givin mr zp a offer he cant refuse to sort this for us
Reply With Quote
  #14  
Old 11-02-2006, 06:37 PM
RaceJunkie RaceJunkie is offline
 
Join Date: Jun 2005
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With all the installs it has I can't believe there would not be more..
Reply With Quote
  #15  
Old 11-06-2006, 10:53 PM
jiffy jiffy is offline
 
Join Date: May 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got a PM from "Sarcoth" saying he got it sorted out and if I sent him my donation he would send me the details on fixing it. Anyone else get that PM?

I got a PM from "Sarcoth" saying he got it sorted out and if I sent him my donation he would send me the details on fixing it. Anyone else get that PM?
Reply With Quote
  #16  
Old 11-07-2006, 04:07 PM
RaceJunkie RaceJunkie is offline
 
Join Date: Jun 2005
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jiffy
I got a PM from "Sarcoth" saying he got it sorted out and if I sent him my donation he would send me the details on fixing it. Anyone else get that PM?

I got a PM from "Sarcoth" saying he got it sorted out and if I sent him my donation he would send me the details on fixing it. Anyone else get that PM?
I received the pm as well. There was no cost mentioned in the PM, only a link that I have not looked at yet. I don't want to do anything to dis-respect MrZero since he has put all the time into this mod. I will wait and see if he comes up with anything first.
Reply With Quote
  #17  
Old 11-07-2006, 04:30 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I talked to him and it is no real fix, just a hardcoded solution to once make sure certain secondary usergroups are checked. For any changes you need to alter PHP-Files again ...

So this is not what I understand as a real "fix" or "addon" to make ibProArcade check both primary and secondary usergroups.

I will try to look on that particular thing (but a real fix) for the upcoming v2.5.8+ release but can't promise anything yet
Reply With Quote
  #18  
Old 11-07-2006, 11:35 PM
RaceJunkie RaceJunkie is offline
 
Join Date: Jun 2005
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrZeropage
I talked to him and it is no real fix, just a hardcoded solution to once make sure certain secondary usergroups are checked. For any changes you need to alter PHP-Files again ...

So this is not what I understand as a real "fix" or "addon" to make ibProArcade check both primary and secondary usergroups.


I will try to look on that particular thing (but a real fix) for the upcoming v2.5.8+ release but can't promise anything yet
Well a look into is better than nothing at all. I don't mind doing any php edits for a temp fix, but before I spend the money on that I'll wait untill you release the next version.
Reply With Quote
  #19  
Old 12-19-2006, 10:33 PM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mr zp. dya think there is any chance of you implementing this issue in any version soon? i really need this for my forums and have been looking 6 months. its cool if you have no plans to add it in the future just let me know and i can look at paying a coder to implement the feature for me

thanks for your time
Reply With Quote
  #20  
Old 01-13-2007, 01:41 AM
MGSteve MGSteve is offline
 
Join Date: Aug 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't believe it doesn't treat permissions in the same way that vBulletin does. Sadly, I've only just found out it doesn't work as it should after I've set everything else up, spending 3 hours in the process.

Likewise, I'll gladly donate $25 IF you get this to work correctly with vBulletin's permission system, frankly I'm amazed you haven't done so already, given the pledges on this thread.

Not to mention, I'd have thought the majority of people installing this system will want to tie it into the subscription system & thus the usergroups.

Erm, I think I've done it anyway! It didn't appear to be very hard to do - so I'm thinking I've missed something! But it appears to work on my setup anyway....

Delete this out of the mod_arcade.php file...

Code:
        $DB->query("SELECT m.id, m.name, m.posts, m.arcade_ban, m.times_played, m.is_arcade_mod AS is_mod,
       			m.fav_games AS favs, m.user_sort, m.user_order, m.user_g_pp, m.membergroupids,
                    m.user_s_pp, m.def_g_cat, m.game_skin, m.arcade_mod_privs, m.arcade_pmactive, g.g_access_cp AS is_admin,
                    g.arcade_access, g.p_require, g.max_play, g.ppd_require, g.ibpa_cats AS allowed_categories
        	    FROM ibf_members AS m
                    LEFT JOIN ibf_groups AS g
                    ON (m.mgroup = g.g_id)   
                    WHERE id=".$ibforums->member['id']." LIMIT 0, 1");
        $this->user = $DB->fetch_row();

// use ON (m.membergroupids = g.g_id) in above Query for secondary Usergroup
and replace with
Code:
         // Mod by MGSteve to support vBulletin Secondary Groups.

        // We don't limit the number of rows returned now, so we'll get one row for each usergroup they're 
        // part of. So, we save the first row as we did before, but we then go through & merge all the usergroup category 
        // permissions and save this in the allowed_categories field of the $this->user array.
        
        $DB->query("SELECT m.id, m.name, m.posts, m.arcade_ban, m.times_played, m.is_arcade_mod AS is_mod,
       			m.fav_games AS favs, m.user_sort, m.user_order, m.user_g_pp, m.membergroupids,
                    m.user_s_pp, m.def_g_cat, m.game_skin, m.arcade_mod_privs, m.arcade_pmactive, g.g_access_cp AS is_admin,
                    g.arcade_access, g.p_require, g.max_play, g.ppd_require, g.ibpa_cats AS allowed_categories
        	    FROM ibf_members AS m, ibf_groups AS g 
                    WHERE 
                    (m.mgroup = g.g_id OR m.membergroupids = g.g_id)
                    AND
                    id={$ibforums->member['id']}");
        
        // Ok, how many rows have we got?
        $nRowMax = $DB->get_num_rows();
        $this->user = $DB->fetch_row();
        
        if ($nRowMax > 1)
        {
          // No point doing this if we've only returned one row!!
          for ($nRowCnt = 0;$nRowCnt < $nRowMax;$nRowCnt++)
          {
            if ($nRowCnt == 0)
              // We've already got the first row!
              $Row = $this->user;
            else
              $Row = $DB->fetch_row();

            $Cats[] = $Row['allowed_categories'];
          }
          
          // Ok, now collapse the array down into a Comma Seperated String (as stored in the DB)
          $Cats = implode(',',$Cats);
          // And save this back over the allowed_categories field in the first row.
          $this->user['allowed_categories'] = $Cats;
          unset($Cats);
          unset($Row);
          unset($nRowCnt);
          unset($nRowMax);
        }
Reply With Quote
  #21  
Old 01-13-2007, 07:24 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, will check this out and will integrate it in v2.5.9+ if everythink is ok with it
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 02:13 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.04753 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete