|
Page 2 of 3
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
tried that before posting here, and did´nt work Josh
____________ Out of Order
|
#16 Sun 04 Nov, 2012 11:49 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
| |
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
Ok Spydie ..thanks,
At this moment I can confirm I have the same problem on Casimedicos's test site when I use FF, chrome, safari and opera... but not when I use IE9
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#17 Sun 04 Nov, 2012 12:38 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
confirmed.
just tested with IE9 and it works on my site. all other browsers fail
____________ Out of Order
|
#18 Sun 04 Nov, 2012 12:48 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
Thanks again spydie, maybe you can add a link to this thread to your bugreport in the bugtracker to save MG some analising time
EDIT:
or just add the info we just found out now
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#19 Sun 04 Nov, 2012 12:50 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
could not edit the BUG report, but added it as coment
____________ Out of Order
|
#20 Sun 04 Nov, 2012 15:07 |
|
mort 
 Spam Basher

Joined: August 2010
Posts: 998
Location:  Up a tree
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
confirmed. just tested with IE9 and it works on my site. all other browsers fail 
Has anyone had a look at the files in question, because if the path is not scripted as absolute (Meaning there may be something missing in the path like a / or two there's two //, or a dot too many if it's a unix path as .././) Because when on-submit don't work and goes to the default index etc, either the path is wrong or the Form action is wrong?
Just check in the browser where you are and where you are being redirected to and what action is in the "input Submit" and form action?
It just strikes me as odd that IE can decipher the path and the others can't?
Edit:
@casimedicos
I suspect the the form action on the page you are having problems with is something like <form action="$some-var" ?
Can you go to the page where you are just about to submit whatever you have done to a mirror (Without submitting it) and look at view-source and see what <form action="$some-var" looks like in html. And maybe try it with IE and the other browsers to see what the differences, if any may be?
|
#21 Tue 06 Nov, 2012 11:00 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
Mort.
this happens in ACP downloads -add download. when you click on add mirrors
____________ Out of Order
|
#22 Tue 06 Nov, 2012 12:18 |
|
mort 
 Spam Basher

Joined: August 2010
Posts: 998
Location:  Up a tree
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
I don't really have a lot of time to run through this but the cause of different browsers responding in different ways is not generally a scripting problem, but more on how paths are set.
IE for instance hates unix paths and yet appears to be the only one that works - - ?
And this is not a new problem.
http://www.icyphoenix.com/viewtopic.php?t=4195
If I get time I'll go through the motions, install Icy on the box and see if I can support my theory of a path problem.
And that's Maybe - Because I'm up to my armpits working on this not even half-finished project of my own.
http://bitzagames.com/demo/index.php
|
#23 Tue 06 Nov, 2012 13:11 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
this looks to be the problematic part
<script type="text/javascript">
<!--
var win = null;
var error_msg = "";
var mirror_mode = false;
function set_mirror_mode(status)
{
mirror_mode = status;
}
function new_window(mypage, myname, w, h, pos, infocus)
{
if(pos == "random")
{
myleft = (screen.width) ? Math.floor(Math.random()*(screen.width-w)) : 100;
mytop = (screen.height) ? Math.floor(Math.random()*((screen.height-h)-75)) : 100;
}
if(pos == "center")
{
myleft = (screen.width) ? (screen.width-w) / 2 : 100;
mytop = (screen.height) ? (screen.height-h) / 2 : 100;
}
else if((pos != 'center' && pos != "random") || pos == null)
{
myleft = 0;
mytop = 20
}
settings = "width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=no";
win = window.open(mypage, myname, settings);
win.focus();
}
if(0)
{
new_window('admin_pa_file.php?mode=mirrors&file_id=3&sid=2f55f20b243b6a66032d1741065de232', 'fileupload', '600','450', 'center', 'front');
}
function checkAddForm()
{
if(mirror_mode)
{
new_window('admin_pa_file.php?mode=mirrors&file_id=3&sid=2f55f20b243b6a66032d1741065de232', 'fileupload', '600','450', 'center', 'front');
return false;
}
error_msg = "";
if (document.form.cat_id.value == -1)
{
error_msg = "You can't add file to category that does not allow files on it";
}
if(document.form.name.value == "")
{
if(error_msg != "")
{
error_msg += "\n";
}
error_msg += "Please fill the file name field";
}
if(document.form.long_desc.value == "")
{
if(error_msg != "")
{
error_msg += "\n";
}
error_msg += "Please fill the file long descritpion field";
}
if(error_msg != "")
{
alert(error_msg);
error_msg = "";
return false;
}
else
{
return true;
}
}
// -->
</script>
this is out of frame source code
especialy this part looks suspicious to me
win = window.open(mypage, myname, settings);
mypage ????
____________ Out of Order
|
#24 Tue 06 Nov, 2012 17:55 |
|
mort 
 Spam Basher

