killmix Posted March 11, 2013 Share Posted March 11, 2013 (edited) При использовании спойлера, происходит дублирование пустого...подскажите как убрать, где именно убирается.Версия IPB - 2.3.5Скрин прилагается. Edited March 11, 2013 by killmix Link to comment Share on other sites More sharing options...
Bot Posted March 11, 2013 Share Posted March 11, 2013 Обратите внимание По указанному вами в профиле "Board url" находится не IP.Board, либо модифицированный пиратский скрипт с удаленными копирайтами. Если вы указали неверный URL, пожауйста, поправьте его, потому что он скорее всего потребуется при диагностике вашей проблемы. Нелицензионные скрипты не приветствуются, т.к. зачастую именно некорректное "нуление" и является причиной проблем в них. Link to comment Share on other sites More sharing options...
killmix Posted March 13, 2013 Author Share Posted March 13, 2013 Ап, помогите плз. Link to comment Share on other sites More sharing options...
siv1987 Posted March 13, 2013 Share Posted March 13, 2013 1. В стандартной модификации 2.3 нет спойлера, да и сам 2.3 немного устарел.2. Здесь телепатов нет. Поэтому вряд ли тут кто-то сможет вам чем-то помочь... Link to comment Share on other sites More sharing options...
killmix Posted March 13, 2013 Author Share Posted March 13, 2013 (edited) 1. В стандартной модификации 2.3 нет спойлера, да и сам 2.3 немного устарел.2. Здесь телепатов нет. Поэтому вряд ли тут кто-то сможет вам чем-то помочь...Этот спойлер давно устанавливал человек, который уже давно не появлялся...Просто нужно убрать дублирование...Вопрос - возможно здесь допущена ошибка какая то? function imgFit(img,maxW){if(typeof(img.naturalHeight)=='undefined'){img.naturalHeight=img.height;img.naturalWidth=img.width}if(img.width>maxW){img.height=Math.round((maxW/img.width)*img.height);img.width=maxW;img.title='Click image to view full size';img.style.cursor='move';return false}else if(img.width==maxW&&img.width<img.naturalWidth){img.height=img.naturalHeight;img.width=img.naturalWidth;img.title='Click to fit in the browser window';return false}else{return true}}function initPost(context){initPostImages(context);initSpoilers(context)}function initPostImages(context){var $in_spoilers=$('div.sp-body var.postImg',context);$('var.postImg',context).not($in_spoilers).each(function(){var $v=$(this);var src=$v.attr('title');var $img=$('<img src="'+src+'" class="'+$v.attr('className')+'" alt="pic" />');$img.bind('click',function(){return imgFit(this,maxW)});$('#preload').append($img);var loading_icon='<a href="'+src+'" target="_blank"><img src="style_images/папка скина/spoiler_img/pic_loading.gif" alt="" border="0"/></a>';$v.html(loading_icon);if($.browser.msie||$.browser.opera){$img.one('load',function(){imgFit(this,maxW)});$v.empty().append($img);$v.after('<wbr>')}else{$img.one('load',function(){imgFit(this,maxW);$v.empty().append(this)})}})}function initSpoilers(context){$('div.sp-body',context).each(function(){var $sp_body=$(this);var name=this.title||'Скрытый текст';this.title='';$('<div class="sp-head folded clickable">'+name+'</div>').insertBefore($sp_body).click(function(e){if(!$sp_body.hasClass('inited')){initPostImages($sp_body);$sp_body.prepend('<div class="clear"></div>').append('<div class="clear"></div>').addClass('inited')}if(e.shiftKey){e.stopPropagation();e.shiftKey=false;var fold=$(this).hasClass('unfolded');$('div.sp-head',$($sp_body.parents('td')[0])).filter(function(){return $(this).hasClass('unfolded')?fold:!fold}).click()}else{$(this).toggleClass('unfolded');$sp_body.slideToggle('fast')}})})}var maxW=screen.width-202;$(document).ready(function(){$(this).each(function(){initPost($(this))})}); Edited March 13, 2013 by killmix Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now