Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 3
Goto page Previous  1, 2, 3  Next
 
Reply with quote Download Post 
Post Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors 
 
tried that before posting here, and did´nt work Josh
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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?¿?)
 
Joshua203Send private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors 
 
spydie wrote: [View Post]
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?
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors 
 
this looks to be the problematic part

Code: [Download] [Hide] [Select]
<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&amp;file_id=3&amp;sid=2f55f20b243b6a66032d1741065de232', 'fileupload', '600','450', 'center', 'front');
    }

    function checkAddForm()
    {
        if(mirror_mode)
        {
            new_window('admin_pa_file.php?mode=mirrors&amp;file_id=3&amp;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

Code: [Download] [Hide] [Select]
win = window.open(mypage, myname, settings);


mypage ????
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors 
 
spydie wrote: [View Post]
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!  

Spoiler: [ Show ]


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.

;(
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
Code: [Download] [Hide] [Select]
    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
Code: [Download] [Hide] [Select]
    if({ADD_MIRRORS})
    {
        redirect_url = '{U_MIRRORS_PAGE}';
        redirect_url = redirect_url.replace(/&amp;/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(/&amp;/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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors 
 
maybe you fix file path in BUG tracker aswell.
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [BUG] IP 2.0 - I Can Not Use Pafiledb Mirrors 
 
spydie wrote: [View Post]
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
 
TheSteffenSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 3
Goto page Previous  1, 2, 3  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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