• Страница 1 из 1
  • 1
Модератор форума: dotbot  
Сообщество uCoz » Архивариус » Корзина » Страницадобавления/редактирования материала. (Ошибка в коде.)
Страницадобавления/редактирования материала.
skyurt666
Сообщений: 246
Репутация: 0

Сообщение # 1 | 16:51:47
Ребята помогите у меня проблема в коде.При добавление материала выбираешь категорию в которую надо добавлять файлы и категории вылезают не где положено где доджна быть а в низу сайта.Вот скрин посмотрите http://www.kinofox.tk/skrin/QIP_Shot-Screen_010.png

Добавлено (18 Авг 2014, 16:51:47)
---------------------------------------------
вот сам код.Помогите исправить чтобы все работало правильно.

Код
<!DOCTYPE html>
<html>
<head>
<title>$SECTION_NAME$ - $MODULE_NAME$ - $SITE_NAME$</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link type="text/css" rel="StyleSheet" href="/_st/my.css" />
<link media="screen" href="/style/engine.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/orating_pack.js"></script>
<script type="text/javascript" src="/zakaz/zakaz.js"></script>
<script src="/js/bookmark.js"></script>
<script type="text/javascript" src="/js/ImgLoads.js"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
$(".fade").css("opacity", "1");
$(".fade").hover(function () {
$(this).stop().fadeTo(300, 0.65);
},
function () {
$(this).stop().fadeTo(300, 1);
};);
};);

$(function() {
$(".fade2").css("opacity","0");
$(".fade2").hover(function () {
$(this).stop().animate({
opacity: 1
}, "slow");
},
function () {
$(this).stop().animate({
opacity: 0
}, "slow");
};);
};);

(function ($) {

$(document).ready(function() {
$("a").easyTooltip();
$("img").easyTooltip();
};);

$.fn.easyTooltip = function (b) {
var c = {
xOffset: 12,
yOffset: 20,
tooltipId: "easyTooltip",
clickRemove: false,
content: "",
useElement: ""
};
var b = $.extend(c, b);
var d;
this.each(function () {
var a = $(this).attr("title");
$(this).hover(function (e) {
d = (b.content != "") ? b.content : a;
d = (b.useElement != "") ? $("#" + b.useElement).html() : d;
$(this).attr("title", "");
if (d != "" && d != undefined) {
$("body").append("<div id='" + b.tooltipId + "'><div class='easyTooltip'>" + d + "</div></div>");
$("#" + b.tooltipId).css("position", "absolute").css("top", (e.pageY - b.yOffset) + "px").css("left", (e.pageX + b.xOffset) + "px").css("display", "none").fadeIn("fast")
}
}, function () {
$("#" + b.tooltipId).remove();
$(this).attr("title", a)
};);
$(this).mousemove(function (e) {
$("#" + b.tooltipId).css("top", (e.pageY - b.yOffset) + "px").css("left", (e.pageX + b.xOffset) + "px")
};);
if (b.clickRemove) {
$(this).mousedown(function (e) {
$("#" + b.tooltipId).remove();
$(this).attr("title", a)
};)
}
};)
}
};)jQuery);

$(document).ready(function() {
$(".menu").accordion({
accordion:false,
speed: 500,
closedSign: '<span class="ac_pl"></span>',
openedSign: '<span class="ac_mn"></span>'
};);
};);
(function($){
$.fn.extend({

//pass the options variable to the function
accordion: function(options) {

var defaults = {
accordion: 'true',
speed: 300,
closedSign: '[+]',
openedSign: '[-]'
};

// Extend our default options with those provided.
var opts = $.extend(defaults, options);
//Assign current element to variable, in this case is UL element
var $this = $(this);

//add a mark [+] to a multilevel menu
$this.find("li").each(function() {
if($(this).find("ul").size() != 0){
//add the multilevel sign next to the link
$(this).find("a:first").append("<span>"+ opts.closedSign +"</span>");

//avoid jumping to the top of the page when the href is an #
if($(this).find("a:first").attr('href') == "#"){
$(this).find("a:first").click(function(){return false;};);
}
}
};);

//open active level
$this.find("li.active").each(function() {
$(this).parents("ul").slideDown(opts.speed);
$(this).parents("ul").parent("li").find("span:first").html(opts.openedSign);
};);

$this.find("li a").click(function() {
if($(this).parent().find("ul").size() != 0){
if(opts.accordion){
//Do nothing when the list is open
if(!$(this).parent().find("ul").is(':visible')){
parents = $(this).parent().parents("ul");
visible = $this.find("ul:visible");
visible.each(function(visibleIndex){
var close = true;
parents.each(function(parentIndex){
if(parents [parentIndex]== visible[visibleIndex]){
close = false;
return false;
}
};);
if(close){
if($(this).parent().find("ul") != visible[visibleIndex]){
$(visible[visibleIndex]).slideUp(opts.speed, function(){
$(this).parent("li").find("span:first").html(opts.closedSign);
};);

}
}
};);
}
}
if($(this).parent().find("ul:first").is(":visible")){
$(this).parent().find("ul:first").slideUp(opts.speed, function(){
$(this).parent("li").find("span:first").delay(opts.speed).html(opts.closedSign);
};);

}else{
$(this).parent().find("ul:first").slideDown(opts.speed, function(){
$(this).parent("li").find("span:first").delay(opts.speed).html(opts.openedSign);
};);
}
}
};);
}
};);
};)jQuery);

jQuery(function () {
var scroll_timer;
var displayed = false;
var top = jQuery(document.body).children(0).position().top;
jQuery(window).scroll(function () {
window.clearTimeout(scroll_timer);
scroll_timer = window.setTimeout(function () {
if(jQuery(window).scrollTop() <= top)
{
displayed = false;
jQuery('#scroll_to_top a').fadeOut(500);
}
else if(displayed == false)
{
displayed = true;
jQuery('#scroll_to_top a').stop(true, true).show().click(function () { jQuery('#scroll_to_top a').fadeOut(500); };);
}
}, 100);
};);
};);
//<![CDATA[
jQuery(document).ready(function(){
jQuery("body").append("<div id=\"scroll_to_top\"><a href=\"#top\">Наверх страницы</a></div>");
jQuery("#scroll_to_top a").css({ 'display' : 'none', 'z-index' : '9', 'position' : 'fixed', 'top' : '100%', 'width' : '140px', 'margin-top' : '-30px', 'right' : '40%', 'margin-left' : '-50px', 'height' : '20px', 'padding' : '3px 5px', 'font-size' : '14px', 'text-align' : 'center', 'padding' : '3px', 'color' : '#FFFFFF', 'background-color' : '#000', '-moz-border-radius' : '3px', '-khtml-border-radius' : '3px', '-webkit-border-radius' : '3px', 'opacity' : '.6', 'text-decoration' : 'none'};);
jQuery('#scroll_to_top a').click(function(){
jQuery('html, body').animate({scrollTop:0}, 'slow');
};);

};);

//]]>
</script>

$ADMIN_BAR$
<div id="wrapper">
$GLOBAL_AHEADER$
<div id="content2">
<div class="content_bg">
<div class="content">
<aside class="lcol">
$GLOBAL_LEFTMENU$
$GLOBAL_CLEFTER$
</aside>
<aside class="rcol">

<div class="speedbar"><span>{speedbar}</span></div>

<div id='dle-content'>
<!-- <middle> --><!-- <body> --><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="80%"><a href="$HOME_PAGE_LINK$"><!--<s5176>-->Главная<!--</s>--></a> » <a href="$MODULE_URL$"><!--<s5182>-->Файлы<!--</s>--></a> » $SECTION_NAME$</td>
<td align="right" style="white-space: nowrap;"><?if($ADD_ENTRY_LINK$)?>[ <a href="$ADD_ENTRY_LINK$"><!--<s5186>-->Добавить материал<!--</s>--></a> ]<?endif?> </td>
</tr>
</table>
<hr />
$BODY$<!-- </body> --><!-- </middle> -->
</div>
</aside>
</div>
</div>
</div>
<!-- /content -->
$GLOBAL_BFOOTER$
</div>
<!-- /wrapper -->

</body>

</html>

Skyurt
Selena
Сообщений: 15657
Репутация: 1100

Сообщение # 2 | 17:20:15
skyurt666, возможно конфликт скриптов. Особенно, если библиотеки не совпадают.

Отправляя сообщение о помощи, приводите ссылку на свой сайт. Это не считается рекламой, зато снимает массу вопросов.
skyurt666
Сообщений: 246
Репутация: 0

Сообщение # 3 | 19:10:40
а не могли бы мне исправить чтобы все работало правильно?

Skyurt
skyurt666
Сообщений: 246
Репутация: 0

Сообщение # 4 | 21:14:05
В чем проблема при редактирование материала вылезает окошео.Вот скрин http://www.kinofox.tk/skrin/QIP_Shot-Screen_012.png

Skyurt
Yuri_G
uWeb support
uVip manager
Сообщений: 4336
Репутация: 943

Сообщение # 5 | 22:06:17
skyurt666, предоставьте тестового пользователя с правами на редактирование материала для более детального обзора данной проблемы, по скриншоту увы помощи не будет.

Сообщество uCoz » Архивариус » Корзина » Страницадобавления/редактирования материала. (Ошибка в коде.)
  • Страница 1 из 1
  • 1
Поиск: