Various modifications for phpBB3Show total views in index

Snippets for phpBB3
Previous topicNext topic
User avatar

Topic Author
dmzx
Founder
Founder
Magic user status: Online
Posts: 5975
Joined: Jan 13th, '14, 20:45
    unknown unknown

Show total views in index

Post by dmzx »

Show total views in index

Open index.php

Find This may be a partial find and not the whole line

Code: Select all

$total_users   = $config['num_users'];
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

// Get total topic views -- START
    $user->add_lang('mods/stats');
    $sql = 'SELECT SUM(topic_views) AS count
          FROM ' . TOPICS_TABLE . '
          WHERE topic_approved = 1';
    $result = $db->sql_query($sql);
    $total_views = (int) $db->sql_fetchfield('count');
    // Get total topic views -- END
Find This may be a partial find and not the whole line

Code: Select all

'TOTAL_USERS'   => sprintf($user->lang[$l_total_user_s], $total_users),
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

'TOTAL_VIEWS'   => $user->lang['TOTAL_VIEWS'] . ' <strong>' . $total_views . '</strong>',
Open styles/prosilver/template/index_body.html
Find This may be a partial find and not the whole line

Code: Select all

&bull; {TOTAL_TOPICS}
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

&bull; {TOTAL_VIEWS}
Open styles/subsilver2/template/index_body.html
Find This may be a partial find and not the whole line

Code: Select all

 {TOTAL_POSTS} | {TOTAL_TOPICS}
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

| {TOTAL_VIEWS}
binance.com ;) try it!
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: Show total views in index

Post by Midway »

Code: Select all

