ХАк замены стандартной кнопки-плеера на плеер от плагина Wall
Вставить в header.tpl
PHP:
<script type="text/javascript" src="./include/standalone/audio-player.js"></script>
{literal}
<script type="text/javascript">
AudioPlayer.setup("./include/standalone/player.swf", {
width: 500,
initialvolume: 100,
transparentpagebg: "yes",
left: "000000",
lefticon: "000000"
});
</script>
{/literal}
найти
PHP:
{section name=browse_music_list_loop loop=$browse_music_list}
{assign var='media_dir' value=$url->url_userdir($browse_music_list[browse_music_list_loop].user_id)}
{assign var='media_path' value="`$media_dir``$browse_music_list[browse_music_list_loop].music_id`.`$browse_music_list[browse_music_list_loop].music_ext`"}
<div class='music_browse_item' style='width: 415px; float: left;'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='vertical-align: middle;padding-right: 3px;'>
<div class='music_button'>
<object width="17" height="17" data="./images/music_button.swf?song_url={$media_path}" type="application/x-shockwave-flash">
<param value="./images/music_button.swf?song_url={$media_path}" name="movie" />
<img width="17" height="17" alt="" src="noflash.gif" />
</object>
</div>
</td>
<td style='vertical-align: top; padding-left: 10px;'>
<div style='font-weight: bold; font-size: 13px;'><a href='{$url->url_create("profile", $browse_music_list[browse_music_list_loop].user_username)}'>{$browse_music_list[browse_music_list_loop].music_title|truncate:45:"...":true}</a></div>
<div class='music_browse_date'>
{assign var='music_date' value=$datetime->time_since($browse_music_list[browse_music_list_loop].music_date)}{capture assign="updated"}{lang_sprintf id=$music_date[0] 1=$music_date[1]}{/capture}
{lang_sprintf id=4000103 1=$updated 2=$url->url_create("profile", $browse_music_list[browse_music_list_loop].user_username) 3=$browse_music_list[browse_music_list_loop].music_uploader->user_displayname}
</div>
{if $user->user_exists && $user->level_info.level_music_allow_downloads}
<div style='margin-top: 4px;'>
<a type="application/force-download" href="{$media_path}">{lang_print id=4000095}</a>
</div>
{/if}
</td>
</tr>
</table>
</div>
{cycle values=",<div style='clear: both; height: 10px;'></div>"}
{/section}
Заменить
PHP:
{section name=browse_music_list_loop loop=$browse_music_list}
{assign var='media_dir' value=$url->url_userdir($browse_music_list[browse_music_list_loop].user_id)}
{assign var='media_path' value="`$media_dir``$browse_music_list[browse_music_list_loop].music_id`.`$browse_music_list[browse_music_list_loop].music_ext`"}
<div class='music_browse_item' style='width: 768px; float: left;'>
<table cellpadding='0' cellspacing='0' border="0" width="100%">
<tr>
<td style='vertical-align: top; padding-left: 10px;'>
<div style='font-weight: bold; font-size: 13px;'><a href='{$url->url_create("profile", $browse_music_list[browse_music_list_loop].user_username)}'>{$browse_music_list[browse_music_list_loop].music_title|truncate:45:"...":true}</a></div>
<div>
<p id="audioplayer_{$browse_music_list[browse_music_list_loop].music_id}"><img src="./images/icons/language_tool_loader_small.gif" /></p>
{literal}
<script type="text/javascript">
var music_id;
var music_id = {/literal}'{$browse_music_list[browse_music_list_loop].music_id}';{literal}
var media_path;
var media_path ={/literal}'{$media_path}';{literal}
AudioPlayer.embed("audioplayer_"+music_id, {soundFile: media_path});
</script>
{/literal}
</div>
<div class='music_browse_date'>
{assign var='music_date' value=$datetime->time_since($browse_music_list[browse_music_list_loop].music_date)}{capture assign="updated"}{lang_sprintf id=$music_date[0] 1=$music_date[1]}{/capture}
{lang_sprintf id=4000103 1=$updated 2=$url->url_create("profile", $browse_music_list[browse_music_list_loop].user_username) 3=$browse_music_list[browse_music_list_loop].music_uploader->user_displayname}
</div>
{if $user->user_exists && $user->level_info.level_music_allow_downloads}
<div style='margin-top: 4px;'>
<a type="application/force-download" href="{$media_path}">{lang_print id=4000095}</a>
</div>
{/if}
</td>
<div align="right">
</div>
<div style='clear: both; height: 10px;'></div>
{/section}
Кому помогло говорим спасибо