Old school Swatch Watches
Samystick Logo
HOMEGAMESAPPSJW.ORG
Current Time :
$ SAMYSTICK
ONLINE
King Of Codes
- SAMYSTICK FORUM -
Forum Rules | Smilies | BB Codes | Back
*Post reply · Invite friends · From end
Olumide Guy please for God sake give me all the turtorials on file list code and how to use it abeg
2016-09-04 07:31 · Reply · (1)
* 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:
<xt:filelist
sort_type=""
sort_dir=""
folder=""
template=""
per_page=""
filter="" / >

Copy code

Basic Filelist Functions :
Sort Files by:
+ Last modified date
+ Name
+ Type
+Size
Sort Direction:
your sort direction could be,
+ Ascending or
+ Descending
Folder:
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 11:01 · Reply · (0)
* 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,
<xt:filelist
sort_type="updated"
sort_dir="asc"
folder="/Filestest"
template=""
per_page="6"
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 11:29 (edited 2016-09-04 11:30 by Samystick ) · 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 03:55 · Reply · (1)
* 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 04:26 · Reply · (0)
* 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 05:11 · Reply · (0)
Olumide * Samystick Have don the file list but it's not like weezywap nor the design.. what am I suppose to do?
2016-09-05 07:26 · Reply · (0)
* Samystick * Olumide Ok, giv me the address (Url) Of The page u put the filelist let me know where you are at fault.
2016-09-05 08:06 · Reply · (0)
Olumide * Samystick owk thanks... http://iwahp.yn.lt/Music/Music
2016-09-05 11:11 · Reply · (0)
* Samystick * Olumide ok, there is some things we should be arranging in that page.
1. You know that page looks like ur homepage meaning that the css ur using will make things different. tell me if u want to change d css of the page.
2. The two links in orange color there i.e
When i click *Itumo by lil kesh - YAGI* is opens an empty page,
And when i clicked *Wizkid, wine like this.* it shows error page. So from my observation,
1. The css in d page will make things look different
2. I think you did Not place the filelist code properly,
So make sure the name of d folder u placed the files to list match the name u used in,
folder="/FOLDER" e.g if u have a folder named Musics and inside it u hav another folder name Hip-Hop which contains hip - hop songs u want to list, then that code will be like this
folder="/Musics/Hip-Hop/" as in
<xt:filelist
sort_type="updated"
sort_dir="asc"
folder="/Musics/Hip-Hop/"
template=""
per_page="5"
filter="" />

Copy code

And make sure the files have their extensions (.mp3) etc.
The files in ur folder should list out exactly as it listed out HERE, if not u know dat d code hav mistakes.
And its in the template attribute u will place how the content will view.
Maybe u should check out http://weezywap.xtgem.com/Wapmasta/Css1/css_menu.php for the css stylesheet you like and then tell me the name.
2016-09-05 21:00 (edited 2016-09-06 01:56 by Samystick ) · Reply · (0)

Online: Guests: 1
Online : 1 Guest(s)
Today : 7562 Guest(s)
Total : 183003 Hit(s)
Samystick Always Online
TRANSLATE THIS PAGE
Created By : SAMYSTICK
Copyright 2013 - 2016
Samuel Osisiogu - Samystick