Status window while uploading

woll-knaeuel

Joined: 2005-04-30
Posts: 10
Posted: Sat, 2005-04-30 08:51

Hello,

I have my gallery integrated in mambo. It seems that every think works fine... but now I found a small bug... :cry:

When I try to upload pictures normally I will get a popup which close automatically after finishing the upload. I get a popup, but this contains not the expected content. It shows the following:
http://woll-knaeuel.dyndns.org/mambo/index.php?option=com_gallery&Itemid=26&include=progress_uploading.php

The Upload works... the popup close automatically but what do I have to do to fix this wrong url forwarding?

Hope some one can help me... :(
Sorry for my English, if you have understanding problems, do not hesitate to ask me :wink:

 
woll-knaeuel

Joined: 2005-04-30
Posts: 10
Posted: Sat, 2005-04-30 19:43

:( Hello

if you follow this link http://woll-knaeuel.dyndns.org/mambo/index.php?set_albumName=test_for_error&option=com_gallery&Itemid=26&include=view_album.php
you will come to a folder where you can upload some pictures to see what i mean...

The server is not the fastest one... so give him some time :wink:

Hope to get an answere which solve this problem. Perhaps some one could give me the url which is normaly loaded. Than I can edit the url manuell in the code to this one - not the best way. :-?

 
woll-knaeuel

Joined: 2005-04-30
Posts: 10
Posted: Mon, 2005-05-02 21:17

I solved this problem now…
I thing it has something to do with the template I use in mambo...
I edit the gallery code in gallery\lib\popup.php.
Change the following code:

function popup_status($url, $height=150, $width=350) {
	$attrs = "height=$height,width=$width,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes";
	return "open('" . unhtmlentities(makeGalleryUrl($url)) . "','Status','$attrs');";
}

to

function popup_status($url, $height=150, $width=350) {
	$attrs = "height=$height,width=$width,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes";
	return "open('http://woll-knaeuel.dyndns.org/gallery/progress_uploading.php','Status','$attrs');";
}

I think this function is only called while uploading pictures, so there is probably no problem. Perhaps it will help someone...
:)