===============================================================================================================================

1.      upload      .

===============================================================================================================================

2.  install.php

===============================================================================================================================

3.  \engine\modules\profile.php   :

$tpl->set( '{lastdate}', langdate( "j F Y H:i", $row['lastdate'] ) );

 :

include_once ENGINE_DIR.'/modules/awards/show.awards.php';

===============================================================================================================================

4.  \engine\ajax\profile.php   :

$tpl->set( '{rate}', userrating( $row['user_id'] ) );

 :

include_once ENGINE_DIR.'/modules/awards/show.awards.php';

===============================================================================================================================
5.  \engine\classes\comments.class.php   :

	function build_comments( $template, $area, $allow_cache = false, $re_url = false ) { 
		global $config, $tpl, $is_logged, $member_id, $user_group, $lang, $dle_login_hash, $_TIME, $allow_comments_ajax, $ajax_adds, $news_date;

---  :

	function build_comments( $template, $area, $allow_cache = false, $re_url = false ) { 
		global $config, $tpl, $db, $is_logged, $member_id, $user_group, $lang, $dle_login_hash, $_TIME, $allow_comments_ajax, $ajax_adds, $news_date; $awards = get_vars(`awards`);

	if (!$awards) {
		$award = $db->query("SELECT id,name,img FROM ".PREFIX."_awards_list");
		while ($aw = $db->get_row($award)) {
			$awards[$aw['id']] = array ();
			foreach ($aw as $key => $value)
			{
				$awards[$aw['id']][$key] = $value;
			}
		}
		set_vars ("awards", $awards);
	}
		
		
:

			if ( count(explode("@", $row['foto'])) == 2 ) {
			
				$tpl->set( '{foto}', 'http://www.gravatar.com/avatar/' . md5(trim($row['foto'])) . '?s=' . intval($user_group[$row['user_group']]['max_foto']) );	
			
			} else {
				
				if($row['foto']) $tpl->set( '{foto}', $config['http_home_url'] . "uploads/fotos/" . $row['foto'] );
				else $tpl->set( '{foto}', "{THEME}/dleimages/noavatar.png" );
			
			}

 :

			if (!$row['awards']) {
				$aws = '  :(';
			} else {
				$aws = '';
				$ex_aw = explode(',',$row['awards']);
				foreach ($ex_aw as $value) {
					$aws .= "<a href=\"#\" onMouseOver=\"toolTip(': ".$awards[$value]['name'] ." ', 250)\" onMouseOut=\"toolTip()\"><img border=\"0\" src=\"/uploads/medals/".basename($awards[$value]['img'])."\"></a> " ;
				}
			}
			$tpl->set('{awards}', $aws);
			if ($member_id['user_group']==1) {
				$tpl->set('{awards-link}', "<a href=".$config['http_home_url'].$config['admin_path']."?mod=awards&action=graduate&user=".$row['name']."></a>");
			}else{
				$tpl->set('{awards-link}', "");
			}

===============================================================================================================================

6.  \engine\modules\lastcomments.php   :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, " . PREFIX . "_comments.date, " . PREFIX . "_comments.autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register, name, " . USERPREFIX . "_users.email, news_num, " . USERPREFIX . "_users.comm_num, user_group, lastdate, reg_date, signature, foto, fullname, land, icq, " . USERPREFIX . "_users.xfields, " . PREFIX . "_post.title, " . PREFIX . "_post.date as newsdate, " . PREFIX . "_post.alt_name, " . PREFIX . "_post.category FROM " . PREFIX . "_comments LEFT JOIN " . PREFIX . "_post ON " . PREFIX . "_comments.post_id=" . PREFIX . "_post.id LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id " . $where . " ORDER BY id desc";

 :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, " . PREFIX . "_comments.date, " . PREFIX . "_comments.autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register, name, " . USERPREFIX . "_users.email, news_num, " . USERPREFIX . "_users.comm_num, user_group, lastdate, reg_date, signature, foto, fullname, land, icq, " . USERPREFIX . "_users.xfields, group_concat(mid) as `awards` FROM " . PREFIX . "_comments LEFT JOIN " . USERPREFIX . "_awards ON " . PREFIX . "_comments.user_id=" . PREFIX . "_awards.uid LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id WHERE " . PREFIX . "_comments.post_id = '$news_id' " . $where_approve . " GROUP BY " . PREFIX . "_comments.id ORDER BY date " . $config['comm_msort'];

===============================================================================================================================

7.  /engine/modules/show.full.php   :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, date, autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register, name, " . USERPREFIX . "_users.email, news_num, comm_num, user_group, lastdate, reg_date, signature, foto, fullname, land, icq, xfields FROM " . PREFIX . "_comments LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id WHERE " . PREFIX . "_comments.post_id = '$news_id'" . $where_approve . " ORDER BY date " . $config['comm_msort'];

 :

$comments->query = "SELECT " . PREFIX . "_comments.id, post_id, " . PREFIX . "_comments.user_id, " . PREFIX . "_comments.date, " . PREFIX . "_comments.autor as gast_name, " . PREFIX . "_comments.email as gast_email, text, ip, is_register, group_concat(mid) as `awards`, name, " . USERPREFIX . "_users.email, news_num, " . USERPREFIX . "_users.comm_num, user_group, lastdate, reg_date, signature, foto, fullname, land, icq, " . USERPREFIX . "_users.xfields, " . PREFIX . "_post.title, " . PREFIX . "_post.date as newsdate, " . PREFIX . "_post.alt_name, " . PREFIX . "_post.category FROM " . PREFIX . "_comments LEFT JOIN " . PREFIX . "_awards ON uid = " . PREFIX . "_comments.user_id LEFT JOIN " . PREFIX . "_post ON " . PREFIX . "_comments.post_id=" . PREFIX . "_post.id LEFT JOIN " . USERPREFIX . "_users ON " . PREFIX . "_comments.user_id=" . USERPREFIX . "_users.user_id " . $where . " GROUP BY " . PREFIX . "_comments.id ORDER BY id desc";

===============================================================================================================================

8.  \index.php   :

$tpl->set ( '{topnews}', $tpl->result['topnews'] );

 :

$tpl->set ( '{topawards}', $topawards );
$tpl->set ( '{toppoints}', $toppoints );

===============================================================================================================================

9.  \templates\ \main.tpl    </head> :

<script type="text/javascript" src="/engine/modules/awards/tooltip.js"></script>
===============================================================================================================================

10.  \engine\modules\cron.php      :

	clear_cache();

}
?>

 :

include ENGINE_DIR.'/modules/awards/awards_cron.php';

===============================================================================================================================

11.  \engine\init.php         :

?>

 :

include_once ENGINE_DIR.'/modules/awards/topawards.php';

===============================================================================================================================

12.    comments.tpl     :

: {awards} {awards-link}

===============================================================================================================================

13.    userinfo.tpl     :

: {awards} {awards-link}

===============================================================================================================================

14.    uprofile_popup   :

: {awards} {awards-link}

===============================================================================================================================

15.  main.tpl      :

{topawards} -   
{toppoints} -   

===============================================================================================================================

16.     ,      !!!!!

===============================================================================================================================

   DLE 9.7 - 10 - Misterio, ICQ:639497339