Milestone Congratulations

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Milestone Congratulations

Post by MartectX » Thu Oct 30, 2008 12:19 am

Anyasha wrote:If this integrated with Medals MOD and Adrian's Advanced Points MOD...I'd be in heaven. :lol:
Medals is impossible at this point, I'm afraid. Advanced Points MOD - link please, I'll see what I can do.

User avatar
Diet Ebola Cola
Registered User
Posts: 132
Joined: Fri Oct 03, 2008 3:57 am
Location: USA

Re: Milestone Congratulations

Post by Diet Ebola Cola » Thu Oct 30, 2008 12:31 am

MartectX wrote:Medals is impossible at this point, I'm afraid. Advanced Points MOD - link please, I'll see what I can do.
Here's the link to the Advanced Points MOD: http://www.phpbb.com/community/viewtopi ... &t=1086515

The Mod author also has an add-on for converting from the Simple Points Mod to the Advanced Points Mod on his support forum, if that helps.

@Anyasha: It may be easier for the Medals Mod author to create an add-on to integrate with this, so you may wish to ask them to check out this Mod.
Diet Ebola Cola

User avatar
sylver35
Registered User
Posts: 142
Joined: Sat Feb 23, 2008 2:38 pm
Location: France / Bretagne
Name: Philippe
Contact:

Re: Milestone Congratulations

Post by sylver35 » Sat Nov 01, 2008 10:33 pm

hi,

I have install your mod, no problem!
I translated it in French:
Image

Image

milestone_congratulations.php

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',
));

?>
info_acp_milestone_congratulations.php

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'

));

?>
the modifications with flags is my mod members flags by sylver in queue of validation...

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Milestone Congratulations

Post by Khamosh-Saya » Sun Nov 02, 2008 6:26 pm

Hi Dears

I Have Try To Install This Great Mod

But When i Do All the Settings And Click on Index Page

Nothing Show Only White Page Shows

Where is The Problem???

Every Thing is Fine Mine Portal Page Working Fine But When i Click on Board Index Nothing Shown :(

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Milestone Congratulations

Post by MartectX » Sun Nov 02, 2008 6:55 pm

sylver35 wrote:I have install your mod, no problem!
I translated it in French:
Thanks!
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???
Did you purge the cache?

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Milestone Congratulations

Post by Khamosh-Saya » Sun Nov 02, 2008 7:32 pm

Yes i have purge the cache and also refresh the template and also i have done ACP Settings.

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Milestone Congratulations

Post by Khamosh-Saya » Sun Nov 02, 2008 7:38 pm

This is Mine Index.php

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();

?>

User avatar
sylver35
Registered User
Posts: 142
Joined: Sat Feb 23, 2008 2:38 pm
Location: France / Bretagne
Name: Philippe
Contact:

Re: Milestone Congratulations

Post by sylver35 » Sun Nov 02, 2008 8:13 pm

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???
Hi,
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 -,- ...

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Milestone Congratulations

Post by Khamosh-Saya » Sun Nov 02, 2008 8:30 pm

sylver35 wrote:
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???
Hi,
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 -,- ...
i Havent Any Change in milestone_congratulations.php

i have edit all files in pspad which will some phpbb user recomended me... so this is 1st time i m using pspad. because before i use editlitepro that was creating some problem. so is it editor problem?

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Milestone Congratulations

Post by MartectX » Sun Nov 02, 2008 9:56 pm

OPEN index.php

FIND

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(
REPLACE WITH

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(),

Khamosh-Saya
Registered User
Posts: 871
Joined: Fri Nov 23, 2007 6:46 am
Location: UAE
Name: Jamshed Ansari
Contact:

Re: Milestone Congratulations

Post by Khamosh-Saya » Mon Nov 03, 2008 1:58 pm

Thanks MartectX

Its Done and Working Fine :)

Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: Milestone Congratulations

Post by Richazey » Mon Nov 03, 2008 8:07 pm

hi ive had this mod installed but its not working on my template the mod shows up in the acp but nothing on the index page when i click complete history overview

i get this message
template->_tpl_load_file(): File ./styles/Steels/template/milestones.html does not exist or is empty

what do i need to do to fix it

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Milestone Congratulations

Post by MartectX » Mon Nov 03, 2008 8:28 pm

parkstee wrote:i get this message
template->_tpl_load_file(): File ./styles/Steels/template/milestones.html does not exist or is empty
Depending on if your style is derived from proSilver or subSilver2 you'll have to upload
root/styles/[xxx]silver/template/milestones.html to the Steels/... directory and purge the cache.

Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

Re: Milestone Congratulations

Post by Richazey » Mon Nov 03, 2008 8:53 pm

got it working but not showing up on index page do i need to refresh the style as well?

User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Milestone Congratulations

Post by MartectX » Mon Nov 03, 2008 8:57 pm

parkstee wrote:got it working but not showing up on index page do i need to refresh the style as well?
You have to edit index_body.html as instructed in install.xml!

Locked

Return to “[3.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 11 guests

cron