1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

Mouse over in block

Discussion in 'PHP-Nuke Integration' started by pata, Jan 20, 2006.

Thread Status:
Not open for further replies.
  1. pata

    pata New Member

    Were do i put

    <?php $OL=1; require("calendar/calendar.php"); ?>

    in a phpnuke 7.6 site to get mouseover function to work :confused: .

    I have the block to show on my site but thats all.
    any help would be great, been looking on zola´s page and i really would like something like that.

    /pata
     
  2. ve9gra

    ve9gra Support Team

    You can add the $OL section in your block, right before the call to require the calendar.
     
  3. pata

    pata New Member

    I use this code in the block (found here)
    Code:
    [SIZE=2]
    <?php
    if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
    }
    ob_start();
    //required if you're going to use overLib
    $OL=1; require ("calendar/calendar.php");
    //makes the whole calendar point to a TOC link
    //unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";
    //the line that shows the calendar 
    require ("calendar/calendar.php");
    $content = ob_get_clean();
    ?> 
    [/SIZE]
    Should this work ? it shows the calender but i get error message in left corner of IE when moving mouse over an event.

    The demo.php works fine (http://www.pata.se/calendar/demo.php)
    But not this block (http://www.pata.se)

    /pata
     
  4. pata

    pata New Member

    the one click mouse funtion is working :classic:
    so its only mouse over thats not working

    /pata
     
  5. ve9gra

    ve9gra Support Team

    If you follow the instructions indicated in this post you should be able to get it going. (step #3 is optional - the module can be found in the same thread at this post).
     
  6. pata

    pata New Member

    I´m pretty sure i followed those instructions.
    I tested the page with Mozilla Firefox 1.5 and then mouse over popup works perfectly, but when using IE 6.0 only one click will work mouse over only indicates an error. Any ideas? Something with my nuke setup ?

    /pata
     
  7. ve9gra

    ve9gra Support Team

    The calendar is not the problem here. You have several <head> tags sprinkled all over your page. Actually, 4 to be exact. This breaks many standards. Also, you have several problems with your CSS...

    Error: Expected color but found '#'. Error in parsing value for property 'background'. Declaration dropped.
    Source File: http://www.pata.se/themes/Callofduty2/style/style.css
    Line: 217

    Error: Expected ',' or '{' but found '0.1'. Ruleset ignored due to bad selector.
    Source File: http://www.pata.se/themes/Callofduty2/style/style.css
    Line: 428

    Error: Expected ',' or '{' but found '0.2'. Ruleset ignored due to bad selector.
    Source File: http://www.pata.se/themes/Callofduty2/style/style.css
    Line: 440

    Error: Error in parsing value for property 'background'. Declaration dropped.
    Source File: http://www.pata.se/
    Line: 864

    This is only a few of the errors that popped up when I went to your site... And all the code related to the calendar is all fine and coded properly. It's the other scripts that you need to check out.

    PS: These line numbers were calculated using Firefox with the Web Developer's Toolbar.
     
  8. pata

    pata New Member

    Thanks for the tip got it working now, it was the squery block that made it not to work, by turning it off calender works great. :)

    Thanks for yor super support :clap:
    And a great product :clap:
     
Thread Status:
Not open for further replies.

Share This Page