Menu

PFC Staff Block

PFC Staff Block

About

Display the site users by their user group

Developer

Developer: amir Bassir \ info@onenet.ir

Versions

2.0.0

What's New:

As always this isn't possible without your feedback.
Hey PhpfoxClub Users, we have great and amazing release with new features:

  • In the first step, we changed the MODULE to new system ( APP ), with professional and modern programming that based on most modern technologies.
namespace Apps\Pfc_StaffBlock\Service;

use Phpfox;
use Phpfox_Url;
use Core;
use Phpfox_Service;
use Phpfox_Database;
use Phpfox_Error;

/**

 * Class Process
 * @author  amir Bassir
 * @version 4.5.0
 * @package Apps\Pfc_StaffBlock\Service
 */

class Process extends \Phpfox_Service {

    /**

     * "Add / Update" Groups
     */
  • We've changed the all CORE Codes that now we have built a new, high-speed, high-end solution that we can be proud of.
  • All of the old settings v1.x.x have been removed, and now through the admin panel you'll be able to create unlimited user groups and customizations through the StaffBlock App.
  • The all we are trying to say that there are no Settings, no Limitations.

Add Group to Staff Block

  • New design using modern methods in the block
{* Developer: amir Bassir *}
{if setting('pfc_staffblocK_is_active')}
    {if user('staffblock.can_see_staff_block')}
        {if count($aGroups)}
            {foreach from=$aGroups key=iKey item=aGroup}
                {**
                 * Trying to get Users by 'user_group_id'
                 *}
                <div class="staffblock_title {if $iKey == 0}border-radius-up{/if}" style="background-color: {$aGroup.color};">
                    {$aGroup.title|clean|split:30|shorten:50:'...'}
                </div>
                <div class="staffblock">
                    <div class="block_listing_inline">
                        <ul>
                            <div style="display: block;">
                                {foreach from=$aUsers item=aUser}
                                    {* All of that I needed :)) *}
                                    {if $aUser.user_group_id == $aGroup.user_group_id}
                                        <li>
                                            {img user=$aUser suffix='_50_square' max_width=50 max_height=50 class='js_hover_title'}
                                        </li>
                                    {/if}
                                {/foreach}
                            </div>
                        </ul>
                    </div>
                </div>
            {/foreach}
        {/if}
    {/if}
    {* Get user information *}
    {if setting('pfc_staffblocK_user_information')}
        {if user('staffblock.can_see_user_info')}
            {foreach from=$aInfos key=iKey item=aInfo}
                <div class="staffblock_value" style="background-color: {$aInfo.color};">
                    {$aInfo.name|clean|split:30|shorten:50:'...'}
                </div>
                <div class="staffblock_title_value{$aInfo.class}" style="color: {$aInfo.color}; {if isset($aInfo.style)}{$aInfo.style}{/if};">
                    {$aInfo.value}
                </div>
            {/foreach}
        {/if}
    {/if}
{/if}
  • New UI/UX and Responsive design.

PFC Staff Block

  • We stopped supporting v3.x.x for Staff Block and focused on version 4 So we can give you the best. But you can still use the old versions of Staff Block for both Phpfox 3 and 4. But we also recommend that you update your script to the latest version and get new features with new, amazing and powerful Apps.
  • You no longer need to search the user group ID, which was a very difficult. Now you can simply enter the user group ID into the Database with just one simple click.
  • We removed some old features on the feed page that were not used by Users.
  • You no longer need to install and perform hard processes. Just upload the App with a simple click through the admin panel. The only thing that you absolutely have to do. ;)
  • Easy to Use.
  • and more...

WEbsite

http://amirbassir.ir/


MongoDB Logo MongoDB