lang('mods/stats
language/xx/mods/stats is missing :roll:
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4796
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Show total views in index

Post by martin »

Some one forgot this part $user->add_lang('mods/stats');
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload
Download is here Make it easy for us to solve your issues
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4796
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Show total views in index

Post by martin »

Stats.php with some extra's

Code: Select all

<?php
/**
*
* @package phpBB Statistics
* @version $Id: stats.php 162 2010-12-11 13:29:18Z marc1706 $
* @copyright (c) 2009 - 2010 Marc Alexander(marc1706) www.m-a-styles.de, (c) TheUniqueTiger - Nayan Ghosh
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @based on: Forum Statistics by TheUniqueTiger - Nayan Ghosh
* @translator (c) ( Marc Alexander - http://www.m-a-styles.de ), TheUniqueTiger - Nayan Ghosh
*/

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(	
	'STATS'								=> 'phpBB Statistics',	
	'STATS_EXPLAIN'						=> 'Open phpBB Statistics',
	'STATS_BASIC'						=> 'Basic statistics',
	'STATS_BASIC_BASIC'					=> 'Basic Forum Statistics',
	'STATS_BASIC_ADVANCED'				=> 'Advanced Forum Statistics',
	'STATS_BASIC_MISCELLANEOUS'			=> 'Miscellaneous Statistics',
	'STATS_ACTIVITY'					=> 'Forum Activity',
	'STATS_ACTIVITY_FORUMS'				=> 'Forums Statistics',
	'STATS_ACTIVITY_TOPICS'				=> 'Topics Statistics',
	'STATS_ACTIVITY_USERS'				=> 'Users Statistics',
	'STATS_CONTRIBUTIONS'				=> 'Forum Contributions',
	'STATS_CONTRIBUTIONS_ATTACHMENTS'	=> 'Attachments Statistics',
	'STATS_CONTRIBUTIONS_POLLS'			=> 'Polls Statistics',
	'STATS_PERIODIC'					=> 'Periodic Statistics',
	'STATS_PERIODIC_DAILY'				=> 'Daily Statistics',
	'STATS_PERIODIC_MONTHLY'			=> 'Monthly Statistics',
	'STATS_PERIODIC_HOURLY'				=> 'Hourly Statistics',
	'STATS_SETTINGS'					=> 'Settings Statistics',
	'STATS_SETTINGS_BOARD'				=> 'Board Settings Statistics',
	'STATS_SETTINGS_PROFILE'			=> 'Profile Settings Statistics',
	'STATS_ADDONS'						=> 'Add-Ons',
	'STATS_ADDONS_MISCELLANEOUS'		=> 'hide',
	'STATS_DISABLED'					=> ' are currently disabled',
	
	'TOTALS'							=> 'Totals',
	'OVERALL'							=> 'Overall',
	'NONE'								=> 'None',
	'LIMIT_PROMPT'						=> 'Number of top %s to be retrieved',
	'GB'								=> 'GB',
	'AS_ON'								=> 'As on %s',	
	'DAMAGED_ADDON'						=> 'The Add-On %1$s is damaged. The following variables do not exist: %2$s. Please contact the author of the Add-On.',
	'ADDON_DISABLED'					=> 'The add-on you selected is currently disabled.<br /><br />',
	'ADDON_DISABLED_TITLE'				=> 'Add-On disabled',
	'NO_ADDONS'							=> 'There are currently no add-ons installed.<br /><br />',
	'NO_ADDONS_TITLE'					=> 'No installed Add-Ons',
	
	//basic stats
	'TOTAL_TOPICS'						=> 'Total topics',
	'TOTAL_USERS'						=> 'Total users',
	'TOTAL_FORUM_CAT'					=> 'Total forum categories',
	'TOTAL_FORUM_POST'					=> 'Total posting forums',
	'TOTAL_FORUM_LINK'					=> 'Total link forums',
	'TOTAL_FORUMS'						=> 'Total forums',
	'TOTAL_ATTACHMENTS'					=> 'Total attachments',
	'TOTAL_POLLS'						=> 'Total polls',
	'TOTAL_VIEWS'						=> 'Total topic views',
	'TOPICS_GLOBAL'						=> 'Global topics',
	'TOPICS_ANNOUNCE'					=> 'Announcement topics',
	'TOPICS_STICKY'						=> 'Sticky topics',
	'TOPICS_NORMAL'						=> 'Normal topics',
	'TOPICS_UNAPPROVED'					=> 'Unapproved topics',
	'UNAPPROVED_POSTS'					=> 'Unapproved posts',
	'USERS_INACTIVE'					=> 'Inactive users',
	'USERS_INACTIVE_EXPLAIN'			=> 'Users who have not visited in the past %d days',
	'USERS_ACTIVE'						=> 'Active users',
	'USERS_ACTIVE_EXPLAIN'				=> 'Users who have visited at least once in the past %d days',
	'USERS_TOTAL_BOTS'					=> 'Registered bots',
	'USERS_VISITED_BOTS'				=> 'Visited bots',
	'AVG_FILES_DAY'						=> 'Average attachments per day',
	'AVERAGES'							=> 'Averages',
	//advanced stats
	'BOARD_BACKGROUND'					=> 'Board background',
	'START_DATE'						=> 'Board start date',
	'BOARD_AGE'							=> 'Board age',
	'SECOND'							=> 'second',
	'MINUTE'							=> 'minute',
	'HOUR'								=> 'hour',
	'MONTHS'							=> 'months',
	'YEARS'								=> 'years',
	'BOARD_VERSION'						=> 'Board version',
	'GZIP_COMPRESSION'					=> 'GZip Compression',
	'ON'								=> 'On',
	'OFF'								=> 'Off',
	'DATABASE'							=> 'Database',
	'DATABASE_SIZE'						=> 'Database size',
	'DATABASE_INFO'						=> 'Database info',
	'FILESYSTEM'						=> 'Filesystem',
	'ATTACHMENTS_TOTAL'					=> 'Total attachments',
	'ATTACHMENTS_SIZE'					=> 'Total attachments size',
	'AVATARS_TOTAL'						=> 'Total avatars',
	'AVATARS_SIZE'						=> 'Total avatars size',
	'CACHED_FILES_TOTAL'				=> 'Total cached files',
	'CACHED_FILES_SIZE'					=> 'Total cache size',
	'INSTALLED_COMPONENTS'				=> 'Installed components',
	'STYLES'							=> 'Styles',
	'IMAGESETS'							=> 'Imagesets',
	'TEMPLATES'							=> 'Templates',
	'THEMES'							=> 'Themes',
	'LANG_PACKS'						=> 'Language packs',
	'BY'								=> 'by',
	'BOARD_VERSION_SECURE'				=> '3.x.x',
	'SORT_BY_PROMPT'					=> 'Sort installed components information by',
	
	// miscellaneous stats
	'SMILEY'							=> 'Smilies',
	'SMILEY_COUNT'						=> 'Number of smilies installed',
	'SMILEY_POST_COUNT'					=> 'Number of smilies displayed on posting',
	'TOP_SMILIES_BY_URL'				=> 'Top %d smilies',
	'TOP_BBCODES'						=> 'Top %d bbcodes',
	'TOP_ICONS'							=> 'Top %d icons',
	'WARNING_COUNT'						=> 'Number of warnings',
	'OWN_WARNINGS_COUNT'				=> 'Warnings received yourself',
	'WARNINGS_PER_USER'					=> 'Number of warnings per user',
	'WARNINGS_PER_DAY'					=> 'Number of warnings per day',
	'BBCODE'							=> 'BBCodes',
	'BBCODE_COUNT'						=> 'Number of BBCodes',
	'BBCODE_COUNT_CUSTOM'				=> 'Number of custom BBCodes',
	'ICONS'								=> 'Icons',
	'COMPONENTS_NAME'					=> 'Name',
	'COMPONENTS_ID'						=> 'ID',
	'COMPONENTS_AUTHOR'					=> 'Copyright/Author',
	'RECOUNT_PROGRESS'					=> '<br />%1$d of %2$d posts have been processed. Please wait until the script has finished.<br /><br />',
	
	//activity - forums
	'COUNT'								=> 'Count',
	'PERCENT'							=> 'Percent',
	'TOP_FORUMS_BY_TOPICS'				=> 'Top %d forums (by topics)',
	'TOP_FORUMS_BY_POSTS'				=> 'Top %d forums (by posts)',
	'TOP_FORUMS_BY_POLLS'				=> 'Top %d forums (by polls)',
	'TOP_FORUMS_BY_STICKY'				=> 'Top %d forums (by sticky topics)',
	'TOP_FORUMS_BY_VIEWS'				=> 'Top %d forums (by views)',
	'TOP_FORUMS_BY_PARTICIPATION'		=> 'Top %d forums (by user participation)',
	'TOP_FORUMS_BY_SUBSCRIPTIONS'		=> 'Top %d forums (by subscriptions)',
	//activity - topics
	'TOP_TOPICS_BY_POSTS'				=> 'Top %d topics (by posts)',
	'TOP_TOPICS_BY_POSTS_PCT_EXPLAIN'	=> 'The percentage shown is the percentage of posts in that topic to the total posts.',
	'TOP_TOPICS_BY_POSTS_BAR_EXPLAIN'	=> 'The bar shown is for comparison with the topic with highest number of posts.',
	'TOP_TOPICS_BY_VIEWS'				=> 'Top %d topics (by views)',
	'TOP_TOPICS_BY_VIEWS_PCT_EXPLAIN'	=> 'The percentage shown is the percentage of topic views compared to the total topic views.',
	'TOP_TOPICS_BY_PARTICIPATION'		=> 'Top %d topics (by user participation)',
	'TOP_TOPICS_BY_ATTACHMENTS'			=> 'Top %d topics (by attachments)',
	'TOP_TOPICS_BY_BOOKMARKS'			=> 'Top %d topics (by bookmarks)',
	'TOP_TOPICS_BY_SUBSCRIPTIONS'		=> 'Top %d topics (by subscriptions)',
	//activity - users
	'MEMBERS'							=> 'Members',
	'TOTAL_MEMBERS'						=> 'Total members',
	'TOTAL_REG_USERS'					=> 'Total registered users',
	'MOST_ONLINE'						=> 'Most users online',
	'INCLUDING_BOTS'					=> 'including Bots',
	'TOTAL_ONLINE'						=> 'Total users online',
	'ONLINE_ON'							=> 'on',
	'TOTAL_HIDDEN'						=> 'Total hidden users online',
	'TOTAL_MEMBERS_ONLINE'				=> 'Total members online',
	'TOP_USERS_BY_POSTS'				=> 'Top %d users (by posts)',
	'TOP_USERS_BY_TOPICS'				=> 'Top %d users (by topics)',
	'TOP_FRIENDS'						=> 'Top %d friends',
	'TOP_FOES'							=> 'Top %d ignored users (foes)',
	'TOP_USERS_BY_RECENT_POSTS'			=> 'Top %1$d users (by recent posts over last %2$d days)',
	'RECENT_POSTS_DAYS_LIMIT_PROMPT'	=> 'Number of days to be considered for recent posts',
	'WHO_IS_ONLINE_EXPLAIN'				=> 'based on users active over the past %d minutes',
	'RANKS_POSTS'						=> 'Ranks (Non-special ranks based on post count)',
	'RANKS'								=> 'Ranks',
	'RANK_MIN_POSTS'					=> 'Minimum post count',
	'MEMBER_COUNT'						=> 'Member count',
	'DELETED_USERS'						=> 'Deleted users',
	//contributions - attachments
	'ATTACHMENTS_ORPHAN'				=> 'Orphan attachments',
	'ATTACHMENTS_ORPHAN_SIZE'			=> 'Orphan attachments size',
	'ATTACHMENTS_OR_USERS'				=> 'Attachments/Users',
	'RECENT_ATTACHMENTS'				=> 'Recent %d attachments',
	'ATTACH_ON'							=> 'on',
	'ATTACH_DETAILS'					=> 'Details',	
	'TOP_ATTACHMENTS_BY_FILETYPE'		=> 'Top %d attachment filetypes (by file extension)',
	'ATTACHMENT_FILETYPES'				=> 'Attachment filetypes',
	'TOP_ATTACHMENTS_BY_FILESIZE'		=> 'Top %d attachments (by file size)',
	'TOP_ATTACHMENTS_BY_DOWNLOAD'		=> 'Top %d attachments (by download count)',
	'TOP_USERS_BY_ATTACHMENTS'			=> 'Top %d users (by attachments)',
	'TOTAL_DOWNLOADS'					=> 'Total file downloads',
	'TOTAL_DOWNLOADS_SIZE'				=> 'Total downloads size',
	//contributions - polls
	'TOTAL_OPEN_POLLS'					=> 'Total open polls',
	'TOTAL_POLL_VOTES'					=> 'Total poll votes',
	'RECENT_POLLS'						=> 'Recent %d polls',
	'POLLS'								=> 'Polls',	
	'TOP_POLLS_BY_VOTES'				=> 'Top %d polls (by votes)',
	'TOTAL_POLLS_VOTED'					=> 'Total polls in which you have voted',
	'TOTAL_ACCESSIBLE_POLLS'			=> 'Total accessible polls',
	//periodic - daily, monthly
	'PERIODIC_DAY'						=> 'Day',
	'PERIODIC_MONTH'					=> 'Month',
	'AVG_POSTS_DAY'						=> 'Average posts per day',	
	'AVG_TOPICS_DAY'					=> 'Average topics per day',
	'AVG_USER_REGS_DAY'					=> 'Average registrations per day',
	'AVG_POSTS_MONTH'					=> 'Average posts per month',	
	'AVG_TOPICS_MONTH'					=> 'Average topics per month',
	'AVG_USER_REGS_MONTH'				=> 'Average registrations per month',
	'TOTAL_USER_REGS'					=> 'Total user registrations',
	'STATS_MONTH_EXPLAIN'				=> 'The following statistics are shown for month of <strong>%s</strong>',
	'STATS_YEAR_EXPLAIN'				=> 'The following statistics are shown for the year <strong>%s</strong>',
	'USER_REGS'							=> 'User registrations',
	'SHOW_STATS_FOR_MONTH'				=> 'Show statistics for the selected month',
	'SHOW_STATS_FOR_YEAR'				=> 'Show statistics for the selected year',
	'ALL'								=> 'All',
	//periodic- hourly
	'SELECT_TIME_PERIOD'				=> 'Select the time period',
	'PERCENT_OF_TOTAL'					=> '%% of total forum %s',
	'PERIODIC_HOUR'						=> 'Hour',
	'HOURLY_STATS_EXPLAIN'				=> 'Showing statistics for <strong>%s</strong>',
	//settings - board
	'OVERRIDE_STYLE_EXPLAIN'			=> 'The board administrators have set the option to override the user’s style with the default style.',
	'DEFAULT_STYLE_EXPLAIN'				=> 'The default style is <strong>%1$s (%2$s)</strong> which is the overriden style for all users (including bots).',
	'STYLE'								=> 'Style',
	'USERS_INCL_BOTS'					=> 'Users using this style (including bots)',
	'LANGUAGES_BY_USERS'				=> 'Languages (by users who have set that language)',
	'LANGUAGE'							=> 'Language',
	'TIMEZONES_BY_USERS' 				=> 'Timezones (by users who have set that timezone)',
	'TIMEZONE'							=> 'Timezone',
	'LEGEND_BOLD_ITALIC'				=> 'The element shown in bold letters is the maximum for that group. The element shown in italics is the group that you belong to.',
	'SINGLE_LANG_EXPLAIN'				=> 'There is only a single language pack installed on the forum which is used by all the users.',
	'DEFAULT_LANG_EXPLAIN'				=> 'The default language pack is <strong>%1$s (%2$s)</strong>.',
	//settings - profile
	'AGE_RANGES'						=> 'Users count by age ranges',
	'AGE_RANGE'							=> 'Age range',
	'SEL_AGE_INTERVAL_PROMPT'			=> 'Select the range interval',
	'USERS_WITH_BIRTHDAY'				=> 'Users who have set their birthday', 
	'USERS_WITH_LOCATION'				=> 'Users who have set their location',
	'USER_LOCATIONS'					=> 'User Locations',
	'TOP_USER_LOCATIONS'				=> 'Top %d User Locations',
	'CUSTOM_PROFILE_FIELD'				=> 'Custom Profile Field',
	'CPF_TOP_X'							=> 'Top %1$d %2$s',
	'TOTAL_VALUES_SET_PROMPT'			=> 'Total users who have set %s',
	'DEFAULT'							=> 'default',
	
	// viewonline
	'VIEWING_STATS'						=> 'Viewing phpBB Statistics',
	
	// Error message
	'STATS_NOT_ENABLED'					=> 'phpBB Statistics is currently disabled.',
));
?>
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: Show total views in index

Post by Midway »

Thanks martin :thumbup:
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: Show total views in index

Post by Midway »

Stat.php in French

Code: Select all

<?php
/**
*
* @package phpBB Statistics
* @version $Id: stats.php 146 2010-05-18 22:33:54Z marc1706 $
* @copyright (c) 2009 Marc Alexander(marc1706) www.m-a-styles.de, (c) TheUniqueTiger - Nayan Ghosh
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @based on: Forum Statistics by TheUniqueTiger - Nayan Ghosh
* @translator (c) ( Marc Alexander - http://www.m-a-styles.de ), TheUniqueTiger - Nayan Ghosh
*/

if (!defined('IN_PHPBB'))
{
    exit;
}

if (empty($lang) || !is_array($lang))
{
    $lang = array();
}

$lang = array_merge($lang, array(    
    'STATS'                                => 'Statistiques phpBB',    
    'STATS_EXPLAIN'                        => 'Ouvrir Statistiques phpBB',
    'STATS_BASIC'                        => 'Statistiques de base',
    'STATS_BASIC_BASIC'                    => 'Statistiques de base du forum',
    'STATS_BASIC_ADVANCED'                => 'Statistiques avancées du forum',
    'STATS_BASIC_MISCELLANEOUS'            => 'Statistiques diverses',
    'STATS_ACTIVITY'                    => 'Activité du forum',
    'STATS_ACTIVITY_FORUMS'                => 'Statistiques des forums',
    'STATS_ACTIVITY_TOPICS'                => 'Statistiques des sujets',
    'STATS_ACTIVITY_USERS'                => 'Statistiques des utilisateurs',
    'STATS_CONTRIBUTIONS'                => 'Contributions du forum',
    'STATS_CONTRIBUTIONS_ATTACHMENTS'    => 'Statistiques des fichiers joints',
    'STATS_CONTRIBUTIONS_POLLS'            => 'Statistiques des sondages',
    'STATS_PERIODIC'                    => 'Statistiques périodiques',
    'STATS_PERIODIC_DAILY'                => 'Statistiques journalières',
    'STATS_PERIODIC_MONTHLY'            => 'Statistiques mensuelles',
    'STATS_PERIODIC_HOURLY'                => 'Statistiques horaires',
    'STATS_SETTINGS'                    => 'Statistiques des paramètres',
    'STATS_SETTINGS_BOARD'                => 'Statistiques des paramètres du forum',
    'STATS_SETTINGS_PROFILE'            => 'Statistiques des paramètres du profil',
    'STATS_ADDONS'                        => 'Add-Ons',
    'STATS_ADDONS_MISCELLANEOUS'        => 'cacher',
    'STATS_DISABLED'                    => ' sont actuellement désactivés',
    
    'TOTALS'                            => 'Totaux',
    'OVERALL'                            => 'Vue d’ensemble',
    'NONE'                                => 'Aucune',
    'LIMIT_PROMPT'                        => 'Nombre de %s à afficher dans le classement',
    'GB'                                => 'Go',
    'AS_ON'                                => 'À cet instant: %s',    
    'DAMAGED_ADDON'                        => 'L’add-on %1$s est endommagé. Les variable suivantes n’existent pas : %2$s. Contactez l’auteur de l’add-on.',
    'ADDON_DISABLED'                    => 'L’add-on que vous avez sélectionné est actuellement désactivé.<br /><br />',
    'ADDON_DISABLED_TITLE'                => 'Add-On désactivé',
    'NO_ADDONS'                            => 'Aucun add-on n’est installé actuellement.<br /><br />',
    'NO_ADDONS_TITLE'                    => 'Add-ons non installés',
    
    //basic stats
    'TOTAL_TOPICS'                        => 'Total de sujets',
    'TOTAL_USERS'                        => 'Total d’utilisateurs',
    'TOTAL_FORUM_CAT'                    => 'Total de catégories',
    'TOTAL_FORUM_POST'                    => 'Total de forums',
    'TOTAL_FORUM_LINK'                    => 'Total de forum-liens',
    'TOTAL_FORUMS'                        => 'Total de types de forum',
    'FORUMS'                            => 'Forums',
    'TOTAL_ATTACHMENTS'                    => 'Total de fichiers joints',
    'TOTAL_POLLS'                        => 'Total de sondages',
    'TOTAL_VIEWS'                        => 'Total de vus de sujets',
    'TOPICS'                            => 'Sujets',
    'TOPICS_GLOBAL'                        => 'Nombre de sujets “Annonce globale”',
    'TOPICS_ANNOUNCE'                    => 'Nombre de sujets “Annonce”',
    'TOPICS_STICKY'                        => 'Nombre de sujets “Post-it”',
    'TOPICS_NORMAL'                        => 'Nombre de sujets “Normal”',
    'TOPICS_UNAPPROVED'                    => 'Nombre de sujets en attente d’approbation',
    'UNAPPROVED_POSTS'                    => 'Nombre de messages en attente d’approbation',
    'USERS'                                => 'Utilisateurs',
    'USERS_INACTIVE'                    => 'Utilisateurs inactifs',
    'USERS_INACTIVE_EXPLAIN'            => 'Utilisateurs qui ne sont pas venus dans les %d derniers jours',
    'USERS_ACTIVE'                        => 'Utilisateurs actifs',
    'USERS_ACTIVE_EXPLAIN'                => 'Utilisateurs qui sont venus au moins une fois dans les %d derniers jours',
    'USERS_TOTAL_BOTS'                    => 'Bots enregistrés',
    'USERS_VISITED_BOTS'                => 'Bots en visite',
    'AVG_FILES_DAY'                        => 'Moyenne des fichiers joints par jour',
    'AVERAGES'                            => 'Moyennes',
    //advanced stats
    'BOARD_BACKGROUND'                    => 'Données du forum',
    'START_DATE'                        => 'Date d’ouverture du forum',
    'BOARD_AGE'                            => 'Age du forum',
    'SECOND'                            => 'seconde',
    'MINUTE'                            => 'minute',
    'HOUR'                                => 'heure',
    'MONTHS'                            => 'mois',
    'YEARS'                                => 'années',
    'BOARD_VERSION'                        => 'Version du forum',
    'GZIP_COMPRESSION'                    => 'Compression GZip',
    'ON'                                => 'On',
    'OFF'                                => 'Off',
    'DATABASE'                            => 'Base de données',
    'DATABASE_SIZE'                        => 'Taille de la base de données',
    'DATABASE_INFO'                        => 'Serveur de base de données',
    'FILESYSTEM'                        => 'Système de fichiers',
    'ATTACHMENTS_TOTAL'                    => 'Total des fichiers joints',
    'ATTACHMENTS_SIZE'                    => 'Taille totale des fichiers joints',
    'AVATARS_TOTAL'                        => 'Total des avatars',
    'AVATARS_SIZE'                        => 'Taille totale des avatars',
    'CACHED_FILES_TOTAL'                => 'Total des fichiers en cache',
    'CACHED_FILES_SIZE'                    => 'Taille totale du cache',
    'INSTALLED_COMPONENTS'                => 'Composants installés',
    'STYLES'                            => 'Styles',
    'IMAGESETS'                            => 'Packs d’images',
    'TEMPLATES'                            => 'Templates',
    'THEMES'                            => 'Thèmes',
    'LANG_PACKS'                        => 'Packs de langue',
    'BY'                                => 'par',
    'BOARD_VERSION_SECURE'                => '3.x.x',
    'SORT_BY_PROMPT'                    => 'Trier les informations des composants installés par',
    
    // miscellaneous stats
    'SMILEY'                            => 'Smileys',
    'SMILEY_COUNT'                        => 'Nombre de smileys installés',
    'SMILEY_POST_COUNT'                    => 'Smileys affichés dans la page de rédaction',
    'TOP_SMILIES_BY_URL'                => 'Top %d &bull; Smileys',
    'TOP_BBCODES'                        => 'Top %d &bull; BBCodes',
    'TOP_ICONS'                            => 'Top %d &bull; Icônes',
    'WARNING_COUNT'                        => 'Nombre d’avertissements',
    'OWN_WARNINGS_COUNT'                => 'Avertissements que vous avez reçus',
    'WARNINGS_PER_USER'                    => 'Nombre d’avertissements par utilisateur',
    'WARNINGS_PER_DAY'                    => 'Nombre d’avertissements par jour',
    'BBCODE'                            => 'BBCodes',
    'BBCODE_COUNT'                        => 'Nombre de BBCodes',
    'BBCODE_COUNT_CUSTOM'                => 'Nombre de BBCodes personnalisés',
    'ICONS'                                => 'Icônes',
    'COMPONENTS_NAME'                    => 'Nom',
    'COMPONENTS_ID'                        => 'ID',
    'COMPONENTS_AUTHOR'                    => 'Copyright/Auteur',
    'RECOUNT_PROGRESS'                    => '<br />%1$d de %2$d messages ont été traités. Attendez jusqu’à ce que le script ait terminé.<br /><br />',
    
    //activity - forums
    'COUNT'                                => 'Nombre',
    'PERCENT'                            => 'Pourcentage',
    'TOP_FORUMS_BY_TOPICS'                => 'Top %d &bull; Forums (par sujets)',
    'TOP_FORUMS_BY_POSTS'                => 'Top %d &bull; Forums (par messages)',
    'TOP_FORUMS_BY_POLLS'                => 'Top %d &bull; Forums (par sondages)',
    'TOP_FORUMS_BY_STICKY'                => 'Top %d &bull; Forums (par sujets “Post-it”)',
    'TOP_FORUMS_BY_VIEWS'                => 'Top %d &bull; Forums (par vus)',
    'TOP_FORUMS_BY_PARTICIPATION'        => 'Top %d &bull; Forums (par participation des utilisateurs)',
    'TOP_FORUMS_BY_SUBSCRIPTIONS'        => 'Top %d &bull; Forums (par surveillances)',
    //activity - topics
    'TOP_TOPICS_BY_POSTS'                => 'Top %d &bull; Sujets (par messages)',
    'TOP_TOPICS_BY_POSTS_PCT_EXPLAIN'    => 'Le pourcentage affiché est le pourcentage de messages dans ce sujet par rapport au total des messages.',
    'TOP_TOPICS_BY_POSTS_BAR_EXPLAIN'    => 'La barre affichée est une comparaison avec le sujet comprenant le plus grand nombre de messages.',
    'TOP_TOPICS_BY_VIEWS'                => 'Top %d &bull; Sujets (par vus)',
    'TOP_TOPICS_BY_VIEWS_PCT_EXPLAIN'    => 'Le pourcentage affiché est le pourcentage de vus du sujet par rapport au total de vus de sujets.',
    'TOP_TOPICS_BY_PARTICIPATION'        => 'Top %d &bull; Sujets (par participation des utilisateurs)',
    'TOP_TOPICS_BY_ATTACHMENTS'            => 'Top %d &bull; Sujets (par fichiers joints)',
    'TOP_TOPICS_BY_BOOKMARKS'            => 'Top %d &bull; Sujets (par favoris)',
    'TOP_TOPICS_BY_SUBSCRIPTIONS'        => 'Top %d &bull; Sujets (par surveillances)',
    //activity - users
    'MEMBERS'                            => 'Membres',
    'TOTAL_MEMBERS'                        => 'Total des membres',
    'TOTAL_REG_USERS'                    => 'Total des utilisateurs enregistrés',
    'MOST_ONLINE'                        => 'Record du nombre d’utilisateurs en ligne',
    'INCLUDING_BOTS'                    => 'Bots inclus',
    'TOTAL_ONLINE'                        => 'Total des utilisateurs en ligne',
    'ONLINE_ON'                            => 'le',
    'TOTAL_HIDDEN'                        => 'Total des invisibles en ligne',
    'TOTAL_MEMBERS_ONLINE'                => 'Total des membres en ligne',
    'TOP_USERS_BY_POSTS'                => 'Top %d &bull; Utilisateurs (par messages)',
    'TOP_USERS_BY_TOPICS'                => 'Top %d &bull; Utilisateurs (par sujets)',
    'TOP_FRIENDS'                        => 'Top %d &bull; Amis',
    'TOP_FOES'                            => 'Top %d &bull; Ignorés',
    'TOP_USERS_BY_RECENT_POSTS'            => 'Top %1$d &bull; Utilisateurs (par nouveaux messages au cours des %2$d jours)',
    'RECENT_POSTS_DAYS_LIMIT_PROMPT'    => 'Nombre de jours à considérer pour les nouveaux messages',
    'WHO_IS_ONLINE_EXPLAIN'                => 'basées sur les utilisateurs actifs des %d dernières minutes',
    'RANKS_POSTS'                        => 'Rangs (rangs non-spéciaux basés sur le nombre de messages)',
    'RANKS'                                => 'Rangs',
    'RANK_MIN_POSTS'                    => 'Nombre minimum de messages',
    'MEMBER_COUNT'                        => 'Nombre de messages de l’utilisateur',
    'DELETED_USERS'                        => 'Utilisateurs supprimés',
    //contributions - attachments
    'ATTACHMENTS_ORPHAN'                => 'Fichiers joints orphelins',
    'ATTACHMENTS_ORPHAN_SIZE'            => 'Taille des fichiers joints orphelins',
    'ATTACHMENTS_OR_USERS'                => 'Fichiers joints/Utilisateurs',
    'RECENT_ATTACHMENTS'                => '%d derniers fichiers joints',
    'ATTACH_ON'                            => 'le',
    'ATTACH_DETAILS'                    => 'Détails',    
    'TOP_ATTACHMENTS_BY_FILETYPE'        => 'Top %d &bull; Types de fichiers joints (par extension)',
    'ATTACHMENT_FILETYPES'                => 'Types de fichiers joints',
    'TOP_ATTACHMENTS_BY_FILESIZE'        => 'Top %d &bull; Fichiers joints (par taille de fichier)',
    'TOP_ATTACHMENTS_BY_DOWNLOAD'        => 'Top %d &bull; Fichiers joints (par téléchargements)',
    'FILESIZE'                            => 'Taille de fichier',
    'TOP_USERS_BY_ATTACHMENTS'            => 'Top %d &bull; Utilisateurs (par fichiers joints)',
    'TOTAL_DOWNLOADS'                    => 'Total des téléchargements de fichiers',
    'TOTAL_DOWNLOADS_SIZE'                => 'Taille totale des téléchargements',
    //contributions - polls
    'TOTAL_OPEN_POLLS'                    => 'Total des sondages actifs',
    'TOTAL_POLL_VOTES'                    => 'Total des votes',
    'RECENT_POLLS'                        => '%d derniers sondages',
    'POLLS'                                => 'Sondages',    
    'TOP_POLLS_BY_VOTES'                => 'Top %d &bull; Sondages (par votes)',
    'TOTAL_POLLS_VOTED'                    => 'Total des sondages dans lesquels vous avez voté',
    'TOTAL_ACCESSIBLE_POLLS'            => 'Total des sondages accessibles',
    //periodic - daily, monthly
    'PERIODIC_DAY'                        => 'Jour',
    'PERIODIC_MONTH'                    => 'Mois',
    'AVG_POSTS_DAY'                        => 'Moyenne des messages par jour',    
    'AVG_TOPICS_DAY'                    => 'Moyenne des sujets par jour',
    'AVG_USER_REGS_DAY'                    => 'Moyenne des inscriptions par jour',
    'AVG_POSTS_MONTH'                    => 'Moyenne des messages par mois',    
    'AVG_TOPICS_MONTH'                    => 'Moyenne des sujets par mois',
    'AVG_USER_REGS_MONTH'                => 'Moyenne des inscriptions par mois',
    'TOTAL_USER_REGS'                    => 'Total des inscriptions d’utilisateurs',
    'STATS_MONTH_EXPLAIN'                => 'Les statistiques suivantes sont affichées pour le mois de <strong>%s</strong>',
    'STATS_YEAR_EXPLAIN'                => 'Les statistiques suivantes sont affichées pour l’année <strong>%s</strong>',
    'USER_REGS'                            => 'Inscriptions d’utilisateurs',
    'SHOW_STATS_FOR_MONTH'                => 'Afficher les statistiques du mois sélectionné',
    'SHOW_STATS_FOR_YEAR'                => 'Afficher les statistiques de l’année sélectionnée',
    'ALL'                                => 'tout',
    //periodic- hourly
    'SELECT_TIME_PERIOD'                => 'Sélectionner la période',
    'PERCENT_OF_TOTAL'                    => '%% du total des %s',
    'PERIODIC_HOUR'                        => 'Heure',
    'HOURLY_STATS_EXPLAIN'                => 'Affichage des statistiques &bull; <strong>%s</strong>',
    //settings - board
    'OVERRIDE_STYLE_EXPLAIN'            => 'L’administrateur du forum a paramétré l’option qui annule le style de l’utilisateur pour le style par défaut.',
    'DEFAULT_STYLE_EXPLAIN'                => 'Le style par défaut pour tous les utilisateurs (bots inclus) est <strong>%1$s (%2$s)</strong>.',
    'STYLE'                                => 'Style',
    'USERS_INCL_BOTS'                    => 'Utilisateurs utilisant ce style (bots inclus)',
    'LANGUAGES_BY_USERS'                => 'Langues (par utilisateurs ayant choisi cette langue)',
    'LANGUAGE'                            => 'Langue',
    'TIMEZONES_BY_USERS'                 => 'Fuseaux horaires (par utilisateurs ayant choisi ce fuseau horaire)',
    'TIMEZONE'                            => 'Fuseau horaire',
    'LEGEND_BOLD_ITALIC'                => 'L’élément affiché en caractères gras représente le maximum pour ce groupe. L’élément affiché en italique représente le groupe auquel vous appartenez.',
    'SINGLE_LANG_EXPLAIN'                => 'Il n’y a qu’un seul pack de langue installé sur ce forum. Il est, par conséquent, utilisé par tous les utilisateurs.',
    'DEFAULT_LANG_EXPLAIN'                => 'Le pack de langue par défaut est <strong>%1$s (%2$s)</strong>.',
    //settings - profile
    'AGE_RANGES'                        => 'Utilisateurs par tranche d’âge',
    'AGE_RANGE'                            => 'Tranche d’âge',
    'SEL_AGE_INTERVAL_PROMPT'            => 'Sélectionner l’intervalle d’une tranche',
    'USERS_WITH_BIRTHDAY'                => 'Utilisateurs ayant indiqué leur anniversaire', 
    'USERS_WITH_LOCATION'                => 'Utilisateurs ayant indiqué leur localisation',
    'USER_LOCATIONS'                    => 'Localisations des utilisateurs',
    'TOP_USER_LOCATIONS'                => 'Top %d &bull; Localisations des utilisateurs',
    'CUSTOM_PROFILE_FIELD'                => 'Champs de profil personnalisés',
    'CPF_TOP_X'                            => 'Top %1$d &bull; %2$s',
    'TOTAL_VALUES_SET_PROMPT'            => 'Total des utilisateurs qui ont réglé - %s',
    'DEFAULT'                            => 'Par défaut',
    
    // viewonline
    'VIEWING_STATS'                        => 'consulte les statistiques phpBB',
    
    // Error message
    'STATS_NOT_ENABLED'                    => 'les statistiques phpBB sont actuellement désactivées.',
));
?>
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4796
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Show total views in index

Post by martin »

You may want to rip alot of the extra code out as most of it is not needed :thumbup:
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: Show total views in index

Post by Midway »

I know but seeing the beginning of the code I've seen this http://www.ma-styles.de based on this mod https://www.m-a-styles.de/viewtopic.php ... 9f72e7c815 that I had translated, so I actually enjoy even if everything is not necessary
Previous topicNext topic