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
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
Graham
Waplocus The include in the template is not converted again
You cant include a list that way
This works
Call your file
Filelist.xtvar $list = <xt:filelist 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" style="max-width:100%" />Download .file_name. Of Size .file_size. And Type .file_mime. From Waplocus</div><div align="right"><a href=".file_url."><xt:include file="/Zolo/Scripts/EXT/Download" /></a></div></div></div></div></center><!--*-->" 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
Waplocus
Graham It has rubish the page plz see 4 urslf.
Graham
Waplocus Once again exactly the same error
YOU HAD NOT CONVERTED THE INCLUDE IN THE TEMPLATE
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"
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
Waplocus
Graham Thanks...
Pls Any Alternative To This Sign "
|" For Use In Variable?