2020-03-31, 00:40:07
(2020-03-16, 03:32:35)Oleg06 Wrote: I used this plugin http://get-simple.info/extend/plugin/admin-header-footer/10/Does Shawn's post about replacing basic.php tobytes() with the one from 3.4 have any relevance.
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.
Am I required to do that too?
Thanks