Medals is impossible at this point, I'm afraid. Advanced Points MOD - link please, I'll see what I can do.Anyasha wrote:If this integrated with Medals MOD and Adrian's Advanced Points MOD...I'd be in heaven.
Medals is impossible at this point, I'm afraid. Advanced Points MOD - link please, I'll see what I can do.Anyasha wrote:If this integrated with Medals MOD and Adrian's Advanced Points MOD...I'd be in heaven.
Here's the link to the Advanced Points MOD: http://www.phpbb.com/community/viewtopi ... &t=1086515MartectX wrote:Medals is impossible at this point, I'm afraid. Advanced Points MOD - link please, I'll see what I can do.
Code: Select all
<?php
/**
*
* milestone_congratulations.php [French]
*
* @package - "Milestone Congratulations"
* @Traduction fr by Sylver ( http://www.farcry2-europe.com/forum/ )
* @version $Id: milestone_congratulations.php 5 2008-09-21 MartectX $
* @copyright (C)2008, MartectX ( http://mods.martectx.de/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//
$lang = array_merge($lang, array(
'MILESTONE_TITLE' => 'Félicitations étapes',
'MILESTONE_ERROR' => 'Veuillez d’abord exécuter l’administration du Panneau de configuration et installer le module!',
// ACP
'MC_SETTING' => 'Fonctionnalités',
'MC_SETTING_EXP' => 'Etapes destinées à être affichées sur l’index et la page d’historique.<br />Les historiques de <strong>tous</strong> les compteurs seront <strong>toujours</strong> tenus à jour!',
'MC_HISTORY' => 'Voir l’historique',
'MC_HISTORY_EXP' => 'Voir un lien vers la page d’historique sur la page d’index.<br />Les historiques de <strong>tous</strong> les compteurs seront <strong>toujours</strong> tenus à jour!',
'MC_HISTORYLINK' => 'Aperçu de l’historique complet',
'MC_COLOUR' => 'Mettre à jour les couleurs',
'MC_COLOUR_EXP' => 'Cochez la case pour mettre à jour toutes les couleurs d’utilisateurs (par exemple, après une promotion au statut de modérateur).',
'MC_INC_EXP' => 'Arrivé à l’étape actuelle, le compteur est incrémenté automatiquement par ce montant.',
'MC_SUCCESS' => 'Réglages sauvés!',
'MC_NOTNULL' => 'La valeur incrémentée doit être positive et ne doit pas être égale à zéro!',
'MC_CURRENT' => 'Réglage actuel du',
'MC_INCREMENT' => 'Incrémenter',
'MC_POSTS' => 'compteur de messages',
'MC_TOPICS' => 'compteur de sujets',
'MC_USERS' => 'compteur d’utilisateurs',
// Index
'MILESTONE' => 'Etape',
'MILESTONES' => 'Prochaines étapes',
'MILESTONE_HISTORY' => 'Historique',
'MILESTONE_PTU' => 'le <strong>#%1$d</strong> message a été fait par %2$s, le <strong>#%3$d</strong> sujet a été créé par %4$s; le <strong>#%5$d</strong> utilisateur enregistré est %6$s.',
'MILESTONE_PT' => 'le <strong>#%1$d</strong> message a été fait par %2$s, le <strong>#%3$d</strong> sujet a été créé par %4$s.',
'MILESTONE_PU' => 'le <strong>#%1$d</strong> message a été fait par %2$s; le <strong>#%3$d</strong> utilisateur enregistré est %4$s.',
'MILESTONE_TU' => 'le <strong>#%1$d</strong> sujet a été créé par %2$s; le <strong>#%3$d</strong> utilisateur enregistré est %4$s.',
'MILESTONE_P' => 'le <strong>#%1$d</strong> message a été fait par %2$s.',
'MILESTONE_T' => 'le <strong>#%1$d</strong> sujet a été créé par %2$s.',
'MILESTONE_U' => 'le <strong>#%1$d</strong> utilisateur enregistré est %2$s.',
// Viewonline
'VIEWING_MILESTONES' => 'Regarde la page Félicitations étapes',
));
?>
Code: Select all
<?php
/**
*
* info_acp_milestone_congratulations.php [French]
*
* @package - "Milestone Congratulations"
* @Traduction fr by Sylver ( http://www.farcry2-europe.com/forum/ )
* @version $Id: info_acp_milestone_congratulations.php 1 2008-07-29 MartectX $
* @copyright (C)2008, MartectX ( http://mods.martectx.de/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//
$lang = array_merge($lang, array(
'MC_TITLE' => 'Félicitations étapes',
'MC_CONFIG' => 'Installation félicitations étapes',
'MC_INSTALLED' => '<strong>Modification installée</strong><br />» Milestone Congratulations v%s',
'MC_UPDATED' => '<strong>Mise à jour modification</strong><br />» Milestone Congratulations v%s'
));
?>
Thanks!sylver35 wrote:I have install your mod, no problem!
I translated it in French:
Did you purge the cache?Khamosh-Saya wrote:But When i Do All the Settings And Click on Index Page
Nothing Show Only White Page Shows
Where is The Problem???
Code: Select all
<?php
/**
*
* @package phpBB3
* @version $Id: index.php,v 1.176 2007/10/05 14:30:06 acydburn Exp $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// IBPro Game Support
$autocom = request_var('autocom', '');
$act = request_var('act', '');
$do = request_var('do','');
if (strtolower($act) == 'arcade' && strtolower($do) == 'newscore')
{
require($phpbb_root_path . 'includes/arcade/scoretype/ibpro.'.$phpEx);
}
if (strtolower($autocom) == 'arcade')
{
require($phpbb_root_path . 'includes/arcade/scoretype/ibprov3.'.$phpEx);
}
//IBPro Game Support
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
display_forums('', $config['load_moderators']);
// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts = $config['num_posts'];
$total_topics = $config['num_topics'];
$total_users = $config['num_users'];
$l_total_user_s = ($total_users == 0) ? 'TOTAL_USERS_ZERO' : 'TOTAL_USERS_OTHER';
$l_total_post_s = ($total_posts == 0) ? 'TOTAL_POSTS_ZERO' : 'TOTAL_POSTS_OTHER';
$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';
// Grab group details for legend display
if ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
{
$sql = 'SELECT group_id, group_name, group_colour, group_type
FROM ' . GROUPS_TABLE . '
WHERE group_legend = 1
ORDER BY group_name ASC';
}
else
{
$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
FROM ' . GROUPS_TABLE . ' g
LEFT JOIN ' . USER_GROUP_TABLE . ' ug
ON (
g.group_id = ug.group_id
AND ug.user_id = ' . $user->data['user_id'] . '
AND ug.user_pending = 0
)
WHERE g.group_legend = 1
AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user->data['user_id'] . ')
ORDER BY g.group_name ASC';
}
$result = $db->sql_query($sql);
$legend = '';
while ($row = $db->sql_fetchrow($result))
{
$colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';
if ($row['group_name'] == 'BOTS')
{
$legend .= (($legend != '') ? ', ' : '') . '<span' . $colour_text . '>' . $user->lang['G_BOTS'] . '</span>';
}
else
{
$legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
}
}
$db->sql_freeresult($result);
// Generate birthday list if required ...
$birthday_list = '';
if ($config['load_birthdays'] && $config['allow_birthdays'])
{
$now = getdate(time() + $user->timezone + $user->dst - date('Z'));
$sql = 'SELECT user_id, username, user_colour, user_birthday
FROM ' . USERS_TABLE . "
WHERE user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%'
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$birthday_list .= (($birthday_list != '') ? ', ' : '') . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
if ($age = (int) substr($row['user_birthday'], -4))
{
$birthday_list .= ' (' . ($now['year'] - $age) . ')';
}
}
$db->sql_freeresult($result);
}
//Generate top poster list if enabled
if ($config['amount_top_posters'])
{
if (!function_exists('get_top_posters'))
{
include_once($phpbb_root_path . 'includes/functions_topposter.' . $phpEx);
}
get_top_posters();
}
include($phpbb_root_path . 'includes/functions_milestones.' . $phpEx);
$user->add_lang('mods/milestone_congratulations');
// Assign index specific vars
'MILESTONE_INFO' => milestone_info(),
'MILESTONE_MESSAGE' => milestone_message(),
'MILESTONE_HISTORY' => milestone_history(),
if ($config['load_birthdays'] && $config['allow_birthdays'] && ( $config['allow_birthdays_ahead'] > 0 ) )
{
if(!function_exists('get_upcbirthdays'))
{
include_once($phpbb_root_path . 'includes/functions_upcbirthdays.' . $phpEx);
}
get_upcbirthdays();
}
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], $total_posts),
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
'TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], $total_users),
'NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
'LEGEND' => $legend,
'BIRTHDAY_LIST' => $birthday_list,
'FORUM_IMG' => $user->img('forum_read', 'NO_NEW_POSTS'),
'FORUM_NEW_IMG' => $user->img('forum_unread', 'NEW_POSTS'),
'FORUM_LOCKED_IMG' => $user->img('forum_read_locked', 'NO_NEW_POSTS_LOCKED'),
'FORUM_NEW_LOCKED_IMG' => $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false,
// Contact Admin mod
'U_ADMIN_CONTACT' => '<a href="mailto:' . $config['board_email'] . '?subject=' . $user->lang['CONTACT_SUBJECT'] . '">' . $user->lang['CONTACT_ADMIN'] . '</a>',
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'mark=forums') : '',
'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '')
);
include($phpbb_root_path . 'includes/functions_activity_stats.' . $phpEx);
activity_mod();
// Output page
page_header($user->lang['INDEX']);
$template->set_filenames(array(
'body' => 'index_body.html')
);
page_footer();
?>
Hi,Khamosh-Saya wrote:Hi Dears
But When i Do All the Settings And Click on Index Page
Nothing Show Only White Page Shows
Where is The Problem???
i Havent Any Change in milestone_congratulations.phpsylver35 wrote:Hi,Khamosh-Saya wrote:Hi Dears
But When i Do All the Settings And Click on Index Page
Nothing Show Only White Page Shows
Where is The Problem???
A white page is all the time a problem of lang...
See the milestone_congratulations.php in language, sure you have a problem on this.
It must be in utf8 with no boom, or if you have do some change on this, maybe a -'- or a -,- ...
Code: Select all
include($phpbb_root_path . 'includes/functions_milestones.' . $phpEx);
$user->add_lang('mods/milestone_congratulations');
// Assign index specific vars
'MILESTONE_INFO' => milestone_info(),
'MILESTONE_MESSAGE' => milestone_message(),
'MILESTONE_HISTORY' => milestone_history(),
if ($config['load_birthdays'] && $config['allow_birthdays'] && ( $config['allow_birthdays_ahead'] > 0 ) )
{
if(!function_exists('get_upcbirthdays'))
{
include_once($phpbb_root_path . 'includes/functions_upcbirthdays.' . $phpEx);
}
get_upcbirthdays();
}
$template->assign_vars(array(
Code: Select all
if ($config['load_birthdays'] && $config['allow_birthdays'] && ( $config['allow_birthdays_ahead'] > 0 ) )
{
if(!function_exists('get_upcbirthdays'))
{
include_once($phpbb_root_path . 'includes/functions_upcbirthdays.' . $phpEx);
}
get_upcbirthdays();
}
include($phpbb_root_path . 'includes/functions_milestones.' . $phpEx);
$user->add_lang('mods/milestone_congratulations');
// Assign index specific vars
$template->assign_vars(array(
'MILESTONE_INFO' => milestone_info(),
'MILESTONE_MESSAGE' => milestone_message(),
'MILESTONE_HISTORY' => milestone_history(),
Depending on if your style is derived from proSilver or subSilver2 you'll have to uploadparkstee wrote:i get this message
template->_tpl_load_file(): File ./styles/Steels/template/milestones.html does not exist or is empty
You have to edit index_body.html as instructed in install.xml!parkstee wrote:got it working but not showing up on index page do i need to refresh the style as well?