3
I have the editor "almost" working but am running into a couple problems with the image management.
1. When i click on the add image button the window is size properly initially but immediately is resized to around 50px by 50px and cannot be resized. I've added the code stated in the documentation but i also feel there is a problem with it because the code in the section "Enable the thumb to popup feature" doesn't seem to be displayed properly, near the end of the function where code should be it shows an image with red X through it (right after the last writeln('... ).
--------------------------------
function myPopImage(imageURL,imageTitle) {
// Script Source: CodeLifter.com
//Set this values 20px larger
//than your biggest picture
PositionX = 100;
PositionY = 100;
defaultWidth = 680;
defaultHeight = 520;
var AutoClose = false;
// Do not edit below this line...
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('');writeln('');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('');
if (!AutoClose) writeln('')
else writeln('');
writeln('');
close();
}
}
------------------------------------------
The above code was copied directly from the documentation
2. Another think i noticed is in a one second or so when the popup image management window is fully visible i'm seeing many variables names... just don't look right... here are some of them....
{$lang_imgmanager_dir}
{$lang_imgmanager_name}
{$lang_imgmanager_imgfile}
{$lang_imgmanager_alt}
{$lang_imgmanager_height}
etc.. etc.. etc... all buttons and text labels are like this.
I'm running XOOPS 2.0.13.1 and attempting to get the editor working with Zmagazine 1.0
Any help would be appreciated.
Geary