JavaExperts
Hai everyone;
i am with my new site
MobTunes , xtgem forum had helped me a lot for provoiding this help thanks @graham and other members but i need another help also i had description filisit code i want to add seperate download page for each of my tone can you help me with it?
Needed:
1. Download Page
2. Social Share for each file.
Heriwap
JavaExperts First your creat html file name
download
exp code to list file in download page:
<xt:include file="/folder/name1/{_$id|}" />
<xt:include file="/folder/name2/{_$id|}" />
<xt:include file="/folder/name3/{_$id|}" />
<div class="menu"><img src="http://giga.yn.lt/z/ok-icon.png"><b>Free download {_$name|Not found file}</b></div><div class="menu">Date : {_$date|error}<br>Size : {_$size|error}</font><br><img src="{_$type|http://giga.yn.lt/z/404.png}" width="100" height="100"><br>Type: {_$type|Erorr}</div><div class="menu"><a class="xt_button" href="{_$load|}">DOWNLOAD</a></div><div class="menu"><a href="http://facebook.com/sharer.php?u=<xt:url/ >" class="xt_button">Facebook</a> <a href="http://twitter.com/share?url=<xt:url/>" class="xt_button">Twitter</a> <a href="http://plus.google.com/share?url=<xt:url/>" class="xt_button">Google</a> </div>
Copy code
sort_type="
name"
sort_dir="
desc"
name= is sortir by name you can edit to "date" or "size"
desc = you can edit to "asc"
This page your filelist
exp:
<xt:filelist sort_type="name"
sort_dir="desc"
folder="/folder/name1" template="<div class="list"><div class="lc"><img src="/.file_mime." width="40" height="40"> <b>.file_name_parsed.</b></div><a href="/download?id=.file_name.&type=.file_mime.&load=.file_url.&date=.file_date.&size=.file_size.&name=.file_name_parsed."><img src="http://giga.yn.lt/z/li.png"> View / Download</a></div>" per_page="6" filter="-index" /><div class="menu"><b>Total = <font color="red"><xt:filecount folder="/folder/name1" /></font> Files</b></div>
Copy code
folder/
name1
name2, name3, etc
name1= is your upload files
KLIK HERE for view demo
Heriwap
JavaExperts you do not use filelist function
name = .file_name_parsed. So you use the {_ $id|} and will exit "name_file_your.mp3" but if you use a function name=
[_$name|} will appear
"name file your.mp3"
edit page download with code text editor and replace the code
<title>Download {_$id|Default title}</title>
Copy code