Not signed in (Sign In)

About Bloxpress

Bloxpress is a modular AJAX theme with an own template generation engine and special content API powered by Prototype, Script.aculo.us and Behaviour for maximum compatibilty. Learn more

Vanilla 1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortalonz
    • CommentTimeSep 22nd 2006
     
    I have just surfed to the demo using internet explorer 6.

    Each time i click to add blocks i see a pop saying no blocks found.

    I have the same problem on the bloxpress i run.

    I had a bit of a grep around and found these lines in the js file

    wp-content/themes/bloxpress2/system/javascript/bloxpress/bp_blocks.js

    BloxpressBlocks = Object.extend(Bloxpress,{
    blocksMenuIdle: new Boolean(true),
    blocksMenuItemIds: new Array(),
    blocksFetch: function() {
    getXML = new Ajax.Request(tplpath + 'system/workdir/blocks.xml', {
    method:'get', requestHeaders:['cache-control','no-cache','pragma','no-cache'],
    onComplete:function(xmlresult) {

    if(xmlresult.responseXML.firstChild.nodeName == 'bloxpress') {
    Bloxpress.blocksParse(xmlresult.responseXML);

    } else {
    /**
    * var blockMenuDiv = Builder.node('div', {id:'contentmenu', style:'display:none'},['No Blocks availble']);
    * $(blockMenuTarget).appendChild(blockMenuDiv);
    * Bloxpress.blocksMenu = $('contentmenu');
    */
    Bloxpress.blocksParse(xmlresult.responseXML);

    }
    }
    });

    After making these changes it does indeed work in internet explorer 6

    Sorry if i did something ugly to your code :)

    Hope this helps some poor IE user

    Cheers, Talon
    • CommentAuthorcarnold
    • CommentTimeSep 24th 2006
     
    I do not use IE but most of the pitiful world does :)
    So i tried this in my bp_blocks.js file and now nothing even pop-up anymore. Can you explain more of what you did to get the IE blocksmenu to pop-up with blocks instead of "no blocks available"? Thanks for sharing and i hope you can help me.
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    I have 0 javascript experience :) just looking at the block of code

    wp-content/themes/bloxpress2/system/javascript/bloxpress/bp_blocks.js

    This line of code checks for some condition in Internet Explorer or something i dont understand the way it works
    ???

    if(xmlresult.responseXML.firstChild.nodeName == 'bloxpress') {

    then if that condition is true it fires up the block menu with

    Bloxpress.blocksParse(xmlresult.responseXML);

    or return the error no blocks

    removing the statement or just commenting out the lines seems to work for me.
    and all the XP machines running ie6 and service pack 2 at my work.

    i will make the files that i brutalised available shortly ...

    Talon
    • CommentAuthorcarnold
    • CommentTimeSep 25th 2006
     
    I do not understand this either, you understand more than me :)
    That would be great if you could make them available or post the contents here. I am here awaiting the files. thanks again for making this available as i have been trying to correct this since i installed bloxpress2.
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    Hope this helps .... its pretty ugly :( im a newb

    live site at
    https : / / mail . richardflanagan . com . au / staff / wordpress /

    hacked up code at
    http : / / talon . dyn-o-saur . com / bloxcode.tar.gz

    Regards
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    10 reasons why sysadmins should NEVER code php or js :) :) :)

    1......
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    2...... we drink way to much beer
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    3..... Perl comes with unix why not use it :devil:
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    4.... we do things like <?thc print `lotsa commands`; ?>
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    5..... we kill all people who moderate us or remove our threads!
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    6... find exec should never be used on phpcode with Aa
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    7.... even though bloxpress loads so F*cking slow i dont care i run it on my gigabit wan
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    8.... If my kids watch thornberries one more time i kill myself .. nigel is completely anal
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    9... whoever wrote this cool shit ,, can they rip infinite menus into it )(
    • CommentAuthortalonz
    • CommentTimeSep 25th 2006
     
    10........... ...
    • CommentAuthorcarnold
    • CommentTimeSep 25th 2006
     
    I took your bp_blocks.js file and copied into my bloxpress2/system/javascript/bloxpress folder and now, when in IE, nothing pops-up. So, is this the only file you had to modify to get the blocksmenu to show in IE? Thanks again for all your help.
    • CommentAuthorcarnold
    • CommentTimeSep 25th 2006
     
    What i ended up doing was taking the whole bloxpress/system/javascript/bloxpress folder and coping to to my bloxpress/system/javascript/bloxpress folder and now it works in IE. I can not stand IE (and feel sorry for those saps that use IE). Thank God for mozilla browers and the like!!
    • CommentAuthorcarnold
    • CommentTimeSep 25th 2006
     
    <blockquote><cite>Posted By: talonz</cite>7.... even though bloxpress loads so F*cking slow i dont care i run it on my gigabit wan</blockquote>
    What i noticed is it seems to hang on grab.cur and -moz-grab. In other words, when using IE, at the bottom left of the browser, i always see "loading http://domain.name/grab.cur and then loading http://domain.name/-moz-grab". I think this is what slows down bloxpress2. After grep'ping, references to those appear in js files in bloxpress2/system/javascript/bloxpress. How do we fix this slow problem?
    •  
      CommentAuthorKjell
    • CommentTimeOct 12th 2006
     
    @last-post: humm.. thats bad, i will look into it

    @javascript: to clarify what this code above does:

    This line "if(xmlresult.responseXML.firstChild.nodeName == 'bloxpress') {" checks if the first-child of the XML file is "<bloxpress>". This XML-Tag is only available if it was generated by the admin-menu.

    If that is true (the tag was found in the file) it runs the XML-Parser which takes the whole XML and all it values and creates the blocks using the block-template and the parameters from the XML-Tree. The Parserfunction is the blocksParse function. As parameter it takes the whole XML Source which is in "xmlresult.responseXML".

    Now the reason that it doesnt find it in IE might be how IE and FF handle Whitespace... In Firefox a whitespace is treated as a TextNode which is kinda a false Positive because it is empty.. Sure it is text but has no real reference (like a tag, or something). Now it could be the case that due to this problem IE looks at the wrong position and so thinks that there is no tag (node) called "<bloxpress>".

    However.. i think i will overwork the whole thing and switch from XML to JSON which does the same (both are data containers) but is more native to Javascript.
    • CommentAuthorcarnold
    • CommentTimeOct 19th 2006
     
    @kjell--how is the work on a new release coming?

    @talonz--i have a few questions for you about your site;
    how did you get the ajax comments? Is this a plugin or something you designed?
    how did you align your "add blocks" (at the top) to the left?
Add your comments
    Username Password
  • Format comments as
Attachments