WordPress.org

Ready to get started?Download WordPress

Forums

Watu
Bug in results with lightbox, shadowbox... (5 posts)

  1. Newzic
    Member
    Posted 1 year ago #

    Hello,

    when I publish a quizz, if there is a picture, shadowbox-js is working.
    See : http://goo.gl/KRJxH

    But when we are on the page of results, shadowbox don't working. The picture is open on a single window and the back button go at the questions page (we lost the page result...)

    I also try an other plug that lightbox-plus, the problem is the same.

    http://wordpress.org/extend/plugins/watu/

  2. prasunsen
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, the result is called by ajax and you can't define javascript function in ajax called page. Your javascript function should be defined in advance.

  3. Newzic
    Member
    Posted 1 year ago #

    I understand.

    The script for shadowbox is

    <script type='text/javascript' src='http://www.cetaces.org/wp-content/uploads/shadowbox-js/6c9ff6f7d9133ab510705a31bb117fad.js?ver=3.0.3'></script>

    Is it possible to put this script somewhere in your php page? (show_exam.php, exam_form.php... where?)

  4. prasunsen
    Member
    Plugin Author

    Posted 1 year ago #

    You can try put it as part of the HTML code in the Final screen (maybe through a plugin that lets you run a script.) Still no guarantee it will work. Alternatively you can just use <a href target=_blank instead of a lightbox

  5. Newzic
    Member
    Posted 1 year ago #

    that don't work everywhere I try to put the shadowbox code.

    I upload the original script of shadowbox in the www folder of this website. And I put the code
    <script type="text/javascript" src="shadowbox.js></script> just before the first picture in the first question. And I put "rel="shadowbox" manually for this first picture.
    In the sourcecode of the result page, all is good. But shadowbox don't work. But that work if I make a static page (html) of this result page!

    Yes, with _blank. Or breaking the link. That is the final solution.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic