Make Fileice gateway script compatible?
2015-01-24, 01:41 AM,
#1
So I have a LP with some scripts, but whenever I add the fileice gateway script, they all immediately stop working. So there is some conflict. How should I fix this? Should I just post the direct download link?
Reply
2015-01-24, 04:58 AM,
#2
In which part of the HTML the scripts are called?
Reply
2015-01-24, 05:24 AM,
#3
That's probably because jQuery is being loaded twice, it is included in the FileIce script. So try deleting the load of the independent jQuery and leave only the FI included one.
Reply
2015-01-24, 06:13 AM,
#4
This is the same issue I am getting when I use WYSIWYG. That is an awesome tool for noobs that cannot code sites from scratch (like me). I don't have answer to this as well, because the code of the index that WYSIWYG drops is all messy. Sorry for a bit of offtopic, but it is similar problem. :)
Reply
2015-01-24, 06:16 AM,
#5
(2015-01-24, 05:24 AM)Matt1 Wrote: That's probably because jQuery is being loaded twice, it is included in the FileIce script. So try deleting the load of the independent jQuery and leave only the FI included one.

Yes, this is usualy the problem.
delete jquery script.

---------------------------------------------------------------------
hosting from $2,95/m
new2014 – 20% off recurring or new70 – 70% off first month
---------------------------------------------------------------------
NEW Proxy provider for Seo tools - Cupon "gsa" for 50% off 3mo


Reply
2015-01-24, 05:31 PM,
#6
(2015-01-24, 05:24 AM)Matt1 Wrote: That's probably because jQuery is being loaded twice, it is included in the FileIce script. So try deleting the load of the independent jQuery and leave only the FI included one.

Thanks a lot.
Reply
2015-01-24, 10:54 PM,
#7
(2015-01-24, 05:31 PM)metro Wrote:
(2015-01-24, 05:24 AM)Matt1 Wrote: That's probably because jQuery is being loaded twice, it is included in the FileIce script. So try deleting the load of the independent jQuery and leave only the FI included one.

Thanks a lot.

No problem, it happened to me too, and i was very frustrated. Glad it helped.
Reply
2015-02-01, 01:32 PM,
(This post was last modified: 2015-02-01, 01:35 PM by dvLden.)
#8
Members that said that current FileIce widget has jQuery loaded within it are correct.

FileIce uses very old jQuery library within it, I'd say version 1.1.2 or so. So if your website is using some jQuery code that is deprecated in newer versions eg. 2.x then you're not going anywhere by removing your newer jQuery library and start using old one that is within FileIce itself.

Also keep in mind that your site will stop loading if FileIce server is overloaded and cannot deliever gateway script quickly to your website.

So because all of this, what I suggest is following:

Code:
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

        <title>unique, relevant, 65 characters or so long</title>
        <meta name="description" content="unique, relevant, grammatically correct, roughly 160 or fewer characters">
        <meta name="keywords" content="">
        <meta name="author" content="">
    </head>

    <body>
        <!-- Document Content OPEN -->
            <h1>This is your awesome website</h1>
            <p>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
            </p>

            <button type="button" onclick="fiLoad('163565')">Widget Open</button>
        <!-- Document Content CLOSE -->


        <!-- jQuery dependency from Google CDN -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

        <script>
            // Set no-conflict for your personal jQuery code used in project
            jQuery.noConflict()(function ( $ ) {
                // Start writing your code
                console.log( 'Document is ready, no conflict from other scripts within here. Enjoy!' );
            });

            // Then load FileIce Gateway asynchronously
            jQuery.getScript( 'http://fileice.net/gateway/mygate.php?id=4465766c4278366467523838' );
  
            // Rewrite original FileIce trigger, to make sure that it is loaded first
            function fiLoad ( id ) {
                if ( typeof startGateway != 'undefined' ) {
                    startGateway( id );
                }
            }
        </script>
    </body>
</html>

To point out, always follow best practises in coding and you won't have any problems when someone else (3rd party) code it bad or improperly...
Latest Thanks - View all

metro(2015-02-04 11:51 PM) 
Reply
2015-02-04, 11:52 PM,
#9
(2015-02-01, 01:32 PM)dvLden Wrote: Members that said that current FileIce widget has jQuery loaded within it are correct.

FileIce uses very old jQuery library within it, I'd say version 1.1.2 or so. So if your website is using some jQuery code that is deprecated in newer versions eg. 2.x then you're not going anywhere by removing your newer jQuery library and start using old one that is within FileIce itself.

Also keep in mind that your site will stop loading if FileIce server is overloaded and cannot deliever gateway script quickly to your website.

So because all of this, what I suggest is following:

Code:
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

        <title>unique, relevant, 65 characters or so long</title>
        <meta name="description" content="unique, relevant, grammatically correct, roughly 160 or fewer characters">
        <meta name="keywords" content="">
        <meta name="author" content="">
    </head>

    <body>
        <!-- Document Content OPEN -->
            <h1>This is your awesome website</h1>
            <p>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
            </p>

            <button type="button" onclick="fiLoad('163565')">Widget Open</button>
        <!-- Document Content CLOSE -->


        <!-- jQuery dependency from Google CDN -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>

        <script>
            // Set no-conflict for your personal jQuery code used in project
            jQuery.noConflict()(function ( $ ) {
                // Start writing your code
                console.log( 'Document is ready, no conflict from other scripts within here. Enjoy!' );
            });

            // Then load FileIce Gateway asynchronously
            jQuery.getScript( '/gateway/mygate.php?id=4465766c4278366467523838' );
  
            // Rewrite original FileIce trigger, to make sure that it is loaded first
            function fiLoad ( id ) {
                if ( typeof startGateway != 'undefined' ) {
                    startGateway( id );
                }
            }
        </script>
    </body>
</html>

To point out, always follow best practises in coding and you won't have any problems when someone else (3rd party) code it bad or improperly...

Thanks for the code. You should post it somewhere as a public release incase anyone else has this problem, just suggesting.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  How can I make a Quora.com BOT? vincenzot_t 12 497 2017-10-20, 04:44 PM
Last Post: honeydew
  Membership Script with Paypal Integration nestx32 2 241 2017-10-12, 03:54 PM
Last Post: npm
  Im a programmer, i can make mobile landings pwnisher 2 314 2017-07-28, 09:16 AM
Last Post: Pachu
  How to make step content in website 5light 0 144 2017-07-24, 11:04 AM
Last Post: 5light
  Help Needed CPAgrip php script takumi 4 796 2017-01-24, 04:47 AM
Last Post: takumi




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top