XtGem Forum catalog

p _ x
Bookmark Weezywap
JarApkBmkOpera
(GMT+1)
Saturday May 18th 2024
+
Always Post weezywap.xtgem.com on your facebook, twitter, 2go, whatsapp and instagram status! If you love WEEZYWAP and enjoy unlimited services here!
»WEEZYWAP Forum
Forum Rules | Smilies | BB Codes | Back
* ola I uploaded images in my Icon folder for filelist images but itz not working
2016-12-23 12:22 · (0)
* Weezy * ola copy the images filelist code below ..replace your folder path and note that the folder should contain images only!
<!--parser:xtscript-->
# GET CURRENT VALUES OR SET DEFAULTS #
get_or_default srtby;updated
get_or_default srtdir;desc
get_or_default prpg;10
get_or_default fltr;
get_or_default __filelist_page;1
/* MARK CURRENT SORT TYPE */
var $cst = color:#0f0 !important
if $srtby==updated
var $cst1=$cst
elseif $srtby==name
var $cst2=$cst
elseif $srtby==size
var $cst3=$cst
elseif $srtby==type
var $cst4=$cst
endif
/* MARK CURRENT SORT DIRECTION */
if $srtdir==asc
var $csd1=$cst
elseif $srtdir==desc
var $csd2=$cst
endif
/* SET CURRENT PER PAGE */
var $sel = selected="selected" class="selected"
if $prpg==3
var $pp1=$sel
elseif $prpg==5
var $pp2=$sel
elseif $prpg==10
var $pp3=$sel
elseif $prpg==20
var $pp4=$sel
elseif $prpg==50
var $pp5=$sel
elseif  $prpg <=1
var $pp6=$sel
endif
# SET OUTER HOLDERS AND FORM HIDDEN FIELDS #
print {{
<div style="text-align:center">
<div style="text-align:center;background-color:#C0C0C0;border:1px solid #3b5998;padding:2px;margin:0 auto">
<form action=" " method="get">
<input style="display:inline" type="hidden" name="srtby" value="$srtby" />
<input style="display:inline" type="hidden" name="srtdir" value="$srtdir" />
<input style="display:inline" type="hidden" name="__filelist_page" value="$__filelist_page" />
}}
# SET THE COMMON STYLES #
var $style=border:1px solid #ffffff;border-radius:2px;background:#3b5998;color:#ffffff;padding:0 1px !important;margin: 1px !important;font-size:.75em;text-decoration:none !important
# SHOW SEARCH FILTER#
print {{
<img src="http://weezywap.xtgem.com/i/i5/fs.png" alt="" /><input style="$style;width:5em"  type="search" name="fltr" value="$fltr" /><input style="$style" type="submit" value="Search" />
<br />
}}
# SHOW SORT TYPE #
print {{
<a  style="$style;$cst1" href="?srtby=updated&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Updated"><b>Updated</b></a> . <a  style="$style;$cst2" href="?srtby=name&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Name"><b>Name</b></a> . <a  style="$style;$cst3" href="?srtby=size&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Size"><b>Size</b></a> . <a  style="$style;$cst4" href="?srtby=type&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="type"><b>Type</b></a>  
}}
# SHOW SORT DIRECTION #
print {{ 
<br/><a style="$style;$csd1" href="?srtby=$srtby&srtdir=asc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Ascending"><b>Ascending</b></a> . <a style="$style;$csd2" href="?srtby=$srtby&srtdir=desc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Descending"><b>Descending</b></a>
<br />
}}
# SHOW PER PAGE #
print {{
<select style="$style;" name="prpg">
<option $pp1>3</option>
<option $pp2>5</option>
<option $pp3>10</option>
<option $pp4>20</option>
<option $pp5>50</option>
<option $pp6 value=" ">all</option>
</select><input style="$style"  type="submit" value="Per Page" />
}}
# CLOSE FORM AND HOLDERS #
print {{
</form>
</div>
</div>
}}
/* THE XT:FILELIST FUNCTION */
/* Set your own folder and template */
print <xt:filelist sort_type="$srtby" sort_dir="$srtdir" folder="/images" template="&lt;table width='100%'&gt;&lt;tr&gt;&lt;td width='25%' class='zxfourborder' align='center'&gt;&lt;img src='.file_url.' width='100%' height='100%'&gt;&lt;/td&gt;&lt;td width='75%' align='left' class='zxfourborder'&gt;&lt;img src='http://weezywap.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='.file_url.'&gt;&lt;b style='color:red'&gt;Preview&lt;/b&gt;&lt;/a&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&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" filter="$fltr*" per_page="$prpg" />
<!--/parser:xtscript-->

Copy code
2016-12-23 21:42 · (0)
* ola Sorry I meant Image preview link for file
d left side image for files in the file list code not image filelist code
2016-12-23 23:57 · (0)
* Legendishaq * ola Copy the image preview filelist code.