Joined: August 2010
Posts: 998
Location:  Up a tree
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
mypage ????
That's only an anchor var - could be anything? And maybe MG should consider renaming all the vars in that script because MyPage, MyThis or MyThat are all too commonly used and could be conflicting with other scripts?
Dunno! but, here's the original script before MG fixed it till it broke!
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
/****************************************************
Note: This has only been tested with Google Chrome and FireFox Browsers
And can't be guaranteed to work with others.
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>
There's more detail here ->
http://emillionforum.com/Thread-nea...n-t-get-blocked
I also did mention somewhere else that the latest FF is having some problems with some scripts, and that doesn't help the cause either.
I'll tell you what's killing it:
Only IE can get past the iframe at the top of admin - iframe.top - admin-index-top or something like that.
No other browser, or tools will parse the full html or script links to the pafiledb add a file template etc, you can't even use view-source with anything other than IE - So yeah! there is a problem.
And the only other thing that I found was pafiledb/functions.php x2 - CALUE=" and not VALUE=" if that's a typo, but it's certainly not the problem.
;(
|
#25 Tue 06 Nov, 2012 22:37 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
Can someone try just by replacing this code?
OPEN templates/common/ACP/pa_admin_file_edit
FIND
if({ADD_MIRRORS})
{
new_window('{U_MIRRORS_PAGE}', 'fileupload', '600','450', 'center', 'front');
}
function checkAddForm()
{
if(mirror_mode)
{
new_window('{U_MIRRORS_PAGE}', 'fileupload', '600','450', 'center', 'front');
return false;
}
REPLACE WITH
if({ADD_MIRRORS})
{
redirect_url = '{U_MIRRORS_PAGE}';
redirect_url = redirect_url.replace(/&/g, '&');
new_window(redirect_url, 'fileupload', '600', '450', 'center', 'front');
}
function checkAddForm()
{
if(mirror_mode)
{
redirect_url = '{U_MIRRORS_PAGE}';
redirect_url = redirect_url.replace(/&/g, '&');
new_window(redirect_url, 'fileupload', '600', '450', 'center', 'front');
return false;
}
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#26 Sun 11 Nov, 2012 12:05 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
don´t seem to be able to find that line´s , MG
You´re shure, it´s this file ??
I´ll take it that it´s this one.
templates/common/ ACP/pa_admin_file_edit.tpl
Edit.
fix work´s for me
____________ Out of Order
|
#27 Sun 11 Nov, 2012 13:06 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
You are right, I have amended file name.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#28 Sun 11 Nov, 2012 13:29 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
maybe you fix file path in BUG tracker aswell.
____________ Out of Order
|
#29 Sun 11 Nov, 2012 15:48 |
|
TheSteffen 
Joined: August 2006
Posts: 1625
Location:  Magdeburg
|
 Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors
maybe you fix file path in BUG tracker aswell.
I fixed the path in BUG tracker... thanks spydie
____________ TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
|
#30 Mon 12 Nov, 2012 13:18 |
|
|
Page 2 of 3
|
Was this topic useful?
Was this topic useful?
| Link this topic |
| URL |
|
| BBCode |
|
| HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|