This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Problem with quotes


avatar
Philarmon 0
From: -
Problem with quotes

Hi !

I have a strange problem with quotes in the private messages - they are displayed as HTML code. For example, when i use the "Send a Reply" function for a private message, i am getting a quoted message by default - surrounded with [ quote ] and [ /quote ].

But when i send the reply and look at the new message, i see the quote like this:

<b>Philarmon wrote:</b>
<br /><table border="1" align="center" bgcolor="#e5e5e5" width="90%" cellpadding="3" cellspacing="1"><tr><td><font color="#000080">sdadsa</font></td></tr></table>

"<" is replaced with "&lt;" in the HTML source - whats up ?

Is there a setting for that somewhere or have i messed something up ?

Thank you !

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Problem with quotes
avatar
Administrator
1340
From: Vienna, Austria
Problem with quotes

This requires a code change in the 1.7.2 freeware version

You are looking for the following line in core.php:

        $var = str_replace("
", "<table border="1" align="center" bgcolor="#e5e5e5" width="90%" cellpadding="3" cellspacing="1"><tr><td><font color="#000080">", $var);
1 Re: Problem with quotes
avatar
OP 0
From: -
Problem with quotes

Thank you !

Another question: how do i change the style of the quoted text ?
1 Re: Problem with quotes
avatar
Administrator
1340
From: Vienna, Austria
Problem with quotes

No, it's another bug in the freeware version Slightly Frowning Face

To fix this, open pm.php in an editor and find:

$insert[pm_text] = DeChomp($insert[pm_text]);

and replace with:

$insert[pm_text] = str_replace("n","<br />",$insert[pm_text]);

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.