IntSmarty working completely (Finally and for now)

Well I finally have the Intsmarty completly displaying the login page correctly. YEAH!!!

The problem was in the smarty_lang_prefilter. The code originally has the strings being replaced in the ISO-8859-1 character set (using the utf8_decode). But my page is in the utf8 character set (so it can be more flexable). So of course there were problems with the display of 2 character sets on 1 page. Once I removed the the utf8_decode it worked perfectly.

PHP:
  1. /**
  2. * hack starting here
  3. */
  4.             
  5. /** the line below is the original line of code
  6. *$content = preg_replace("!{$ldq}l{$rdq}$q_str{$ldq}/l{$rdq}!s",
  7. *utf8_decode($inst->translation [$hash]), $content);
  8. */
  9.  
  10. // here I am removing the utf8_decode because my page is in the utf8 character set
  11. $content = preg_replace("!{$ldq}l{$rdq}$q_str{$ldq}/l{$rdq}!s",$inst->translation [$hash], $content);
  12.            
  13. /**
  14. * end hack
  15. */

del.icio.us:IntSmarty working completely (Finally and for now)  digg:IntSmarty working completely (Finally and for now)  furl:IntSmarty working completely (Finally and for now)  reddit:IntSmarty working completely (Finally and for now)

WordPress database error: [Table 'wp1_comments' is marked as crashed and last (automatic?) repair failed]
SELECT * FROM wp1_comments WHERE comment_post_ID = '88' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply