Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » IE buggy with flickr preview

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1174 Views
  • vr
    Avatar
    Community Member
    9 Posts

    IE buggy with flickr preview Link to this post

    Anyone got the flickr module working with IE? In Firefox and Iron / Chrome my SS flickr page works no prob. When I view the site with internet explorer and click on a thumbnail, the lightbox pops up, but shrinks in size to a 32x32px or so image. If I click a second time, the preview comes up ok. And so on, this is reproducable with any image in the flickr gallery.

    Are you having the same issue with IE and maybe ideas how to solve it?

    regards, vr

  • CloudInfinity
    Avatar
    Community Member
    6 Posts

    Re: IE buggy with flickr preview Link to this post

    I have exactly the same problem with my site! http://www.carbon-era.co.uk/gallery....
    Did you manage to fix it or get any help with it?

    On IE8 I get the error:

    Invalid argument.
    prototype.js
    Code: 0
    Line: 1596
    Char: 9

    ???????

  • CloudInfinity
    Avatar
    Community Member
    6 Posts

    Re: IE buggy with flickr preview Link to this post

    As no-one managed to resolve this, I fixed the issues by integrating Lightbox 2.04 rather than Lightwindow and it works well, fully tested in IE7/8, Opera, Safari, Chrome and Firefox!

    Doesn't like working when FullTextSearchable is enabled though

    A

  • CloudInfinity
    Avatar
    Community Member
    6 Posts

    Re: IE buggy with flickr preview Link to this post

    UPDATED!

    The enable BOTH the FlickrGallery with Lightbox AND have a fully functional full text search, the following JS files need to be blocked in the FlickrGallery.php page:

          }
          
          Requirements::javascript( "flickrservice/js/prototype.js" );
          Requirements::javascript( "flickrservice/js/scriptaculous.js" );
          Requirements::javascript( "flickrservice/js/lightbox.js" );
          
          // Block the following conflicting JS files to enable Full Text Search AND Lightbox.
          // These two files are responsible for stopping the Lightbox from working.
    Requirements::block("sapphire/thirdparty/prototype/prototype.js");
    Requirements::block("sapphire/javascript/prototype_improvements.js");
          // This file MUST be blocked to ensure the Full Text Search continues to work.
    Requirements::block("sapphire/thirdparty/behaviour/behaviour.js");

          Requirements::css("flickrservice/css/lightbox.css");
          
          if($pos = strpos( $_SERVER[ 'HTTP_USER_AGENT' ], 'MSIE') ) {
             $version = substr( $_SERVER[ 'HTTP_USER_AGENT' ], $pos + 5, 3 );
             if( $version < 7 ) {
                   Requirements::css( "flickrservice/css/lightbox.css" );
             }
    }

  • davepolyester
    Avatar
    Community Member
    47 Posts

    Re: IE buggy with flickr preview Link to this post

    I've got a similar problem happening whereby the HTML editor in the SimpleWiki module doesn't work properly when FulltextSearchable is enabled. Text can be edited fine in the TinyMCE window but any changes are lost when you click save. (Problem only affects HTML editor, not the other editors such as Plain or Wiki.)
    Any suggestions as to how I can solve this? What should I be looking for?

  • novaweb
    Avatar
    Community Member
    115 Posts

    Re: IE buggy with flickr preview Link to this post

    Hi Dave,

    Probably a javascript conflict. Using Firebug you should be able to track down which line of JS is conflicting.

    Cheers,
    Josh

  • davepolyester
    Avatar
    Community Member
    47 Posts

    Re: IE buggy with flickr preview Link to this post

    Hey Josh,

    Thanks for the help, I think we could be on to something here.

    Regardless of whether or not FulltextSearchable is enabled, Firebug gives me a missing js file error when I hit the Edit button on a Wiki page:

    "NetworkError: 404 Not Found - http://localhost:8888/tdg_SilverStripe-v2.4.7/sapphire/thirdparty/tinymce/plugins/sslinks/editor_plugin_src.js?m=1328047223"

    The only reference to editor_plugin_source.js in the simplewiki code is in the Edit function in WikiPage.php line 402 as follows:

    public function edit()
       {
          HtmlEditorField::include_js();
          Requirements::javascript('simplewiki/javascript/sslinks/editor_plugin_src.js');

    That js file starts with the following code:

    (function() {
       // Load plugin specific language pack
       // tinymce.PluginManager.requireLangPack('sslinks');

       tinymce.create('tinymce.plugins.SSLinks', {

    Perhaps there's some issue with creating that plugin? There's certainly no reference to sapphire/thirdparty/tinymce/plugins/sslinks/editor_plugin_src.js in the wikipage code at all so I'm guessing it must be something it's trying to create on the fly.

    Firebug pops up one other error:

    $ is not a function   
    var element = $(element);
    http://localhost:8888/tdg_SilverStripe-v2.4.7/sapphire/thirdparty/prototype/prototype.js?m=1328047221

    Not sure if that has any relevance.

    Your thoughts?

    Many thanks,

    David

    1174 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.