1
edipinho
Error in templates
  • 2013/5/12 2:29

  • edipinho

  • Not too shy to talk

  • Posts: 107

  • Since: 2003/10/15


Doing a test using templates ("/modules/system/admin.php?Fct=tplsets"), and I was correct text menu theme placing emphasis and the error appeared, those strange characters long.

Has an error when Xoos is encoded to UTF8, the impression that he does not know who is using this encoding, it does write the file in ANSI or ISO.

Tested with Xoops 2.5.6

=========================

I had to make the correction and send thema FTP

2
irmtfan
Re: Error in templates
  • 2013/5/12 4:39

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


If i understand you correctly. you say your file is utf-8 and xoops save it as ansi. 1- you should not have utf-8 or multi-byte characters in themes/templates. It is hard-code. move them to language files and use them like this using smarty.
<{$smarty.const._NO}>
2- "/modules/system/admin.php?Fct=tplsets" only will copy the templates from: modules/MODULE/templates/my_template.html to: themes/THEME/modules/my_template.html It dont do anything else. so it is just useful when a webmaster dont have access to Cpanel and/or ftp. Therefor if you have access to root or Cpanel or FTP you can do it yourself using ftp.

3
chefry
Re: Error in templates
  • 2013/5/12 10:52

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


you can also try using notepad++ and save the file as "Encode in UTF-8 without BOM"

it could be either your html template or php file that needs saving like that.

That generally fixes any character problems I have.

4
edipinho
Re: Error in templates
  • 2013/5/13 15:42

  • edipinho

  • Not too shy to talk

  • Posts: 107

  • Since: 2003/10/15


Retracing my questions


The site is the Default Language: pt-br_utf8

Do the accents on the theme, below:
Resized Image


The error appears on the website below:
Resized Image


I return to initial screen and looked like this:
Resized Image


With external editors is working perfect, is that I choose the encoding and xoops templates do not have this option.


I think the problem is XOOPS?

5
irmtfan
Re: Error in templates
  • 2013/5/14 2:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

is that I choose the encoding and xoops templates do not have this option.

Yes,
Never used Xoops template editor. It is not reliable. Im sure it cannot change encoding. It is always Ansi and just good for very basic changes.
you save your changes and then return to that page again and see your changes are corrupted.
As i said before, if you have access to FTP you can do it yourself.

6
edipinho
Re: Error in templates
  • 2013/5/14 2:51

  • edipinho

  • Not too shy to talk

  • Posts: 107

  • Since: 2003/10/15


Hi irmtfan, thank you for the quick return.

I have no problem with Xoops.
I am reporting this problem, it would be great because the working greatly facilitate small changes.


Thank You

Login

Who's Online

224 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits