Samystick Logo
Current Time :
My Status :
Is Online!
Be Willing To Post samystick.xtgem.com On Your Facebook, Twitter And 2go Status.
Samystick Logo
Current Time :
King Of Codes
Forum Rules | Smilies | BB Codes | Back
*Post reply · Invite friends · From start
* Samystick * Olumide I hav already thought u about d filelist and i hope u understand? Now i'm to teach u about the things inside " " as in template=" " okay,
1. Template is used to arrange how the files in ur folder will view using html code. Instead of listing the files, you use template to manipulate them into divs or table etc.
2. There are some characters used, they are
&lt; - which means less than (< )
&gt;- means greater than ( > )
.file_name_parsed. - this show the name of d file with underscores ( _ ) converted to spaces,
.file_size. - this shows size of file
.file_mime. - this returns file mime of the file e.g: image/png
So what i created inside the template is a table which u beautify using ur div classes. The table allows u to put a constant image at the left column and a little information about the file with the download link in the right column.
3. In the Download Now link, there is a code looks like this:
&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;
Copy code

This means that when u click the red "Download Now" link, it will lead you to the download page u created directly in you file browser and the code u pasted in the download page will collect the informations about the file and also provide the actual download link for the file.
2016-09-05 15:11 · Reply · (0)
* Samystick * Olumide Nice. Owk Copy the filelist and the download page code below, replace the ones in
capital letters, create a file named 'download' direct in ur file browser ..and paste the download page code in it..replace the div class names in the download page with ur own div class names:
<center><xt:filelist sort_type="updated" sort_dir="desc" folder="/FOLDER" template="&lt;table width='100%'&gt;&lt;tr&gt;&lt;td width='25%' class='DIV_CLASS' align='center'&gt;&lt;img src='http://iMAGE_PREVIEW_LINK.png' width='100%' height='100%'&gt;&lt;/td&gt;&lt;td width='75%' align='left' class='DIV_CLASS'&gt;&lt;img src='http://samystick.xtgem.com/images/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="*.*" per_page="5" /><br/>Jump to page:<form action="<xt:url type="path" />" method="get"><input type="text" style="width:25px" name="__filelist_page"><input
type="submit" value="jump"></form></center>

Copy code

Create a file named download direct in ur filebrowser ..dont put it in any folder ..inside the download ..enter the code below
<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://www.weezywap.xtgem.com/Pic/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
2016-09-05 14:26 · Reply · (0)
Olumide * Samystick Have gotten the file list code so proceed to to how to design the file list and download page
2016-09-05 13:55 · Reply · (1)
* Samystick * Olumide This is how to use filelist:
1. In your root folder, create a folder named Filestest,
2. Upload files in that folder. The files could be photos, songs, games, apps, etc just about six files.
3. Create a page in ur root folder named TestCode for testing.
4. Open the TestCode page and copy this code and paste it there,
filter="" />

Copy code

After you finish, check if it looked like what i hav in this page, then reply to me.
Here's the page http://samystick.xtgem.com/Test
We'll talk about the template="" later when u understand the basic part.
2016-09-04 21:29 (edited 2016-09-04 21:30 by Samystick ) · Reply · (0)
* Samystick * Olumide 1. FILELIST :
Filelist function is used for listing files that you want to set for download. The files are contained in a partiular folder.
2. To add filelist through xtgem building tool,
+ Click Add block on the page you are working on,
+ Scroll down under Advanced, click Advanced
+ Click Filelist
3. To add filelist through html code, write it like this:
filter="" / >

Copy code

Basic Filelist Functions :
Sort Files by:
+ Last modified date
+ Name
+ Type
Sort Direction:
your sort direction could be,
+ Ascending or
+ Descending
Select the folder containing the files you want to list
Per Page:
Select the number of files you want to display in a page before going to the next page.
2016-09-04 21:01 · Reply · (0)
Olumide Guy please for God sake give me all the turtorials on file list code and how to use it abeg
2016-09-04 17:31 · Reply · (2)

Online: Guests: 1
Online : 1 Guest(s)
Today : 3876 Guest(s)
Total : 1769523 Hit(s)
Samystick Always Online
Created By : SAMYSTICK
Copyright 2013 - 2016
Samuel Osisiogu - Samystick