test
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • brucetaylor Friend
    #132898

    Hi,

    When I load FireBoard 1.0.4 Stable to the site that I developing I get the attached error message. I applied the fixes for the null errors discussed in the forum but only when I access the forum do I get this message. I don’t have CB installed yet, the only other thing linked to forum is uddeIM 1.3

    Anyone any idea’s?

    Thanks


    1. forumerror
    brucetaylor Friend
    #268463

    Its Joomla 1.5 by the way and only seems to happen on IE 7.0

    dlocc Friend
    #269589

    Yeah, I’m getting the same exact error…

    dlocc Friend
    #269591

    I don’t know if it is being caused by fireboard, although now I suspect because we have the same error….

    dlocc Friend
    #269784
    brucetaylor Friend
    #269790

    I have just tired this –

    If you open up the file ja.scripts.js in the js folder of the template and find this here:
    Code:
    function equalHeight(){
    makeEqualHeight ($(‘ja-botsl’).getChildren());
    makeEqualHeight ($$([‘ja-content’,’ja-col1-bot’,’ja-col2′]));
    }
    And change it to this:
    Code:
    function equalHeight(){
    makeEqualHeight ($(‘ja-botsl’).getChildren());
    //makeEqualHeight ($$([‘ja-content’,’ja-col1-bot’,’ja-col2′]));
    }

    But I get the same error message.

    Where is this –

    The problem I had was only in ie7 and I managed to solve it by adding
    Code:
    {height: 1%;}
    to the div that was being overlapped in my template.css.

    Thanks

    dlocc Friend
    #269791

    So you solved it using CSS? I’m not quiet sure I understand

    brucetaylor Friend
    #269792

    Sorry for the confusion. I still have the problem, the part of my post about –

    Code:
    {height: 1%;}

    was taken from the last post on this link that you posted earlier –

    http://forum.joomlaworks.gr/index.php?topic=4987.0http://forum.joomlaworks.gr/index.php?topic=4987.0

    dlocc Friend
    #269794

    Perhaps if I just dump the whole file in here for you to look at it will help? This is the error free 😀 version:

    function switchFontSize (ckname,val){
    var bd = $E('BODY');
    switch (val) {
    case 'inc':
    if (CurrentFontSize+1 < 7) {
    bd.removeClass('fs'+CurrentFontSize);
    CurrentFontSize++;
    bd.addClass('fs'+CurrentFontSize);
    }
    break;
    case 'dec':
    if (CurrentFontSize-1 > 0) {
    bd.removeClass('fs'+CurrentFontSize);
    CurrentFontSize--;
    bd.addClass('fs'+CurrentFontSize);
    }
    break;
    default:
    bd.removeClass('fs'+CurrentFontSize);
    CurrentFontSize = val;
    bd.addClass('fs'+CurrentFontSize);
    }
    Cookie.set(ckname, CurrentFontSize,{duration:365});
    }

    function switchTool (ckname, val) {
    createCookie(ckname, val, 365);
    window.location.reload();
    }

    function createCookie(name,value,days) {
    if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    }
    else expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
    }

    String.prototype.trim = function() { return this.replace(/^s+|s+$/g, ""); };

    //addEvent - attach a function to an event
    function jaAddEvent(obj, evType, fn){
    if (obj.addEventListener){
    obj.addEventListener(evType, fn, false);
    return true;
    } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
    } else {
    return false;
    }
    }

    function equalHeight(){
    if (document.getElementById('ja-botsl'))
    {
    makeEqualHeight ($('ja-botsl').getChildren());
    } //makeEqualHeight ($$(['ja-content','ja-col1-bot','ja-col2']));

    function makeEqualHeight(divs) {
    if(!divs || divs.length < 2) return;
    var maxh = 0;
    divs.each(function(el, i){
    var ch = el.getCoordinates().height;
    maxh = (maxh < ch) ? ch : maxh;
    },this);
    divs.each(function(el, i){
    el.setStyle('height', maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());
    },this);
    }

    function getDeepestDiv (div) {
    while (div.getChildren().length==1 && (div.getChildren()[0].tagName == 'DIV'))
    {
    div = div.getChildren()[0];
    }
    return div;
    }

    function preloadImages () {
    var imgs = new Array();
    for (var i = 0; i < arguments.length; i++) {
    var imgsrc = arguments;
    imgs = new Image();
    imgs.src = imgsrc;
    }
    }

    function makeTransBg(el, bgimgdf, sizingMethod, type, offset){
    var objs = el;
    if(!objs) return;
    if ($type(objs) != 'array') objs = ;
    if(!sizingMethod) sizingMethod = 'crop';
    if(!offset) offset = 0;
    var blankimg = siteurl + 'images/blank.png';
    objs.each(function(obj) {
    var bgimg = bgimgdf;
    if (obj.tagName == 'IMG') {
    //This is an image
    if (!bgimg) bgimg = obj.src;
    if (!(/.png$/i).test(bgimg) || (/blank.png$/i).test(bgimg)) return;

    obj.setStyle('height',obj.offsetHeight);
    obj.setStyle('width',obj.offsetWidth);
    obj.src = blankimg;
    obj.setStyle ('visibility', 'visible');
    obj.setStyle('filter', "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+bgimg+", sizingMethod='"+sizingMethod+"')");
    }else{
    //Background
    if (!bgimg) bgimg = obj.getStyle('backgroundImage');
    var pattern = new RegExp('urls*[("']*([^'")]*)['")]*');
    if ((m = pattern.exec(bgimg))) bgimg = m[1];
    if (!(/.png$/i).test(bgimg) || (/blank.png$/i).test(bgimg)) return;
    if (!type)
    {
    obj.setStyles({'background': 'none'});

    if(obj.getStyle('position')!='absolute' && obj.getStyle('position')!='relative') {
    obj.setStyle('position', 'relative');
    }

    obj.getChildren().each(function(el){
    if(el.getStyle('position')!='absolute' && el.getStyle('position')!='relative')
    {
    el.setStyle('position', 'relative');
    }
    el.setStyle('z-index',2);
    });
    //Create background layer:
    var bgdiv = new Element('IMG');
    bgdiv.src = blankimg;
    bgdiv.width = obj.offsetWidth - offset;
    bgdiv.height = obj.offsetHeight - offset;
    bgdiv.setStyles({
    'position': 'absolute',
    'top': 0,
    'left': -obj.getStyle('padding-left').toInt()
    });

    bgdiv.className = 'TransBG';

    bgdiv.setStyle('filter', "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+bgimg+", sizingMethod='"+sizingMethod+"')");
    bgdiv.inject(obj, 'top');
    //alert(obj.innerHTML + 'n' + bgdiv.innerHTML);
    } else {
    obj.setStyle('filter', "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+bgimg+", sizingMethod='"+sizingMethod+"')");
    }
    }
    }.bind(this));
    }

    function isIE6() {
    version=0
    if (navigator.appVersion.indexOf("MSIE")!=-1){
    temp=navigator.appVersion.split("MSIE")
    version=parseFloat(temp[1])
    }
    return (version && (version < 7));
    }

    function getElementsByClass(searchClass,node,tag) {
    var classElements = new Array();
    var j = 0;
    if ( node == null )
    node = document;
    if ( tag == null )
    tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = new RegExp('(^|\s)'+searchClass+'(\s|$)');
    for (var i = 0; i < elsLen; i++) {
    if ( pattern.test(els.className) ) {
    classElements[j] = els;
    j++;
    }
    }
    //alert(searchClass + j);
    return classElements;
    }

    //Add span to module title
    jaAddFirstItemToTopmenu = function() {
    li = $E('#ja-footer ul li');
    if(li) {
    li.addClass('ja-firstitem');
    }
    }

    window.addEvent ('load', function() {
    equalHeight();
    jaAddFirstItemToTopmenu();
    });
    }

    brucetaylor Friend
    #269795

    THANK YOU!!!!!!!!!!!!!!!!!!!!!

    That’s done the trick for me. I can put it on my other site that I have the same problem with ! 😀

    dlocc Friend
    #269796

    Great! I thought that would do the trick.

    brucetaylor Friend
    #270195

    Dam, my problems hasve come back after applying 1.5.7 security patch

    Anyone else seeing this? 🙁

    brucetaylor Friend
    #270198

    Its in firefox too 🙁

    I am having a nightmare since upgrading to 1.5.7!!! I also have a problem with read more links not being displayed any more to guest users 🙁

    brucetaylor Friend
    #270203

    Very strange, I switched off the Communicator module and it all went away ???? :confused:

    I was considering droping that anyway as the module is very sloppy and there is little support

    dlocc Friend
    #270230

    Hey bruce, What version of fireboard are you using? Is it the latest 1.0.5 ? If you are you should turn on debugging in IE to further investigate that problem. Do you have a link to your site?

Viewing 15 posts - 1 through 15 (of 17 total)

This topic contains 17 replies, has 2 voices, and was last updated by  dlocc 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum