XtGem Forum catalog
>
Keyarn logo
._

Dear , Are u Writting WAEC, GCE, AND NECO EXAM ? Click Here to Submit your Phone Number for Updates

»KEYARN Forum

Insane
-
* Login · Signup
*
Keyarn(Admin) said on 2017-02-24 06:32
* ayhold
Creat a page where you want your musics to be displaying then copy the file list bellow
<div align="center">
<!--parser:xtscript-->
# GET CURRENT VALUES OR SET DEFAULTS #
get_or_default srtby;updated
get_or_default srtdir;desc
get_or_default prpg;10
get_or_default fltr;
get_or_default __filelist_page;1
/* MARK CURRENT SORT TYPE */
var $cst = color:#0f0 !important
if $srtby==updated
var $cst1=$cst
elseif $srtby==name
var $cst2=$cst
elseif $srtby==size
var $cst3=$cst
elseif $srtby==type
var $cst4=$cst
endif
/* MARK CURRENT SORT DIRECTION */
if $srtdir==asc
var $csd1=$cst
elseif $srtdir==desc
var $csd2=$cst
endif
/* SET CURRENT PER PAGE */
var $sel = selected="selected" class="selected"
if $prpg==3
var $pp1=$sel
elseif $prpg==5
var $pp2=$sel
elseif $prpg==10
var $pp3=$sel
elseif $prpg==20
var $pp4=$sel
elseif $prpg==50
var $pp5=$sel
elseif  $prpg <=1
var $pp6=$sel
endif
# SET OUTER HOLDERS AND FORM HIDDEN FIELDS #
print {{
<div style="text-align:center">
<div style="text-align:center;background-color:#C0C0C0;border:1px solid #3b5998;padding:2px;margin:0 auto">
<form action=" " method="get">
<input style="display:inline" type="hidden" name="srtby" value="$srtby" />
<input style="display:inline" type="hidden" name="srtdir" value="$srtdir" />
<input style="display:inline" type="hidden" name="__filelist_page" value="$__filelist_page" />
}}
# SET THE COMMON STYLES #
var $style=border:1px solid #ffffff;border-radius:2px;background:#3b5998;color:#ffffff;padding:0 1px !important;margin: 1px !important;font-size:.75em;text-decoration:none !important
# SHOW SEARCH FILTER#
print {{
<img src="http://unlimitedapps.xtgem.com/i/i5/fs.png" alt="" /><input style="$style;width:5em"  type="search" name="fltr" value="$fltr" /><input style="$style" type="submit" value="Search" />
<br />
}}
# SHOW SORT TYPE #
print {{
<a  style="$style;$cst1" href="?srtby=updated&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Updated"><b>Updated</b></a> . <a  style="$style;$cst2" href="?srtby=name&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Name"><b>Name</b></a> . <a  style="$style;$cst3" href="?srtby=size&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Size"><b>Size</b></a> . <a  style="$style;$cst4" href="?srtby=type&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="type"><b>Type</b></a>  
}}
# SHOW SORT DIRECTION #
print {{ 
<br/><a style="$style;$csd1" href="?srtby=$srtby&srtdir=asc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Ascending"><b>Ascending</b></a> . <a style="$style;$csd2" href="?srtby=$srtby&srtdir=desc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Descending"><b>Descending</b></a>
<br />
}}
# SHOW PER PAGE #
print {{
<select style="$style;" name="prpg">
<option $pp1>3</option>
<option $pp2>5</option>
<option $pp3>10</option>
<option $pp4>20</option>
<option $pp5>50</option>
<option $pp6 value=" ">all</option>
</select><input style="$style"  type="submit" value="Per Page" />
}}
# CLOSE FORM AND HOLDERS #
print {{
</form>
</div>
</div>
<div align="center" class="full"><a href="http://keyarn.xtgem.com/searcher?search=$fltr&anywhere=1"><b>Advanced Search Engine</b></a></div>
}}
/* THE XT:FILELIST FUNCTION */
/* Set your own folder and template */
print <xt:filelist sort_type="$srtby" sort_dir="$srtdir" folder="/YUOR FOLDER" template="&lt;table width='100%'&gt;&lt;tr&gt;&lt;td width='25%' class='zxfourborder' align='center'&gt;&lt;img src='IMAGE URL' width='50%' height='75%'&gt;&lt;/td&gt;&lt;td width='45%' align='left' class='zxfourborder'&gt;&lt;img src='http://keyarn.xtgem.com/images/rt/rating.gif'/&gt;&lt;br/&gt;&lt;b&gt;Name: &lt;/b&gt;&lt;b style='color:blue'&gt;.file_name_parsed.&lt;/b&gt;&lt;br/&gt;&lt;b&gt;File Size: &lt;/b&gt;&lt;b style='color:green'&gt;.file_size.&lt;/b&gt;&lt;br/&gt;&lt;b&gt;•   &lt;/b&gt;&lt;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.'&gt;&lt;b style='color:red'&gt;Download Now!&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" filter="$fltr*" per_page="$prpg" />
<!--/parser:xtscript-->
</div>

Copy code
Note: replace that
YOUR FOLDER to the name of the folder you upload your musics
Copy code
then for download page, creat andoa page direct in your filebrowser nad name it download and past the bellow code



<div class="header"><center><b>File Statistics</b></center></div>
<div class="menu"><b>Name:</b> <b style=color:red;>{_$name|No File Referred To}</b></div>
<div class="menu"><b>File size:</b> <b style=color:red;>{_$size|No File Referred To}</b></div>
<div class="menu"><b>Category:</b> <b style=color:red;>{_$category|No File Referred To}</b></div>
<div class="menu"><b>Time Of Upload:</b> <b style=color:red;>{_$time|Not Available}</b></div>
<div class="menu"><b>Date Of Upload:</b> <b style=color:red;>{_$date|Not Available}</b></div>
<div class="menu"><a href="{_$href|404}"><center><img src="http://keyarn.xtgem.com/images/download_icon2.png"></center></a></div><br/><table width="100%" border="0"><tr><td width="33%" bgcolor="" class="DIV_CLASS" align="center"><b>URL</b><br/><input type="text" size="5%" value="{_$href|http://<xt:url type="domain"/>/index}"></input></td><td width="34%" bgcolor="" class="DIV_CLASS" align="center"><b>HTML</b><br/><input type='text' size='5%' value='<a href="{_$href|http://<xt:url type="domain"/>/index}">Download {_$name|Nothing}</a>'></input></td><td width="33%" bgcolor="" class="DIV_CLASS" align="center"><b>BB CODE</b><br/><input type="text" size="5%" value="[url={_$href|http://<xt:url type="domain"/>/index}]Download {_$name|Nothing}[/url]"></input></td></tr></table>

Copy code
and replace the div class with yours
(edited 2017-02-24 12:01 by Keyarn )
    ·
  • Likes(0)

  • ONLINE *:
  • ONLINE GUESTS:
  • (1)
online:12day:242total:271259

facebooktwitterwhatsappgoogle plus
Created by:FRIENDSCY™
© 2017 KEYARN
All Rights Reserved

Online : 1Today : 2Total : 271259