Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #31  
Old 03-15-2015, 07:01 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by synseal View Post
Yes but WHY do they work different?
They work different because we wanted to avoid forcing administrators from having to go through multiple vBOptions, ticking potentially hundreds of boxes, in order for their forum to continue to operate as it did prior to installing the modification.

Imagine you are running a forum with 100 usergroups, because you're running a gaming clan forum that spans multiple different games, so you need fine-tuned permission control. You want to ban new clan members from posting links in PMs. There are a total of 10 usergroups that belong to "new clan members" for the various clans.

Scenario 1: You have to tick 10 boxes in 5 different settings in order to ban "new clan members" from posting links.
Scenario 2: You have to tick 90 boxes in 5 different settings in order to allow "full clan members", as well as all your staff, to post links.

I don't think you'll find anyone who would claim that Scenario 2 is the most user-friendly scenario.
Scenario 1 provides the most user-friendly experience for new installs.

This is why the setting was created in a backwards way.


PS: It's funny you should bring up our Thanks mod, considering the most frequently asked question from new customers is "I installed this mod and nobody can click any thanks button, where is the button to click thanks?" because we employ Scenario 2 in that mod.

There has literally not been a single week in recent memory where we have not received that question. It costs us, as well as our customers, time and money as a result.
The customer is frustrated because the modification appears not to work, so they feel like they have wasted their money.
We are frustrated because we have to answer the same question eleventy bajillion times.

I'm sure there's a way to solve this that works both ways, but thus far I haven't been able to think of it.


Fillip
Reply With Quote
Благодарность от:
synseal
  #32  
Old 03-16-2015, 05:02 AM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the explanation.

I did say this runs backwards on your site and you told me I was looking at the additional usergroup fundamentally wrong when I wasn't, which is why I said you haven't a clue. I wasn't wrong about this and how VB operates but I apologies for saying that to you.

With what you say above will your future Modification releases work the way this Modification does with additional usergroups or is this just a one off cause Ozzy wrote it. I seriously want to know as you offered me store credit and refused a refund and I wouldn't want to buy anything else further from your site that works this way round.

No offence its a serious question thanks.
Reply With Quote
  #33  
Old 03-16-2015, 05:17 PM
DragonByte Tech's Avatar
DragonByte Tech DragonByte Tech is offline
 
Join Date: Feb 2010
Location: Scotland
Posts: 8,814
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would depend on the nature of the functionality in question. If we ever were to add functionality that has the potential to negatively impact the stock functionality until such a time as the administrator has configured the mod, yes we would absolutely add a "backwards" setting like that again.

In a similar vein to the Thanks mod, we would have also gone with a "backwards" setting if we were writing the modification for the first time today, but with the knowledge of what the current permissions scheme has caused in terms of the support load.

In short, we can offer absolutely no guarantee that any of our existing, nor future mods will not contain such a permissions scheme.

As for the refund policy, this is clearly laid out in the Terms of Service which you gave us express notice you had read in full & agreed to, before you submitted your payment to us. The nature of digital software means that offering refunds for products that have been downloaded (and especially installed) would open us up to getting scammed. I'm not saying you are a scammer, I'm saying that this is unfortunately one of those cases of malicious individuals ruining it for the rest of you.

The fact that, on a case-by-case basis, we offer store credit is a middle ground where even if we are getting scammed, we lose less money than if we were scammed by a full refund.

Full refunds are only available if our system shows no record of the product being accessed/downloaded prior to requesting the refund.

All of that being said, this isn't the correct forum to discuss DragonByte Technologies' policies.


Fillip
Reply With Quote
  #34  
Old 03-17-2015, 02:18 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Those mods you mentioned work a bit different when checking permissions. They use something like:

PHP Code:
if (!($forumperms $vbulletin->bf_ugp_forumpermissions['canview'])) 
While the mod in the first post uses something like this:

PHP Code:
if (is_member_of($vbulletin->userinfoexplode(','$vbulletin->options['default_online_groups']))) 
Two totally different ways of checking, and both are legit, it just depends on how the coder who wrote the mod decided to do it.
Is it possible to code an option in the ACP to select between the two types of permission checks? Or would that cause a conflict in the code somewhere?

I realize it would almost double the code as you would have to do an "if such and such in the acp is checked use permissions a (or b)" for each option, which could be more of a hassle than it's worth.
Reply With Quote
  #35  
Old 03-17-2015, 09:13 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The question's been answered, please take any additional support discussion to the dbtech forum or PM.
Reply With Quote
Благодарность от:
BirdOPrey5
  #36  
Old 03-17-2015, 12:49 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kevin has cleaned this up of silly arguments. please act like grown ups.

JFYI, working "backwards" as you call it is unusual, but also fine, there are no "rules" about it.
Reply With Quote
Благодарность от:
synseal
  #37  
Old 03-18-2015, 03:35 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just so I don't get a warning or whatever, can we discuss my questions posted above? Or should I start a new thread or drop it altogether?
Reply With Quote
  #38  
Old 03-18-2015, 04:16 AM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
Just so I don't get a warning or whatever, can we discuss my questions posted above? Or should I start a new thread or drop it altogether?
As the thread starter I don't mind it being discussed as it still conforms to the thread subject at hand and I would also like this to work as all D-bytes other modifications do.

As said it is "unusual" for Modifications to work this way round so it may be beneficial for others that want it to work the "normal" way round way.

Unless DB are considering this already, I don't know?

(edit) please consider this the lite version as that works the same way.

So is there is no reason this cannot be discussed here according to the rules?
Reply With Quote
  #39  
Old 03-18-2015, 11:36 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
Is it possible to code an option in the ACP to select between the two types of permission checks? Or would that cause a conflict in the code somewhere?

I realize it would almost double the code as you would have to do an "if such and such in the acp is checked use permissions a (or b)" for each option, which could be more of a hassle than it's worth.
If the author checks using two differnet bits of code then it can be done, usually its not "double" the code either i.e. if the .xml file was 2mb it doesn't go to 4mb just by adding in a small amount of code to "check" something. Basically the author could add in a new setting in the setting group of the mods xml, then in the primary plugin that handles or initiates the parsing simply add the check to that plugin and have it check the new setting, if it does or does not match or equals this THEN do what you want done or not done etc. Edit: You could also have it check and set a variable, later in the plugin or in a plugin that works in conjunction with another - you then say IF the variable = this, do this etc.
Reply With Quote
2 благодарности(ей) от:
John Lester, synseal
  #40  
Old 03-22-2015, 04:00 AM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DragonByte Tech.

Is there any plans on making this modification work with the additional usergroups anytime soon so Admins can configure it the usual way or is this never going to be an option?

Just saying - I would pay allot more for this mod if it had that ability...........
Reply With Quote
Reply

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


All times are GMT. The time now is 01:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04565 seconds
  • Memory Usage 2,299KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (5)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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