Log in | Register | Lost password

Goto page: [-1] 1 - 2 - 3

Bottom
How to Replace HTMLArea30beta with the latest Xinha release
  • Posted: 23.06.2006, 00:03
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Sorry for the long delay in responding but new projects kept getting in the way of "fixing" this on our existing sites.

    In PS 6.3 the Xinha editor setup functions have been rewritten so the location to add ImageManager or ExtendedFileManager has changed. To get ImageManager or ExtendedFileManager working with PS you need to change the following line in guppy.js at or around line 401.

    Code

    var xinha_plugins = ['TableOperations'];

    to

    Code

    var xinha_plugins = ['TableOperations','ImageManager'];

    or

    Code

    var xinha_plugins = ['TableOperations','ExtendedFileManager'];


    This will initialize the image manager plugin when the Xinha editor starts.

    I found I also had to change the .htaccess file in the guppy directory to allow browser access to php files. I had to change the following line:

    Code

    SetEnvIf Request_URI "\.(htm|html|gif|css|js)$" object_is_ok=1

    to

    Code

    SetEnvIf Request_URI "\.(htm|html|gif|css|js|php)$" object_is_ok=1


    I have not investigated the security implications of this change as yet. The plugins call a php script where the table operations plugin only calls a javascript file.

    For those interested I also loaded the latest version of the ImageManager plugin from the Xinha project and had to make the following changes for a Linux/Apache install:

    In config.inc.php find the following line:

    Code

    $IMConfig['images_dir'] = "demo_images";

    and change to

    Code

    $IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/image_store/';


    Also find

    Code

    $IMConfig['images_url'] = str_replace( "backend.php", "", $_SERVER["PHP_SELF"] ) . "demo_images";

    and change to

    Code

    $IMConfig['images_url'] = $_SERVER['HOST'].'/image_store/';


    Of course change the "image_store" directory to your actual image folder as always.

    I hope this helps those looking to add file system image uploads & inserts along with the standard Photoshare and Mediashare options.

Goto page: [-1] 1 - 2 - 3

Template courtesy of Designs By Darren.