Tony Wips
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Language] No std language files locationdon’t understand what kind of interference there could be, they are just the same language files (external to the plugin) but duplicated. Even, no problem if you deactivate the plugin if using wp-content/languages
I’ve been always using ersion 2.5.3
A workaround is to disable the conflicting plugin (using old-style constructor) before activation. Reenabling it after activation doesn’t cause the fatal error.
PHP Version 5.3.27
error_reporting: Local Value=4983; Master Value=22519Forum: Plugins
In reply to: [WP Users Exporter] Error: Invalid argument supplied for…@okoth1
“if (is_array($user))”
will always fail because $user is NOT an array but an object, so the inside code will be never executed.The main problem with the plugin is that it doesn’t print the header for the html and xls formats for problems with utf decode function.
That is a starting idea (and very raw for the additional plugins).
For the WP part, consider the five columns as overlapping in the members new role definition screen. This way you can quickly clone one of the five standards roles do define the new one and the add the ones that come from the additional plugins or custom ones.
As you can see, in WP each lower role has a set of capabilities which is a sub-set of the capabilities set of the adjacent higher role and this lets you sort all the capabilities as showed in the spreadshet.
A refinement of this could be applied to the capabilities introduced by the plugins.
First, the WP API should let you associate each new capability and role to the plugin that introduced it.
This is a first grouping.
Whithin this group it shouldn’t be difficult to implement an algorithm
wich assigns a weigth to each capability basing on the roles to which is enabled. After all of them are scanned, the can be sorted basing on the weight and apply the same logic applied for the WP standard capabilities. Overlap the columns and you abtain the layout for the configuration screen.And members will shine ??
I’ve prepared a spreadsheet with a basic idea on how arrange capabilities grouping for a single site installation (could prepare for multi site also if you’re interested).
It could also be useful to users in the understanding og the logic behind WP roles.You can find it here:
https://github.com/tony-wips/Members-Capab