Touch-Optimized Web Framework for Smartphones & Tablets
A unified, HTML5-based user interface system for all popular mobile device...
Accessing the User Group Settings (variables)
Lets say you want access to the user group setting for the blogs and find if they can add a new blog. In your controller class add:
Phpfox::getUserGroupParam //will call the function get the group settings
Phpfox::getUserBy('user_group_id') // will get you the user group id
blog.add_new_blog // will get the blog module settings for add_new_blog.
Seems pretty easy to start with. But where are the rest of the variables?
Finding the User Group Settings
Finding the list of settings vars can be done by looking in the module folder or via phpmyadmin.
Locating varible settings through the module folder
Find the module at /module/blog/install/phpfox.xml.php and looking for the xml node that says user_group_settings.
Example:
<user_group_settings>
<setting is_admin_setting="0" module_id="blog" type="boolean" admin="1" user="1" guest="0" staff="1" module="blog" ordering="2">edit_own_blog</setting>
The module attribute defines the related module, in this case its blog. The variable can be found between the settings node, which is edit_own_blog.
Locating the variables through phpmyadmin
Gain access into phpmyadmin and click on the phpfox_user_group_setting.
Add new comment