* Graham * Waplocus
You had the same issue with + being turned into a space see ($pos 1); and ($count 1);
I don't know why that happens + (or %20) is used to represent a space in url encoded text

There was also still a unconverted > in the template on the end of the include Download" /><

I changed .file_name. in NHead to .file_name_parsed. (fits the box better for long titles)
I changed .file_type. to .file_mime. as for most files .file_type. just shows "default"

I had to move the print to within the xtscript as it seems not to do the include in the template unless it is actually printed from within the script (my bad for that one)
I also had to break it up so that your ad includes were not actually in the xtscript

Your file /Zolo/Scripts/EXT/Download did not need converting to html entities

You had used .Png for the image in the template and it should have been .png plus the image is way too big anyway so I added style="max-width:100%" to keep it in the box
2016-12-07 11:24 (edited 2016-12-07 13:06 by Graham ) · (0)
* Waplocus * Graham Thanks sir
2016-12-07 19:43 · (0)
* Waplocus * Waplocus Please Sir Graham How can i make the blw code to work?
<div class="Content">
<!--parser:xtscript-->
print $list=<xt:include file="/Zolo/Scripts/EXT/Filelist "/>
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
print <div> $l1 
<!--/parser:xtscript-->
<xt:include file="/EXT/Ad_Mid" />
<!--parser:xtscript-->
print $l2 
<!--/parser:xtscript-->
<xt:include file="/EXT/Ad_Mid" /> 
<!--parser:xtscript-->
print $l3 </div>
<!--/parser:xtscript-->
</div>

Copy code
2016-12-07 19:51 · (0)
* Waplocus * Waplocus Filelist Content...
<xt:filelist 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; style=&quot;max-width:100%&quot; /&gt;Download .file_name. Of Size .file_size. And Type .file_mime. From Waplocus&lt;/div&gt;&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;.file_url.&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">
Copy code
2016-12-07 19:54 · (0)
* Graham * Waplocus
The include in the template is not converted again
You cant include a list that way
This works
Call your file Filelist.xt
var $list = <xt:filelist 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; style=&quot;max-width:100%&quot; /&gt;Download .file_name. Of Size .file_size. And Type .file_mime. From Waplocus&lt;/div&gt;&lt;div align=&quot;right&quot;&gt;&lt;a href=&quot;.file_url.&quot;&gt;&lt;xt:include file=&quot;/Zolo/Scripts/EXT/Download&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;&lt;!--*--&gt;" per_page="10">
Copy code

Then include it like this
div class="Content">
<!--parser:xtscript-->
include /Zolo/Scripts/EXT/Filelist.xt
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
print <div> $l1 
<!--/parser:xtscript-->
<xt:include file="/EXT/Ad_Mid" />
<!--parser:xtscript-->
print $l2 
<!--/parser:xtscript-->
<xt:include file="/EXT/Ad_Mid" /> 
<!--parser:xtscript-->
print $l3 </div>
<!--/parser:xtscript-->
</div>

Copy code
@$variables are variables declared in an included file
2016-12-07 21:53 (edited 2016-12-08 01:49 by Graham ) · (0)
* Waplocus * Graham It has rubish the page plz see 4 urslf.
2016-12-08 15:33 · (0)
* Graham * Waplocus
Once again exactly the same error
YOU HAD NOT CONVERTED THE INCLUDE IN THE TEMPLATE
2016-12-08 17:36 (edited 2016-12-08 17:52 by Graham ) · (0)
* Waplocus * Graham Thanks very much Sir, please all my webpage titles in google are including my parked domain name e.g "HTML Tutorial | Websites | ICT | IT - FORUM | Waplocus - sitename.cf"
2016-12-20 10:18 · (0)
* Graham * Waplocus Yeah they do the same to many sites including some of my own and many others not just xtgem
why should it be a problem it's just the way they do it
2016-12-20 10:51 (edited 2016-12-20 10:55 by Graham ) · (0)
* Waplocus * Graham Thanks...
Pls Any Alternative To This Sign "|" For Use In Variable?
2016-12-21 05:49 · (0)

Online: Guests: 1