* Graham * Waplocus
Just add the include

<div><xt:include file="/file" />{_$$l1|}<xt:include file="/file" />{_$$l2|}<xt:include file="/file" />{_$$l3|}</div>
2016-12-06 00:43 (edited 2016-12-06 00:46 by Graham ) · (0)
* Waplocus * Graham It Say's "Xtscript Timeout"...
This The Filelist Code Below...
<div class="Content">
<!--parser:xtscript-->
var $list = <xt:filelist sort_type="name" sort_dir="desc" folder="/Zolo/SF" template="&lt;center&gt;&lt;div class=&quot;Content&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;div class=&quot;NBg&quot;&gt;&lt;div id=&quot;NHead&quot;&gt;Name: .file_name_parsed.&lt;/div&gt;&lt;div id=&quot;NBody&quot;&gt;&lt;img src=&quot;/Zolo/Scripts/Images/Image.png&quot; id=&quot;NPImg&quot;/&gt;Dowload .file_name_base_parsed. Of Size .file_size. And Mime .file_mime..&lt;/div&gt;&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;/download?file=.file_name.&name=.file_name_parsed.&category=.file_mine.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time.&quot;&gt;<xt:include file="/Zolo/Scripts/EXT/Download" />&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;&lt;!--*--&gt;" per_page="10" />
var $count=1
var $pos=0
@loop
var $pos=call strpos $haystack=$list; $needle=<!--*-->; $offset=($pos 1);
if $count<5
var $count=($count 1)
goto @loop
endif
var $l1=call substr $val=$list; $start=0 ; $length=$pos
var $l2=call substr $val=$list; $start=$pos
var $pos=call strpos $haystack=$l2; $needle=<!--p-->;
var $l3=call substr $val=$l2; $start=$pos
var $l2=call substr $val=$l2; $start=0 ; $length=$pos
<!--/parser:xtscript-->
<div>{_$$l1|}<xt:include file="/EXT/Ad_Mid" />{_$$l2|}<xt:include file="/EXT/Ad_Mid" />{_$$l3|}</div></div>

Copy code
2016-12-06 02:35 · (0)
* Waplocus * Waplocus I'm Xt:includin The Pagination On The Page...
This Is The content of
<!--parser:xtscript-->
# Paging function
function paging_template $url;$page;$active_page;$total_pages;
# Only one page so exit
if $total_pages == 1
return
endif
# Paging container
if $page == 1
Print <!--p--> <div class="custom_paging PagiWrap">
# First page button    
if $page == $active_page
print <span>&laquo;</span>
elseif $page == 1
print <a href="$url">&laquo;</a>
endif
# Previous four pages buttons
if ($page+1) == $active_page or ($page+2) == $active_page or ($page+3) == $active_page or ($page+4) == $active_page
print <a href="$url">$page</a>
endif
# Current page button
if $page == $active_page 
print <span>$page</span>
endif
# Next four pages buttons
if ($page-1) == $active_page or ($page-2) == $active_page  or ($page-3) == $active_page or ($page-4) == $active_page
print <a href="$url">$page</a>
endif
# Last page button
if not $page == $total_pages
goto @skip
endif
if $page==$active_page
print <span>&raquo;</span></div>
else
print <a href="$url">&raquo;</a></div>
endif  
@skip   
endfunction
<!--/parser:xtscript-->

Copy code
2016-12-06 02:38 · (0)
* Waplocus * Waplocus Please All Want To Do Is e.g
Xt:include
1
2
3
4
5
xt:include
6
7
8
9
10
xt:include
pagination(1,2,3...)

THANKS Sir Graham.
2016-12-06 02:41 · (0)
* Graham * Waplocus Does the script timeout on other (smaller) folders
2016-12-06 03:24 · (0)
* Waplocus * Graham i placed in a different folder and file nd i stil got "XtScript Error: Timeout."
2016-12-06 04:15 · (0)
* Graham * Waplocus
Whats that unconverted include doing in the template ?
That would break the filelist it should be
&lt;xt:include file=&quot;/Zolo/Scripts/EXT/Download&quot; /&gt;
Copy code
Also you have file_mine should be file_mime
2016-12-06 05:46 (edited 2016-12-06 06:25 by Graham ) · (0)
* Waplocus * Graham Stil Printin "Xtscript Error: Timeout"
<div class="Content">
<!--parser:xtscript-->
var $list = <xt:filelist sort_type="name" sort_dir="desc" folder="/Zolo/SF" template="&lt;center&gt;&lt;div class=&quot;Content&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;div class=&quot;NBg&quot;&gt;&lt;div id=&quot;NHead&quot;&gt;Name: .file_name_parsed.&lt;/div&gt;&lt;div id=&quot;NBody&quot;&gt;&lt;img src=&quot;/Zolo/Scripts/Images/Image.png&quot; id=&quot;NPImg&quot;/&gt;This A Short DESCRIPTION For This File&lt;/div&gt;&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;/DH/ZSS?file=.file_name.&name=.file_name_parsed.&category=.file_mine.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time.&quot;&gt;&lt;xt:include file=&quot;/Zolo/Scripts/EXT/Download&quot; />&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;&lt;!--*--&gt;" per_page="10" />
var $count=1
var $pos=0
@loop
var $pos=call strpos $haystack=$list; $needle=<!--*-->; $offset=($pos 1);
if $count<5
var $count=($count 1)
goto @loop
endif
var $l1=call substr $val=$list; $start=0 ; $length=$pos
var $l2=call substr $val=$list; $start=$pos
var $pos=call strpos $haystack=$l2; $needle=<!--p-->;
var $l3=call substr $val=$l2; $start=$pos
var $l2=call substr $val=$l2; $start=0 ; $length=$pos
<!--/parser:xtscript-->

<div>{_$$l1|}<xt:include file="/EXT/Ad_Mid" />{_$$l2|}<xt:include file="/EXT/Ad_Mid" />{_$$l3|}</div></div>

Copy code
2016-12-06 20:02 (edited 2016-12-06 20:09 by Waplocus ) · (0)
* Graham * Waplocus I just checked your Zolo/Scripts/index and it seems to be working your last post shows the same issue with +
2016-12-06 23:40 · (0)
* Waplocus * Graham Once i edit the template it will print "Xtscript Error: Timeout". I Have Change The Template To The Initial 1 U Can Recheck Now.
2016-12-07 01:38 · (0)

Online: Guests: 1