Graham
waroks xtscript cannot be used in blog posts wrong parsing order
the page uses a redirect to a blog post with the post hidden so I can use the comments the xtscript is outside the blog
waroks
Graham Xtscript gallery can not work on the blog please its
support master
XTMEDIA
Aash Your edit in code xtscript
var $sort_type=
name
var $sort_dir=
asc
name is sortir by name you edit to
date
simple xtscript edited
my galery
Aash
What are the sort types available?
E.g. name, date, last_modified etc.
XTMEDIA
Graham ok, thanks .. i will try it first
Graham
XTMEDIA Same xtscript code
change
$search=gambar_;replace= image$spc
to
$search=_;replace=$spc
you need the $spc var trick as otherwise you cannot define a space for replace
XTMEDIA
Graham Sorry mr.graham there is a bit of a mistake when writing, exp:
file name is= xtgem_images.jpg
<title> {_$listfile|Filename}</title>
will definitely display
the
<title>xtgem_images.jpg</title>
if the title of the page in order to be
<title> xtgem images.jpg </title>
was how to display it?, Thank you.
Graham
XTMEDIA use {_$listfile|} in your pages <title> as that holds the files name
ie:
<title>{_$listfile|DEFAULT TITLE HERE}</title>
Copy code
or to do exactly what you asked use an xtscript with a str_ireplace as onedc says
<!--parser:xtscript-->
get_or_default listfile;DEFAULT TITLE
var $spc=call chr $val=32
var $title=call str_ireplace $subject=$listfile;$search=gambar_;replace= image$spc
<!--/parser:xtscript-->
<title>{_$$title|}</title>
Copy code
onedc
XTMEDIA What is that? a file name base parsed (a function to change _ and + to space or you want to change the word gambar to image? i think you can do that by using string replace xtscript..
XTMEDIA
Graham For Xtscript galery#
how to keep the file name is in the title page? Example: Filename= "gambar_punyaku.jpg" and in the page title into "image punyaku.jpg"