Unreported: Attachments from specific forum(s) (block and installer) - Part II: language files, ACP and get rid of only for registered users restriction.
This commit is contained in:
@@ -135,7 +135,8 @@ class acp_portal
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_ATTACHMENTS_NUMBER_SETTINGS',
|
||||
'portal_attachments' => array('lang' => 'PORTAL_ATTACHMENTS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_attachments_number' => array('lang' => 'PORTAL_ATTACHMENTS_NUMBER' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_attachments_number' => array('lang' => 'PORTAL_ATTACHMENTS_NUMBER' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_attachments_forum_ids' => array('lang' => 'PORTAL_ATTACHMENTS_FORUM_IDS', 'validate' => 'string', 'type' => 'text:10:200', 'explain' => true),
|
||||
)
|
||||
);
|
||||
break;
|
||||
|
||||
@@ -194,6 +194,8 @@ $lang = array_merge($lang, array(
|
||||
'PORTAL_ATTACHMENTS_EXPLAIN' => 'Display this block on portal.',
|
||||
'PORTAL_ATTACHMENTS_NUMBER' => 'Limit of displayed attachments',
|
||||
'PORTAL_ATTACHMENTS_NUMBER_EXPLAIN' => '0 means infinite',
|
||||
'PORTAL_ATTACHMENTS_FORUM_IDS' => 'Attachments forum id(s)',
|
||||
'PORTAL_ATTACHMENTS_FORUM_IDS_EXPLAIN' => 'The id(s) of the forums from which the attachments should be displayed. Use a comma to separate multiple forums, or leave blank to use all available forums.',
|
||||
|
||||
// friends
|
||||
'ACP_PORTAL_FRIENDS_INFO' => 'Friends',
|
||||
|
||||
@@ -26,13 +26,10 @@
|
||||
<!-- IF S_DISPLAY_RANDOM_MEMBER -->
|
||||
<!-- INCLUDE portal/block/random_member.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
|
||||
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
|
||||
|
||||
<!-- IF S_DISPLAY_ATTACHMENTS -->
|
||||
<!-- INCLUDE portal/block/attachments.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_ADS_SMALL -->
|
||||
<!-- INCLUDE portal/block/ads_small.html -->
|
||||
|
||||
Reference in New Issue
Block a user