Eaglenet logo
24/7 updates on happenings in africa
*SADEEQWEP 2017-01-25 05:10
Haw to add my polder name in this code this is my polder name /book_1
<style type="text/css">
.eagle {
border-right: 4px solid #3b5998; border-left: 4px solid #3b5998;
padding-bottom: 4px; padding-top: 6px; font-weight: bold; margin-bottom: 2px;
text-align:center;
color: black;}
.eagle a{color: #3b5998 !important;}
body{margin: 0 !important;}
</style>

<div class="full"><div class="name"><img src="/icon/action.png">Related Files</div></div>
 
<!--parser:xtscript-->
# Path to files folder
var $path_to_folder = 

# this removes files with no extension
var $filter= *.*

# 0 for all items
var $number_of_items = 5

# un-encoded filelist template
var $filelist_template = <div class="eagle"><img src="http://xtgem.com/images/icons/mimes/.file_type..png" alt="*" /><a href="/download?file=.file_name.&name=.file_name_parsed.&category=.file_mime.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time.&fold=/main/2go/files"> .file_name_base_parsed.</a></div>

# Process variables
var $filelist_template = call htmlspecialchars $val=$filelist_template 
if not $number_of_items
var $number_of_items = list.length-1
endif
<!--/parser:xtscript-->

<script type="text/javascript">
function shuffleArray(array) {
for (var i = array.length - 2; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = array[i];
array[i] = array[j];array[j] = temp;}
return array;}
var list=[<xt:filelist folder="{_$fold|/apps/androids}" template=" '{_$$filelist_template |}', " filter="{_$$filter|}"/>'dummy_entry'];
var list = shuffleArray(list);for(var i=0;i<{_$$number_of_items |};i++){
document.write(list[i]);}
</script>

Copy code


please
(Edited by 2017-01-25 05:11 sadeeqwep )
    ·
  • rated(0)
Oniline