UTF-8 render

Is message board greying out your hair (at least what's left of it)? Let us help you here
ngosac
Posts: 15
Joined: Sun Mar 23, 2008 3:30 am

Post by ngosac »

Found out:

It cause by the first line of code Klemen suggested:
$text = htmlspecialchars($text);
$text = preg_replace("/\b$k\b/i",$v,$text);
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

My bad, it should be

Code: Select all

$k = htmlspecialchars($k); 
$text = preg_replace("/\b$k\b/i",$v,$text);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ngosac
Posts: 15
Joined: Sun Mar 23, 2008 3:30 am

Post by ngosac »

Thanks, Klemen . It works.

:)
ngosac
Posts: 15
Joined: Sun Mar 23, 2008 3:30 am

Red color

Post by ngosac »

Henrie,

I am sorry to bother you again:

If I go to my domain name which forward to mboard, it will have whole red screen for few second before go to the MBoard . Can you take a looh if you have time ?

Thanks in advance .

The site is : xomnoixam.net
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In your index.htm (or.html or .php whichever you use) file change

Code: Select all

<body bgcolor='#FF00000'>
to just <body>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ngosac
Posts: 15
Joined: Sun Mar 23, 2008 3:30 am

Post by ngosac »

Thanks, Klemen . You know evrything, that why you are the author of MBoard

:D
ngosac
Posts: 15
Joined: Sun Mar 23, 2008 3:30 am

click to return

Post by ngosac »

Hi Klemen,

I asked you too much, maybe I owe you another beer or coffee :)

Can you make after post a message, MBoard will automatic return to main page instead of have to click a link to return ?
Locked