Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3.3.16 Release
#9
(2020-03-16, 03:32:35)Oleg06 Wrote: I used this plugin http://get-simple.info/extend/plugin/adm...footer/10/

[Image: 21.png]

and the following codes:

in the header

Code:
<?php if(GSVERSION=='3.3.16') { ?>
<style>
input[type=file] {
 cursor: pointer;
 width: 100% !important;
 height: 40px;
 color:transparent;
}
input[type=file]:before {
 width: 100%;
 height: 40px;
 font-size: 16px;
 line-height: 40px;
 content: '<?php i18n("FILE_BROWSER"); ?>';
 display: inline-block;
 background: rgba(0,0,0,0.4);
 border: 1px rgba(0,0,0,0.6);
 padding: 0;
 text-align: center;
 border-radius:5px;
 transition: all 0.5s;
 color:rgba(255,255,255,0.6);
}
.uploadform p:hover input[type=file]:before {
 background: rgba(0,0,0,0.6);
 color:#ffffff;
}
input[type=file]::-webkit-file-upload-button {
 visibility: hidden;
}
#sidebar .uploadform {
 padding: 5px 0px 5px 15px !important;
 overflow:hidden !important;
}
</style>
<?php } ?>

in the footer

Code:
<?php if(GSVERSION=='3.3.16') { ?>
<script>
$(document).ready(function() {

    $('.uploadform p').append('<div id="file-name"></div>');
    
    $("#file").change(function(){
    
        var name_file = [];
        
        for(var i = 0; i < $(this).get(0).files.length; ++i) {
        
            name_file.push($(this).get(0).files[i].name);
            
        }
        
        $("#file-name").text(name_file.join(", "));

    });
    
});
</script>
<?php } ?>

Now the download looks like this.

[Image: 22.png]
Does Shawn's post about replacing basic.php tobytes() with the one from 3.4 have any relevance. 
Am I required to do that too?

Thanks
Reply


Messages In This Thread
3.3.16 Release - by RandyC - 2020-03-09, 11:36:21
RE: 3.3.16 Release - by shawn_a - 2020-03-10, 01:07:38
RE: 3.3.16 Release - by shawn_a - 2020-03-10, 01:10:07
RE: 3.3.16 Release - by RandyC - 2020-03-10, 04:13:32
RE: 3.3.16 Release - by Oleg06 - 2020-03-15, 23:06:47
RE: 3.3.16 Release - by Oleg06 - 2020-03-16, 03:32:35
RE: 3.3.16 Release - by craiga - 2020-03-31, 00:40:07
RE: 3.3.16 Release - by bafrali55 - 2020-03-16, 07:33:30
RE: 3.3.16 Release - by shawn_a - 2020-03-17, 22:43:22
RE: 3.3.16 Release - by Oleg06 - 2020-04-23, 00:49:31
RE: 3.3.16 Release - by Oleg06 - 2020-04-23, 03:45:14



Users browsing this thread: 2 Guest(s)