File listing & paging codes
Befor adding File listing code YOU must create A page (:: EDIT SITE ::>Add new apge) for As Download page
and paste This Code
<div class="main"><table><tr><td class=""><img src=":get-comment:" height="175" width="150" alt="preview" align="center"/></td></tr></table>File Name : <b>:get-name:</b><br/>File Type : <b>:get-filetype:</b><br/>File ID : <b>:get-fileid:</b><br/>Size : <b>:get-size:</b><br/>Downloads : <b>:get-count:</b><br/><a href=":get-url:"><b>Download your file</b></a><a href="http://down3.ucweb.com/ucbrowser/en/?bid=354&pub=lxm@ecwapin&title=&url="><b>__here</b></a></div>
then note the site id and paste in to file listing codes
1. File listing Code For Wallpapers & Animations
Bollywood Movie Songs =Change to your title
d=282 change to your directory id
/site_140.xhtml change to your download page id
<<div class="blue" align="center"><b> Bollywood Movie Songs</b></div>
:filelist: d=282,o=:get-o(tu)[n;s;tu;d;tl]:, l=5, s=:geti-page(1): ::
<div><table class="page2" width="100%"><tr> <td width="30%"><img src="%url%" width="130" height="98" alt="."/></td><td> %name%<br/><font color="silver">(%size%)<br/>%count% Hits</font><br/><a href="/site_140.xhtml?get-name=%name%&get-url=%url%&get-size=%size%&get-timeadded=%time_added%&get-count=%count%&get-timedownl=%time_downl%&get-fileid=%file_id%&get-comment=%url%&get-filetype=%file_type%"> [Download]</a><br/></td></tr></table></div>:: :/filelist:
<div class="page1" align="center">
:paging:n=:geti-page(1):,u=site_:getid-site:.%ext%?get-page=%n%&get-o=:get-o[n;s;tu;d]::admin-hash-amp: ::%prev% <b>:color-black:•••:/color:</b> %next%<br/>:ad:1,2,3,4:/ad: <table align="center"><tr align="center"><td align="center">Pages:</td><td align="center"><div class="page2">%n%</div></td><td align="center"> <div class="page2">%n%</div></td><td align="center"> <div class="page2">%n%</div></td><td align="center"><div class="page2">%n%</div></td><td align="center"> <div class="page2">...</div></td><td align="center"><div class="page1">%nlast%</div></td></tr></table> Jump to page: <form method="get" action="/site_:getid-site:.xhtml?get-o=:get-o[n;s;tu]:"><input type="text" name="get-page" value=":geti-page:" size="3" style="-wap-input-format:*N;"/>:admin-hash-input:<input type="submit" value="Go"/></form>:/paging:</div>
:filelist: d=282,o=:get-o(tu)[n;s;tu;d;tl]:, l=5, s=:geti-page(1): ::
<div><table class="page2" width="100%"><tr> <td width="30%"><img src="%url%" width="130" height="98" alt="."/></td><td> %name%<br/><font color="silver">(%size%)<br/>%count% Hits</font><br/><a href="/site_140.xhtml?get-name=%name%&get-url=%url%&get-size=%size%&get-timeadded=%time_added%&get-count=%count%&get-timedownl=%time_downl%&get-fileid=%file_id%&get-comment=%url%&get-filetype=%file_type%"> [Download]</a><br/></td></tr></table></div>:: :/filelist:
<div class="page1" align="center">
:paging:n=:geti-page(1):,u=site_:getid-site:.%ext%?get-page=%n%&get-o=:get-o[n;s;tu;d]::admin-hash-amp: ::%prev% <b>:color-black:•••:/color:</b> %next%<br/>:ad:1,2,3,4:/ad: <table align="center"><tr align="center"><td align="center">Pages:</td><td align="center"><div class="page2">%n%</div></td><td align="center"> <div class="page2">%n%</div></td><td align="center"> <div class="page2">%n%</div></td><td align="center"><div class="page2">%n%</div></td><td align="center"> <div class="page2">...</div></td><td align="center"><div class="page1">%nlast%</div></td></tr></table> Jump to page: <form method="get" action="/site_:getid-site:.xhtml?get-o=:get-o[n;s;tu]:"><input type="text" name="get-page" value=":geti-page:" size="3" style="-wap-input-format:*N;"/>:admin-hash-input:<input type="submit" value="Go"/></form>:/paging:</div>
1. File listing Games ,Themes,Applications,Videos And Other all File Listing(not for image files)
Bollywood Movie Songs =Change to your title
d=282 change to your directory id
/site_140.xhtml change to your download page id
<<div class="blue" align="center"><b> Bollywood Movie Songs</b></div>
:filelist: d=282,o=:get-o(tu)[n;s;tu;d;tl]:, l=5, s=:geti-page(1): ::
<div><table class="page2" width="100%"><tr> <td width="30%"><img src="%comment%" width="130" height="98" alt="."/></td><td> %name%<br/><font color="silver">(%size%)<br/>%count% Hits</font><br/><a href="/site_140.xhtml?get-name=%name%&get-url=%url%&get-size=%size%&get-timeadded=%time_added%&get-count=%count%&get-timedownl=%time_downl%&get-fileid=%file_id%&get-comment=%comment%&get-filetype=%file_type%"> [Download]</a><br/></td></tr></table></div>:: :/filelist:
<div class="page1" align="center">
:paging:n=:geti-page(1):,u=site_:getid-site:.%ext%?get-page=%n%&get-o=:get-o[n;s;tu;d]::admin-hash-amp: ::%prev% <b>:color-black:•••:/color:</b> %next%<br/>:ad:1,2,3,4:/ad: <table align="center"><tr align="center"><td align="center">Pages:</td><td align="center"><div class="page2">%n%</div></td><td align="center"> <div class="page2">%n%</div></td><td align="center"> <div class="page2">%n%</div></td><td align="center"><div class="page2">%n%</div></td><td align="center"> <div class="page2">...</div></td><td align="center"><div class="page1">%nlast%</div></td></tr></table> Jump to page: <form method="get" action="/site_:getid-site:.xhtml?get-o=:get-o[n;s;tu]:"><input type="text" name="get-page" value=":geti-page:" size="3" style="-wap-input-format:*N;"/>:admin-hash-input:<input type="submit" value="Go"/></form>:/paging:</div>
Elective tag for files:
Tag :filelist: is designed for advanced users! For beginners is recommended to use above tags.
Syntax of tag:
:filelist:PARAMETERS::LINE_FORMAT::DELIMITER:/filelist:
Parameters have following format:
Parameter1=value,parameter2=value,parameter3=value
Available parameters:
o - ordering parameter. o parameter can has 5 values:
-n: order list by file name
-s: order list by file size (the biggest first)
-d: order list by count of downloads
-tl: order list by last download time (last downloaded first)
-tu: order list by time or upload (new first)
d - directory parameter. This parameter must have one or more (separated by space character) values of directory ID. If you want to display files from User upload directory skip this parameter
If you want to display files from User gallery, use directory ID "g" (d=g)
l - limit parameter. l parameter can have numeric value (1 - 50). It is maximal count of lines (files) for one site
s - site parameter. This parameter is useful, if you want to separate list on more sites. For example if you want to display list with first 10 files set parameter l on 10 and parameter s on 1, if you want to display next 10 files (11-20) leave parameter l on 10 and parameter s set on 2.
n - No value parameter. This parameter contain's text, whis is displayed, if no file is not displayed.
credit - this parameter define, how many credits will be increased or decreased from users account for download of file (credit=-10)
ucredit - this parameter define, how many credits will be increased or decreased from users account of user, who uloaded file (ucredit=10)
nc - set value of this parameter to 1 (nc=1) if you don't wanna update counters of file when is downloaded (useful for picture previews)
tu - With this parameter is possible to display files uploaded for last XX hours. For example tu=5 displays only files uploaded for last 5 hours.
dc - default comment parameter. Value from this parameter will be used instead of %comment% if %comment% is empty
x - this parameter define special option for DELIMITER field.
- With value s (x=s) is DELIMITER field used as search field of files.
- With value u (x=u) is DELIMITER field used as field, where you can set user name. With this option you can display files uploaded by selected user
- With value i (x=i) is DELIMITER field used as field, where you can set File ID (from %file_id%). With this option you can display only one selected file
Default values of parameter (if it's not set):
o: n
d: [User uploads]
l: 20
s: 1
For Line parameter can be used following variables:
%name% - File name
%lname% - File name (link)
%url% - URL of file, must be used with <a> xHTML code. Example: <a href="%url%">%name%</a>
%size% - Size of file
%count% - Count of downloads
%time_added% - Time, when file was uploaded (DD.MM.YYYY HH:MM:SS)
%time_downl% - Time, when file was last time downloaded (DD.MM.YYYY HH:MM:SS)
%user_upl% - User, who uploaded file
%luser_upl% - User, who uploaded file (link)
%user_last% - User, who last time downloaded file
%luser_last% - User, who last time downloaded file (link)
%comment% - comment of file
%file_id% - File ID
%file_type% - Content-type of the file
%wcode% - WCODE code
%del% - Create link to remove file uploaded by user. Only owner(uploader) or moderator(with edit profile permission) can remove file and only files from gallery (d=g) is possible to remove with this link!
%del-SiteID% Same as %del%, but user will be redirected to SiteID, when file is removed
%var-ID% Text variable
%var-ID(f=FUNCTION)% File variable. Function f can contains these values: img, link, url, id (img is file in IMG HTML code, link is file in A HTML code, url is URL of the file, id is file ID from file manager)
%sn% - Serial number of displayed row
Line format can contains text,known values (%...%) or WML/xHTML tags.
With Delimiter you can set text or WML/xHTML tags which will separate files.
:filelist:PARAMETERS::LINE_FORMAT::DELIMITER:/filelist:
Parameters have following format:
Parameter1=value,parameter2=value,parameter3=value
Available parameters:
o - ordering parameter. o parameter can has 5 values:
-n: order list by file name
-s: order list by file size (the biggest first)
-d: order list by count of downloads
-tl: order list by last download time (last downloaded first)
-tu: order list by time or upload (new first)
d - directory parameter. This parameter must have one or more (separated by space character) values of directory ID. If you want to display files from User upload directory skip this parameter
If you want to display files from User gallery, use directory ID "g" (d=g)
l - limit parameter. l parameter can have numeric value (1 - 50). It is maximal count of lines (files) for one site
s - site parameter. This parameter is useful, if you want to separate list on more sites. For example if you want to display list with first 10 files set parameter l on 10 and parameter s on 1, if you want to display next 10 files (11-20) leave parameter l on 10 and parameter s set on 2.
n - No value parameter. This parameter contain's text, whis is displayed, if no file is not displayed.
credit - this parameter define, how many credits will be increased or decreased from users account for download of file (credit=-10)
ucredit - this parameter define, how many credits will be increased or decreased from users account of user, who uloaded file (ucredit=10)
nc - set value of this parameter to 1 (nc=1) if you don't wanna update counters of file when is downloaded (useful for picture previews)
tu - With this parameter is possible to display files uploaded for last XX hours. For example tu=5 displays only files uploaded for last 5 hours.
dc - default comment parameter. Value from this parameter will be used instead of %comment% if %comment% is empty
x - this parameter define special option for DELIMITER field.
- With value s (x=s) is DELIMITER field used as search field of files.
- With value u (x=u) is DELIMITER field used as field, where you can set user name. With this option you can display files uploaded by selected user
- With value i (x=i) is DELIMITER field used as field, where you can set File ID (from %file_id%). With this option you can display only one selected file
Default values of parameter (if it's not set):
o: n
d: [User uploads]
l: 20
s: 1
For Line parameter can be used following variables:
%name% - File name
%lname% - File name (link)
%url% - URL of file, must be used with <a> xHTML code. Example: <a href="%url%">%name%</a>
%size% - Size of file
%count% - Count of downloads
%time_added% - Time, when file was uploaded (DD.MM.YYYY HH:MM:SS)
%time_downl% - Time, when file was last time downloaded (DD.MM.YYYY HH:MM:SS)
%user_upl% - User, who uploaded file
%luser_upl% - User, who uploaded file (link)
%user_last% - User, who last time downloaded file
%luser_last% - User, who last time downloaded file (link)
%comment% - comment of file
%file_id% - File ID
%file_type% - Content-type of the file
%wcode% - WCODE code
%del% - Create link to remove file uploaded by user. Only owner(uploader) or moderator(with edit profile permission) can remove file and only files from gallery (d=g) is possible to remove with this link!
%del-SiteID% Same as %del%, but user will be redirected to SiteID, when file is removed
%var-ID% Text variable
%var-ID(f=FUNCTION)% File variable. Function f can contains these values: img, link, url, id (img is file in IMG HTML code, link is file in A HTML code, url is URL of the file, id is file ID from file manager)
%sn% - Serial number of displayed row
Line format can contains text,known values (%...%) or WML/xHTML tags.
With Delimiter you can set text or WML/xHTML tags which will separate files.
Paging tag:
This tag is useful as additive for elective tags, this tag is generatig numbers with links.
Syntax:
:paging:PARAMETERS::FORMAT:/paging:
PARAMETERS has following format:
parameter1=value, parameter2=value, parameter3=value
Available parameters:
n - actual page number
m - maximum count of sites
u - form of URL (available variables: %n%,%ext% [%ext% = wml or xhtml or html])
Default FORMAT:
%first%.%prev%.%next%.%last%..%n%.%n%.%n%.%n%.%n%..%nlast%
FORMAT is not mandatory, use blank character if you wanna use this default FORMAT.
Example 1:
:paging:n=:geti-n(1):, m=10, u=index.xhtml?get-n=%n%:admin-hash-amp: :: :/paging:
This tag is generating 10 links:
:paging:PARAMETERS::FORMAT:/paging:
PARAMETERS has following format:
parameter1=value, parameter2=value, parameter3=value
Available parameters:
n - actual page number
m - maximum count of sites
u - form of URL (available variables: %n%,%ext% [%ext% = wml or xhtml or html])
Default FORMAT:
%first%.%prev%.%next%.%last%..%n%.%n%.%n%.%n%.%n%..%nlast%
FORMAT is not mandatory, use blank character if you wanna use this default FORMAT.
Example 1:
:paging:n=:geti-n(1):, m=10, u=index.xhtml?get-n=%n%:admin-hash-amp: :: :/paging:
This tag is generating 10 links:
Thank you brother.
ReplyDeleteadmin could show file listing in video
ReplyDeletein ordering variable tl is not working why tell me please!
ReplyDeleteI don't know
ReplyDeleteWhere I put these code
plz wml/xhtml code music file show code send me
ReplyDeleteI really love this tutorial, please the admin should continue cos I really need to learn all these codes, they`re giving me hardtime.
ReplyDeleteFor more tips & tricks. . . Visit www.kingoftricks.cf
ReplyDelete