Adminbar problem

Permalink
HI I cantget the admin bar to work correct
seams to be something with jquery..


Where do I place the... Loader::element('header_required');

this is my header
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- head -->
<head>
<? Loader::element('header_required'); ?>
<!-- Title of page -->
<link rel="shortcut icon" href="<?=$this->getThemePath()?>/images/favicon.ico" />
<!-- Main CSS Stylesheet -->
<link rel="stylesheet" href="<?=$this->getThemePath()?>/reset-fonts-grids.css" type="text/css" />
<link rel="stylesheet" href="<?=$this->getThemePath()?>/main.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/js/jquery.tools/scrollable-horizontal.css" />
<link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/js/jquery.tools/scrollable-buttons.css" />
<link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/js/jquery.tools/scrollable-navigator.css" />
<link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/js/jquery.uniform/uniform.default.css"/>
<link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>/js/jquery-ui-1.8.2.datepicker/smoothness/jquery-ui-1.8.2.custom.css" />


Regards
Flemming

 
Steevb replied on at Permalink Reply
Steevb
Hi,

Don't add any jquery, let C5 do it for you.

Don't need to call the ico file.

Try this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="<?=$this->getThemePath()?>/reset-fonts-grids.css" type="text/css" />
<link rel="stylesheet" href="<?=$this->getThemePath()?>/main.css" type="text/css" />
<? Loader::element('header_required'); ?>
</head>


Leave 'Loader::element' to end of head tag
pauk replied on at Permalink Reply
Thanks for reply...

But if you see all my code you see alot af js
they dont work if I do as u suggest.
<!-- .JS Files -->
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/fancybox/jquery.mousewheel-3.0.2.pack.js"></script>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/fancybox/jquery.fancybox-1.3.1.js"></script>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/jquery-ui-1.8.2.datepicker/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/jquery.tools/jquery.tools.min.js"></script>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/jquery.uniform/jquery.uniform.min.js"></script>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/scripts.js"></script>
<script type="text/javascript" src="<?=$this->getThemePath()?>/js/superfish.js"></script>
<style type="text/css">
#doc3 {
   margin:auto;
   background:url(images/header-bg.jpg) top center no-repeat;
}
</style> 
</head>


hmm must be some how to avoid this

Cheers
andoro replied on at Permalink Reply
andoro
The problem here is the same.
The reason is jquery.tool.min.js, beacuse the adminbar disappeared when i uploaded it.

How can we use jquery tools in c5?
mattisherwood replied on at Permalink Reply
mattisherwood
You're right, it's a conflicting javascript issue, because jQuery is trying to be loaded both by concrete5 and by jquery.tool.min.js, and this will cause all javascript code on the page to cease working.

I had the same issue and spent aaages working it out until I found you can go to the jquery tools website and download a CUSTOM SET of tools, NOT INCLUDING jquery. (http://jquerytools.org/download/... ) If you upload this to your server and use that, it should resolve the issue.