Graham
tiaxgame
Ok I have found a solution and I am also giving you a whole new toy to play with
You need to install
the guestbooks twig file
1/ create a folder named
_xtgem_templates
2/ create a plain text file named
xtguestbook.twig in
_xtgem_templates
3/
go to this page and copy the code for the twig file to
xtguestbook.twig
Open and edit with code editor only
4/ in the
xtguestbook.twig file find line 49
<div class="xt_blog_comment_content">{{ comment.message|raw }}</div>
5/ replace that line with
<div class="xt_blog_comment_content">{{ comment.message|replace({'(': "(", ')': ")"})|raw }}</div>
The documentation for twig is at
http://twig.sensiolabs.org/doc/templates.html
This will replace ( and ) in posts with ( and )
There is also a twig file for the blog this goes in the same folder and is named xtblog.twig
The code is at
https://dl.dropboxusercontent.com/u/2162515/xtgem_blog.twig
have fun
test page http://guestbook.yn.lt
Graham
tiaxgame I do not know your full code so I have no idea
tiaxgame
Graham yes!
Problem is
Var $data = <xt:guestbook />
Print $data
=> (8-2)
Allway bar 6
I want fix it
Graham
tiaxgame what was this for ? showing the number of entries ?
We are adding a special function for that it will be live later <xt:guestbook_count /> (not working yet but in a few hours) and as for the original problem if you do not need it to represent a mathematical equation try using something other than - and there is no problem
$data=(8:2)
print $data
Graham
tiaxgame Without knowing the rest of the script I do not have a clue
var $blog=<xt:blog/>
print $blog
has no problem with ( )
tiaxgame
Graham if used print_raw => i can't used var name other
Else "call source"
Can me used for blog and guestbook!?
Graham
tiaxgame It will also work if you put the data containing the brackets in a plain text file
and output the "source" of that file
so the file "data" contains (8-2)
and your script uses
call source $file=data;$htmlsafe=1