Hello @js , I am taking a break from SMF and I am not able to guarantee the expected quality of support and updates at this time.
I'm hoping to return soon!
I'm hoping to return soon!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Quote from: flasidito on July 31, 2025, 07:29:10 AMyo tengo el link de la imagen que es: https://i.postimg.cc/m2f5rWz8/sasa.jpg pero cuando lo pongo no sale nada, tengo que poner algun codigo ? ayuda please
$context['template_layers'][] = 'shop';
// What if the Shop is disabled? User shouldn't be able to access the Shop
if (empty($modSettings['Shop_enable_shop']))
fatal_error(Shop::getText('currently_disabled'), false);
// Are they allowed to Access the Shop? If not.. YOU SHALL NOT PASS.
// Anyway if user can Manage the Shop, there's no problem :).
if (!empty($modSettings['Shop_enable_shop']) && !allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
isAllowedTo('shop_canAccess');
// Maintenance. Only Shop admins can access.
if (!empty($modSettings['Shop_enable_shop']) && !empty($modSettings['Shop_enable_maintenance']) && allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
fatal_error(Shop::getText('currently_maintenance'), false); // What if the Shop is disabled? User shouldn't be able to access the Shop
if (empty($modSettings['Shop_enable_shop']))
fatal_error(Shop::getText('currently_disabled'), false);
// Are they allowed to Access the Shop? If not.. YOU SHALL NOT PASS.
// Anyway if user can Manage the Shop, there's no problem :).
if (!empty($modSettings['Shop_enable_shop']) && !allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
isAllowedTo('shop_canAccess');
// Maintenance. Only Shop admins can access.
if (!empty($modSettings['Shop_enable_shop']) && !empty($modSettings['Shop_enable_maintenance']) && allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
fatal_error(Shop::getText('currently_maintenance'), false);
$context['template_layers'][] = 'shop';
English
Russian by Bugo
Italian by ParmaU
Romanian by Aimond