<!--parser:xtscript-->
# GET CURRENT VALUES OR SET DEFAULTS #
get_or_default srtby;updated
get_or_default srtdir;desc
get_or_default prpg;10
get_or_default fltr;
get_or_default __filelist_page;1
/* MARK CURRENT SORT TYPE */
var $cst = color:#0f0 !important
if $srtby==updated
var $cst1=$cst
elseif $srtby==name
var $cst2=$cst
elseif $srtby==size
var $cst3=$cst
elseif $srtby==type
var $cst4=$cst
endif
/* MARK CURRENT SORT DIRECTION */
if $srtdir==asc
var $csd1=$cst
elseif $srtdir==desc
var $csd2=$cst
endif
/* SET CURRENT PER PAGE */
var $sel = selected="selected" class="selected"
if $prpg==3
var $pp1=$sel
elseif $prpg==5
var $pp2=$sel
elseif $prpg==10
var $pp3=$sel
elseif $prpg==20
var $pp4=$sel
elseif $prpg==50
var $pp5=$sel
elseif  $prpg <=1
var $pp6=$sel
endif
# SET OUTER HOLDERS AND FORM HIDDEN FIELDS #
print {{
<div style="text-align:center">
<div style="text-align:center;background-color:#C0C0C0;border:1px solid #3b5998;padding:2px;margin:0 auto">
<form action=" " method="get">
<input style="display:inline" type="hidden" name="srtby" value="$srtby" />
<input style="display:inline" type="hidden" name="srtdir" value="$srtdir" />
<input style="display:inline" type="hidden" name="__filelist_page" value="$__filelist_page" />
}}
# SET THE COMMON STYLES #
var $style=border:1px solid #ffffff;border-radius:2px;background:#3b5998;color:#ffffff;padding:0 1px !important;margin: 1px !important;font-size:.75em;text-decoration:none !important
# SHOW SEARCH FILTER#
print {{
<img src="http://weezywap.xtgem.com/i/i5/fs.png" alt="" /><input style="$style;width:5em"  type="search" name="fltr" value="$fltr" /><input style="$style" type="submit" value="Search" />
<br />
}}
# SHOW SORT TYPE #
print {{
<a  style="$style;$cst1" href="?srtby=updated&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Updated"><b>Updated</b></a> . <a  style="$style;$cst2" href="?srtby=name&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Name"><b>Name</b></a> . <a  style="$style;$cst3" href="?srtby=size&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Size"><b>Size</b></a> . <a  style="$style;$cst4" href="?srtby=type&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="type"><b>Type</b></a>  
}}
# SHOW SORT DIRECTION #
print {{ 
<br/><a style="$style;$csd1" href="?srtby=$srtby&srtdir=asc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Ascending"><b>Ascending</b></a> . <a style="$style;$csd2" href="?srtby=$srtby&srtdir=desc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Descending"><b>Descending</b></a>
<br />
}}
# SHOW PER PAGE #
print {{
<select style="$style;" name="prpg">
<option $pp1>3</option>
<option $pp2>5</option>
<option $pp3>10</option>
<option $pp4>20</option>
<option $pp5>50</option>
<option $pp6 value=" ">all</option>
</select><input style="$style"  type="submit" value="Per Page" />
}}
# CLOSE FORM AND HOLDERS #
print {{
</form>
</div>
</div>
}}
/* THE XT:FILELIST FUNCTION */
/* Set your own folder and template */
print <xt:filelist sort_type="$srtby" sort_dir="$srtdir" folder="/images" template="&lt;table width='100%'&gt;&lt;tr&gt;&lt;td width='25%' class='zxfourborder' align='center'&gt;&lt;img src='.file_url.' width='100%' height='100%'&gt;&lt;/td&gt;&lt;td width='75%' align='left' class='zxfourborder'&gt;&lt;img src='http://weezywap.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='.file_url.'&gt;&lt;b style='color:red'&gt;Preview&lt;/b&gt;&lt;/a&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&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" filter="$fltr*" per_page="$prpg" />
<!--/parser:xtscript-->

Copy code

create a file page name preview and paste the below code inside that's the preview code
<img src="{_$link|}" alt="{_$name|} width="320" height="200" />
Copy code
2016-12-24 11:03 · (0)
* Weezy * ola Copy above
2016-12-25 08:17 · (0)
* ola Plz help me with Filelist code with different thumbnail
2017-01-06 17:05 · (0)
* Weezy * ola It requires uploading a thumbnail for every file u upload ..can u do that?
2017-01-06 23:45 · (0)
* ola Yes
2017-01-07 01:34 · (0)
* ola Just help me with d process/tutorials
2017-01-07 11:00 · (0)
* Weezy * ola Copy the filelist code below ..Create a folder named thumbs directly in your filebrowser @ http://xtgem.com/filebrowser ..thats where u will be uploading all the file thumbnail/images ..assuming the name of the file you want to upload or already uploaded is Wizkid_ft._Davido_-_Good.mp3 ..then when u upload the file thumbnail image in the 'thumbs' folder ..rename the image to the exact name of the video then add .jpg immediately after the name like Wizkid_ft._Davido_-_Good.mp3.jpg ..so the image preview link in the filelist code will be like <img src="/thumbs/.file_name..jpg" alt=".file_name." />
Replace DIV_CLASS in the code with your active css class!
<center><xt:filelist sort_type="updated" sort_dir="desc" folder="/my_files" template="&lt;table width='100%'&gt;&lt;tr&gt;&lt;td width='25%' class='DIV_CLASS' align='center'&gt;&lt;img src='/thumbs/.file_name..jpg' width='100%' height='100%'&gt;&lt;/td&gt;&lt;td width='75%' align='left' class='DIV_CLASS'&gt;&lt;img src=''/&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]&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" filter="*.*" per_page="10" /><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
2017-01-08 00:49 · (0)

Online: Guests: 1

Translate
Pages
Copyright © 2024 WEEZYWAP
facebook twitter whatsapp google plus
Home | About Us | Advertise | Frequently Asked Question | Contact Us | Partners | Disclaimer | Terms of Services | Invite Friends | Credits



Online: 1 , Today: 1296, Hits: 7623607
Last modified: 27-08-2018 11:42:51 pm