Находим в profile.php Code // ASSIGN VARIABLES AND INCLUDE FOOTER И перед ним вставляем: Code // PROFILE PERCENT include '_percentage.php'; $profile_percent = show_percent($owner->user_info[user_id]); // END OF PERCENT После Code // ASSIGN VARIABLES AND INCLUDE FOOTER ставим Code $smarty->assign('p_percent', $profile_percent); 3) в profile.tpl ищем Code </table>
<table class="profile_menu" cellpadding="0" cellspacing="0" width="100%" />
{* SHOW PHOTOS OF THIS PERSON *} Перед ним вставляем Code <div class="lpb"><div id="lph"><div id="lpt" style="width: {$p_percent}%;"/></div></div></div> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px;"> <tr> <td style="border-top:1px solid #769C25; background-color: #eeeeee;" height="22px" valign="middle" align="left"><div style="position:absolute; float:right; overflow:visible; color: #769C25; font-weight:bold; width:200px; text-align:center; line-height:22px">{$p_percent}%</div><table width="{$p_percent}%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="background-color: #C7E38A; color: #769C25; font-weight:bold;" height="22px" valign="middle" align="right"></td> </tr> </table> Открываем /templates/styles.css и добавляем в конец эти строки: Code .lpb { border:1px solid #c6ced9; height:16px; margin:5px 0 15px 0; overflow:hidden; padding:1px; width:98%; }
#lpt { background:#a8b3c7 none repeat scroll 0 0; font-size:0; height:100%; width:0; }
#lph { background:#e4f3f6 none repeat scroll 0 0; font-size:0; height:100%; width:100%; } Установка завершена. Скачать"Процент заполнения профиля как в контакте"
|