Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GS3.1.1 filebrowser issues
#1
I have been unable to insert images using the WYSIWYG Editor image browser in GS3.1.1. I had to restore to my earlier 3.1 version and it worked fine.
Reply
#2
andy, do you get any JS errors at all in either the filemanager or main windows ?
My Github Repos: Github
Website: DigiMute
Reply
#3
n00dles101 Wrote:andy, do you get any JS errors at all in either the filemanager or main windows ?

I cannot reproduce.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
shawn_a Wrote:
n00dles101 Wrote:andy, do you get any JS errors at all in either the filemanager or main windows ?

I cannot reproduce.

I am using chrome. No errors. But if I overwrite the admin files with that of GS3.1 everything works fine again.
Reply
#5
No solution?

EDIT: Ok, a fresh install of GS3.1.1 works fine and doesn't give the above error. So maybe something wrong went with my update. Can you let me know exactly which files/folders do I need to replace with the new ones if I am updating my GS install?
Reply
#6
andyash Wrote:Can you let me know exactly which files/folders do I need to replace with the new ones if I am updating my GS install?

Just the /admin directory.
Addons: blue business theme, Online Visitors, Notepad
Reply
#7
yojoe Wrote:
andyash Wrote:Can you let me know exactly which files/folders do I need to replace with the new ones if I am updating my GS install?

Just the /admin directory.

I did exactly that and even my fresh install started giving the same error as before.
Reply
#8
Replace in filebrowser.php
Code:
<script type='text/javascript'>
    function submitLink($funcNum, $url) {
        if ($funcNum!=""){
            if(window.opener){
                window.opener.CKEDITOR.tools.callFunction($funcNum, $url);
            }
        }
        <?php if (isset($_GET['returnid'])){ ?>
            if(window.opener){
                window.opener.document.getElementById('<?php echo $returnid; ?>').focus();
                window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
            }
        <?php } ?>    
        <?php if (isset($_GET['func'])){
        $func = @$_GET['func']; ?>
            if(window.opener){
                window.opener.<?php echo $func; ?>('<?php echo $returnid; ?>');
            }
        <?php } ?>    
        window.close();
    }
    </script>
with the patch given in http://get-simple.info/forum/post/28066/#p28066
Code:
<script type='text/javascript'>
    function submitLink($funcNum, $url) {
        <?php if (isset($_GET['returnid'])){ ?>
            if(window.opener){
                window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
            }
        <?php } else { ?>
            if(window.opener){
                window.opener.CKEDITOR.tools.callFunction($funcNum, $url);
            }
        <?php } ?>
        window.close();
    }
    </script>
makes the WYSIWYG editor work fine and I can import images from my main editor as well as the one added through Custom Fields plugin.

Any ideas why the new install of GS3.1.1 works fine but updating a GS3.1 site by replacing the admin folder makes filebrowser.php act weird?
Reply
#9
A small patch release 3.1.2 will be release this weekend to fix this issue and another with the autosave functionality.

You can download the updated filebrowser.php directly from google code.

http://code.google.com/p/get-simple-cms/...rowser.php

Mike.
My Github Repos: Github
Website: DigiMute
Reply
#10
n00dles101 Wrote:A small patch release 3.1.2 will be release this weekend to fix this issue and another with the autosave functionality.

You can download the updated filebrowser.php directly from google code.

http://code.google.com/p/get-simple-cms/...rowser.php

Mike.

GS3.1.2 filebrowser works fine.
Reply




Users browsing this thread: 1 Guest(s)