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:
Kevin
2008-02-14 23:05:08 +00:00
parent 0ad8e05dc4
commit dd47129743
5 changed files with 7 additions and 8 deletions

View File

@@ -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;

View File

@@ -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',

View File

@@ -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 -->