Graham
Waplocus Just add the include
<div><xt:include file="/file" />{_$$l1|}<xt:include file="/file" />{_$$l2|}<xt:include file="/file" />{_$$l3|}</div>
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="<center><div class="Content"><div align="center"><div class="NBg"><div id="NHead">Name: .file_name_parsed.</div><div id="NBody"><img src="/Zolo/Scripts/Images/Image.png" id="NPImg"/>Dowload .file_name_base_parsed. Of Size .file_size. And Mime .file_mime..</div><div align="right"><a href="/download?file=.file_name.&name=.file_name_parsed.&category=.file_mine.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time."><xt:include file="/Zolo/Scripts/EXT/Download" /></a></div></div></div></div></center><!--*-->" 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
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>«</span>
elseif $page == 1
print <a href="$url">«</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>»</span></div>
else
print <a href="$url">»</a></div>
endif
@skip
endfunction
<!--/parser:xtscript-->
Copy code
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.
Graham
Waplocus Does the script timeout on other (smaller) folders
Waplocus
Graham i placed in a different folder and file nd i stil got "XtScript Error: Timeout."
Graham
Waplocus Whats that unconverted include doing in the template ?
That would break the filelist it should be
<xt:include file="/Zolo/Scripts/EXT/Download" />
Copy code Also you have file_mine should be file_mime
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="<center><div class="Content"><div align="center"><div class="NBg"><div id="NHead">Name: .file_name_parsed.</div><div id="NBody"><img src="/Zolo/Scripts/Images/Image.png" id="NPImg"/>This A Short DESCRIPTION For This File</div><div align="right"><a href="/DH/ZSS?file=.file_name.&name=.file_name_parsed.&category=.file_mine.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time."><xt:include file="/Zolo/Scripts/EXT/Download" /></a></div></div></div></div></center><!--*-->" 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
Graham
Waplocus I just checked your Zolo/Scripts/index and it seems to be working your last post shows the same issue with +
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.