1
fosterm
xcGal help
  • 2005/10/5 18:52

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Hi all.

I am currently running XOOPS 2.2.3 and xcgal 2.0.

I am having a small problem that I am sure someone with some coding experience could fix in a flash. I have tried to fix it myself. I have searched this site and the web for someone with this same problem and have been unsuccessful. Any help or suggestions that anyone could offer would be appreciated. :)

Go herehttp://www.thewoodlandsmonitor.com/testsite/

1. Click on xcgallery in the main menu.
2. Click one of the thumbs to bring up the intermediate image.
3. Now click on the intermediate image to bring up the full image.

As you can see the pop up window that comes up attempts to resize itself and center itself. The centering seems to work fine, but the resize looks like it resizes the window to 0,0

So of course I am trying to get the full size image to display in the popup window correctly.

I attempted to mess with this code in scripts.js in the xcgal module, but have not figured out how to get desired result
Quote:
function adjust_popup()
{
var w, h, fixedW, fixedH, diffW, diffH;

if (document.all) {
fixedW = document.body.clientWidth;
fixedH = document.body.clientHeight;
window.resizeTo(fixedW, fixedH);
diffW = fixedW - document.body.clientWidth;
diffH = fixedH - document.body.clientHeight;
} else {
fixedW = window.innerWidth;
fixedH = window.innerHeight;
window.resizeTo(fixedW, fixedH);
diffW = fixedW - window.innerWidth;
diffH = fixedH - window.innerHeight;
}
w = fixedW + diffW;
h = fixedH + diffH;
if (h >= screen.availHeight) w += 16;
if (w >= screen.availWidth) h += 16;
w = Math.min(w,screen.availWidth);
h = Math.min(h,screen.availHeight);
window.resizeTo(w,h);
window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
}


I am not for sure if this is even the right place to look. In several other files (i.e. displayimage.php) there is similiar code. Needless to say this is terribly confusing to a non coder :)

Any help or suggestions that anyone could provide would be greatly appreciated.

Thanks
foz

2
highlander
Re: xcGal help
  • 2005/10/5 21:24

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Hi fosterm,

I have followed your instructions exaclty
Quote:

1. Click on xcgallery in the main menu.
2. Click one of the thumbs to bring up the intermediate image.
3. Now click on the intermediate image to bring up the full image.

And it works fine. Maybe the issue is not in the code at all ?
So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me...
www.AnimalPedigree.com

3
gecko
Re: xcGal help
  • 2005/10/5 22:17

  • gecko

  • Not too shy to talk

  • Posts: 152

  • Since: 2004/10/11


i see your problem on IE, but i'm sorry i dont have a fix.

works ok in firefox though.

Gecko

4
fosterm
Re: xcGal help
  • 2005/10/5 22:18

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Hi Highlander,

Ty for the reply.


Hmmm. You must not be using IE? Have tried it on two different machines but they both have IE on them. Can you confirm which browser you are using please?


Thanks
Foz

5
fosterm
Re: xcGal help
  • 2005/10/5 22:23

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Hi Gecko.

Ty for the info. I just assumed it was a code problem :)(guess it still might be just ie specific)

So can anyone tell me what I need to do to fix this?

Using IE this feature works fine on some of the websites that I have visited.

Any ideas or help would be appreciated :)


Thanks
Foz

6
fosterm
Re: xcGal help
  • 2005/10/10 15:41

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


For anyone who might run into this problem in the future, I have found a simple workaround.

under module preferences, set your intermediate picture size to the same size as you original picture. This eliminates the option to "click here for full size image" that you get on mouseover of intermediate picture.

Can any of the firefox users take a look to make sure that browser is ok with it?

Thanks
Foz

7
barryc
Re: xcGal help
  • 2005/10/10 15:53

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


I looked good on Firefox, that is, clicking on the thumb brought up the full image. There is debug info at the bottom of the page. Looks like you have php debug turned on in prefs and it should be turned off on a live site.

Barry
Barry Cooper
Sweet Home, Oregon

8
fosterm
Re: xcGal help
  • 2005/10/10 16:19

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


Hi Barry

I appreciate you taking time to verify that for me.
I will also turn off the debug. :)

Thanks
Foz :)

Login

Who's Online

222 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits