* 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.
2015-03-10 01:00 (edited 2015-03-10 01:01 by JavaExperts ) · (0)
* 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="&lt;div class=&quot;list&quot;&gt;&lt;div class=&quot;lc&quot;&gt;&lt;img src=&quot;/.file_mime.&quot; width=&quot;40&quot; height=&quot;40&quot;&gt;&nbsp;&lt;b&gt;.file_name_parsed.&lt;/b&gt;&lt;/div&gt;&lt;a href=&quot;/download?id=.file_name.&type=.file_mime.&load=.file_url.&date=.file_date.&size=.file_size.&name=.file_name_parsed.&quot;&gt;&lt;img src=&quot;http://giga.yn.lt/z/li.png&quot;&gt;&nbsp;View / Download&lt;/a&gt;&lt;/div&gt;" 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
2015-03-10 04:01 (edited 2015-03-10 04:10 by Heriwap ) · (0)
* JavaExperts * Heriwap Thanks this worked http://mobtunes.cf/download?id=voice_sms.mp3&type=audio/mpeg&load=http://mobtunes.cf/tones/voice_sms.mp3&date=2015-03-11&size=26.53KB&name=voice how to add name as title?
2015-03-11 05:32 (edited 2015-03-11 05:34 by JavaExperts ) · (0)
* 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
2015-03-11 15:24 · (0)

Online: Guests: 1