UBB.Dev
Posted By: Pilgrim Needed, simple script change - 05/15/2004 5:41 AM
The original line reads:

[:"blue"]$QuoteBody = "[{$ubbt_lang['TEXT_QUOTE']}]$Sendtoname wrote:\n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]"; [/]

It displays as: Username wrote:

I want it to be displayed as: Username wrote:

Can someone tell me how to do this please?

Jeff
Posted By: scroungr Re: Needed, simple script change - 05/15/2004 6:00 AM
have you tried

$QuoteBody = "[{$ubbt_lang['TEXT_QUOTE']}]<I>$Sendtoname wrote:</I>\n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";
Posted By: Pilgrim Re: Needed, simple script change - 05/15/2004 6:41 AM
Yep, that's the first thing I tried. But the raw HTML tags are displayed.
Posted By: scroungr Re: Needed, simple script change - 05/15/2004 7:09 AM
what template is this in?

okay how about where $QuoteBody is actually printed(echo'd) put it as <i>$QuoteBody</i>?

unless it's building an array. then I will need to see it.
Posted By: Pilgrim Re: Needed, simple script change - 05/15/2004 3:15 PM
It's not in a Template. It is found in "mess_handler.php"

Here's the whole section from which it is found:

Code
[:"blue"]$QuoteBody="";<br />    if ($quotemess) {<br />        $QuoteBody = $html->undo_markup($Message);<br />        $QuoteBody = str_replace("<br />", "\n", $QuoteBody);<br />        $QuoteBody = "[{$ubbt_lang['TEXT_QUOTE']}]$Sendtoname wrote:\n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";<br />    }  [/]
Posted By: scroungr Re: Needed, simple script change - 05/15/2004 5:37 PM
I am looking for that code in mess_handler.php and I don't have it in there in 6.4.1 so can't tell ya is that part of a mod? None the less with that I would figure that the <i></i> would have worked and not been spit out as plain text.. not having that code in mine I can't even test it.. Help From Another may be needed...
Posted By: Pilgrim Re: Needed, simple script change - 05/15/2004 7:07 PM
scroungr,

It's part of this mod: https://www.ubbdev.com/forum/showflat.php/Number/112607

Jeff
Posted By: scroungr Re: Needed, simple script change - 05/15/2004 9:51 PM
ok thanx that makes a little more sense then
Posted By: scroungr Re: Needed, simple script change - 05/15/2004 9:54 PM
according to this part of the instructions

Find in funciton reply_mess
Code:


list($tbopen, $tbclose) = $html->table_wrapper();



Replace with
Code:


list($tbopen, $tbclose) = $html->table_wrapper();

$QuoteBody="";
if ($quotemess) {
$QuoteBody = $html->undo_markup($Message);
$QuoteBody = str_replace("
", "\n", $QuoteBody);
$QuoteBody = "[{$ubbt_lang['TEXT_QUOTE']}]$Sendtoname said:\n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";
}

it should already be italicized

as it is above.. its using the and markup tags
Posted By: Pilgrim Re: Needed, simple script change - 05/15/2004 10:24 PM
Thanks.... Worked great! So, it was just a matter of using UBBT Code instead of HTML! []http://www.the-highway.com/Smileys/forgot.gif[/]

Jeff
© UBB.Developers