View Single Post
Old September 3rd, 2008, 05:58 PM   #2 (permalink)
Luciano
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Well i fixed it.. This is NOT a vb 3.73 issue !!!

During the fresh install the template adv_gallery_member_block got truncated... why?
because it contains special characters.. that will not import...

Complicated issue to explain but it may help others.. so i will try!!!

My database is in UTF-8..
if I have characters like in this template a bullit: •
it will get truncated at the first occurance of this character unless the xml file is saved in UTF-8...
(this is valid for all for ALL products.. not only vbgallery. I am NOT taking about the encoding specified at the top of the xml file.. its only the "internal" encoding - the one set in the editor it was written in)

2 possible fixes:
1. open the product-ppvbgallery.xml in your favorite editor..(I use edit plus)
save as and set the encoding to UTF-8. Then reimport the templates..

2. (This is my recomendation for Zach or Chuck)
replace in the product-ppvbgallery.xml all special characters (i.e. the • in the lines 1676 to 1680) with either & # 8226; (NO spaces) or •
then reinstall the templates..

This should be done in the version to download... expecially because vb4.0 will be in UTF-8 and then there might be a problem for everybody..


Luc

PS: Beware.. with some editors.. the & # 8226; converts automatically to • when the file is saved. To check.. reload the file in your editor ... IF this happens you have the • character again.. and the problem is still there... .. then you have to use the •

This also happens when you export the templates.. so if you have a vbulletin in english.. and export the templates.. and then import them into another vbulletin that is in utf-8 then you will also have truncated templates.. open the xml file and resave it in utf-8. (of course this is also valid the other way round.)

Last edited by Luciano; September 3rd, 2008 at 06:06 PM.
Luciano is offline   Reply With Quote