Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
Usergroup Permissions Details »»
Usergroup Permissions
Version: , by oakhurst oakhurst is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-08-2007 Last Update: Never Installs: 0
 
No support by the author.

I can't seem to get usergroups to work properly.

I have it set to allow 10 plays per day for Registered Members and unlimited plays per day for Premium Members.

It works fine if the user is only a member of the Premium Members group, but if they are also a member of Registered Users it takes the Registered Users permissions. It doesnt matter if I switch the Primary or Secondary groups. It always takes the Registered Usergroup permissions. My Premium Members are members of both groups.

How can I get the premium usergroup to override the regular members usergroup?

Thanks much and nice mod!

Show Your Support

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

Comments
  #2  
Old 04-08-2007, 07:37 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showpost.php?p=1209756&postcount=5" target="_blank">Read this</a>, fix will be included in next release (v2.6.2+)

Premium members have "0" (zero = unlimited) set for "plays per day", right ?
Reply With Quote
  #3  
Old 04-08-2007, 06:59 PM
oakhurst oakhurst is offline
 
Join Date: Dec 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrZeropage View Post

Premium members have "0" (zero = unlimited) set for "plays per day", right ?
Yes... and registered members have 10, but premium members are only getting 10 since they are also a member of the registered members group.
Reply With Quote
  #4  
Old 04-08-2007, 09:23 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try to give the premium-members 999 plays per day ...


**edit**

Ok, I see the logical problem, will be fixed in v2.6.2+

meanwhile do the following:

open /arcade/modules/mod_arcade.php

search for
Code:
   // get lowest ppd_require
   if ((($ppd_req == 0) && ($check['ppd_require'] > 0)) || ($ppd_req > $check['ppd_require']))
   {
    $ppd_req = $check['ppd_require'];
   }
and replace with
Code:
   // get lowest ppd_require
   if ($check['ppd_require'] == 0) { $zero_ppd = 1; $ppd_req = 0; }
   if ((($ppd_req == 0) && ($check['ppd_require'] > 0)) || ($ppd_req > $check['ppd_require']))
   {
    if ($zero_ppd == 0)
    {
     $ppd_req = $check['ppd_require'];
    }
   }
then search for
Code:
  $ppd_req = 0;
  $access_cp = 0;
  $cats  = array();
below this add
Code:
  $zero_p  = 0;
  $zero_ppd = 0;
Please let me know if that fits what you need
Reply With Quote
  #5  
Old 04-09-2007, 08:09 AM
oakhurst oakhurst is offline
 
Join Date: Dec 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First, I made the code modifications and it didn't work. Then, I changed the default number to 999 as you first instructed and it worked. I should have thought to use a higher number. Thanks for the help! Much appreciated.
Reply With Quote
  #6  
Old 04-09-2007, 05:55 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, but with the above code it should work, too ...

Will re-think this
Reply With Quote
  #7  
Old 04-11-2007, 05:30 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this solve the problem of registered members being able to play even though they have not reached the minimum limit of posts?
Reply With Quote
  #8  
Old 04-11-2007, 10:19 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why should this not work ? If you set registered usergroup to have x minimum posts and the users don't have another secondary usergroup that has less minimum posts, it will work (using v2.6.1+)
Reply With Quote
  #9  
Old 04-11-2007, 11:23 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, for some reason members who are in the Registered Members usergroup and in no other are able to play even though they have lower that the required posts needed. This is a new install on a new forum with the latest version.
Reply With Quote
  #10  
Old 04-16-2007, 07:54 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want, provide AdminCP+FTP access via PM and I will try a fix on your site (which then will be part of upcoming v2.6.2+ of course)
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 11:33 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.15265 seconds
  • Memory Usage 2,285KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete