Customizing SMF > Theme Site Themes

Touch

<< < (7/9) > >>

md_hedji:
mootools menu does not work with this mod, as I understand the reason jQuery *? How can I fix this problem?
http://custom.simplemachines.org/mods/index.php?mod=3056

YIHAD:

--- Quote from: md_hedji on July 08, 2011, 12:41:28 PM ---mootools menu does not work with this mod, as I understand the reason jQuery *? How can I fix this problem?
http://custom.simplemachines.org/mods/index.php?mod=3056

--- End quote ---

There is a conflict between mootools and jQuery
Opens estadisticas.js (Themes/default/scripts/estadisticas.js)
Search:   

--- Code: ---$(document).ready(function() {

//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:eq(1)").addClass("active").show(); //Activate first tab
$(".tab_content:eq(1)").show(); //Show first tab content

//On Click Event
$("ul.tabs li").click(function() {

$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content

var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});

});
--- End code ---
replaced by::

--- Code: ---jQuery.noConflict();
jQuery(document).ready(function() {

//When page loads...
jQuery(".tab_content").hide(); //Hide all content
jQuery("ul.tabs li:eq(1)").addClass("active").show(); //Activate first tab
jQuery(".tab_content:eq(1)").show(); //Show first tab content

//On Click Event
jQuery("ul.tabs li").click(function() {

jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
jQuery(this).addClass("active"); //Add "active" class to selected tab
jQuery(".tab_content").hide(); //Hide all tab content

var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
jQuery(activeTab).fadeIn(); //Fade in the active ID content
return false;
});

});
--- End code ---

md_hedji:
thanks

Soulmaster:
i've got a small style problem. i've you go to my site http://www.bliksemdetectie.nl/index.php?action=forum you will see at the bottom of mij site that there is a style problem. what to do to fix this?

Soulmaster:
also got this error in my errorlogs


--- Code: --- <a class="', $button['active_button'] ? 'active ' : '', 'current" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>

--- End code ---
Undefined index: href
in index.template.php line: 406

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version