Идем в profile.tpl
ищим(в самом верху)
Kôd:
<script type="text/javascript">[after-reg]Profile.LoadPhoto();[/after-reg]
$(document).ready(function(){
music.jPlayerInc();
$('#wall_text, .fast_form_width').autoResize();
[owner]if($('.profile_onefriend_happy').size() > 4) $('#happyAllLnk').show();[/owner]
});
$(document).click(function(event){
wall.event(event);
});
</script>
меняем на
Kôd:
<script type="text/javascript">[after-reg]Profile.LoadPhoto();[/after-reg]
var startResizeCss = false;
var user_id = '{user-id}';
$(document).ready(function(){
$(window).scroll(function(){
if($('#type_page').val() == 'profile'){
if($(document).height() - $(window).height() <= $(window).scrollTop()+($(document).height()/2-250)){
wall.page(user_id);
}
if($(window).scrollTop() < $('#fortoAutoSizeStyleProfile').offset().top){
startResizeCss = false;
$('#addStyleClass').remove();
}
if($(window).scrollTop() > $('#fortoAutoSizeStyleProfile').offset().top && !startResizeCss){
startResizeCss = true;
$('body').append('<div id="addStyleClass"><style type="text/css" media="all">.wallrecord{width:770px;margin-left:-210px}.infowalltext_f{font-size:11px}.wall_inpst{width:688px}.public_likes_user_block{margin-left:585px}.wall_fast_opened_form{width:698px;margin-left:-150px}.wall_fast_block{width:710px;margin-top:2px;margin-left:-150px}.public_wall_all_comm{width:692px;margin-top:2px;margin-bottom:-2px}.player_mini_mbar_wall{width:710px;margin-bottom:0px}#audioForSize{min-width:700px}.wall_rec_autoresize{width:710px}.wall_fast_ava img{width:50px}.wall_fast_ava{width:60px}.wall_fast_comment_text{margin-left:57px}.wall_fast_date{margin-left:57px;font-size:11px}.public_wall_all_comm{margin-left:-150px}.size10{font-size:11px}</style></div>');
}
}
});
music.jPlayerInc();
$('#wall_text, .fast_form_width').autoResize();[owner]
if($('.profile_onefriend_happy').size() > 4) $('#happyAllLnk').show();
ajaxUpload = new AjaxUpload('upload_cover', {
action: '/index.php?go=editprofile&act=upload_cover',
name: 'uploadfile',
onSubmit: function (file, ext) {
if(!(ext && /^(jpg|png|jpeg|gif|jpe)$/.test(ext))) {
addAllErr(lang_bad_format, 3300);
return false;
}
$("#les10_ex2").draggable('destroy');
$('.cover_loaddef_bg').css('cursor', 'default');
$('.cover_loading').show();
$('.cover_newpos, .cover_descring').hide();
$('.cover_profile_bg').css('opacity', '0.4');
},
onComplete: function (file, row){
if(row == 1 || row == 2) addAllErr('Максимальны размер 7 МБ.', 3300);
else {
$('.cover_loading').hide();
$('.cover_loaddef_bg, .cover_hidded_but, .cover_loaddef_bg, .cover_descring').show();
$('#upload_cover').text('Изменить фото');
$('.cover_profile_bg').css('opacity', '1');
$('.cover_loaddef_bg').css('cursor', 'move');
$('.cover_newpos').css('position', 'absolute').css('z-index', '2').css('margin-left', '197px').show();
row = row.split('|');
rheihht = row[1];
postop = (parseInt(rheihht/2)-100);
if(rheihht <= 230) postop = 0;
$('#les10_ex2').css('height', +rheihht+'px').css('top', '-'+postop+'px');
cover.init('/uploads/users/'+row[0], rheihht);
$('.cover_addut_edit').attr('onClick', 'cover.startedit(\'/uploads/users/'+row[0]+'\', '+rheihht+')');
}
}
});[/owner]
});
$(document).click(function(event){
wall.event(event);
});
</script>
найти
Kôd:
<div id="jquery_jplayer"></div>
<input type="hidden" id="teck_id" value="" />
<input type="hidden" id="teck_prefix" value="" />
<input type="hidden" id="typePlay" value="standart" />
заменить на
Kôd:
<input type="hidden" id="type_page" value="profile" />
<div id="jquery_jplayer"></div>
<input type="hidden" id="teck_id" value="" />
<input type="hidden" id="teck_prefix" value="" />
<input type="hidden" id="typePlay" value="standart" />
в конце левого столбца блоков:
</div>[/notes]
<div class="clear"></div>
всталяем
<span id="fortoAutoSizeStyleProfile"></span>