|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
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
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
have you tried
$QuoteBody = "[{$ubbt_lang['TEXT_QUOTE']}]<I>$Sendtoname wrote:</I>\n$QuoteBody [/{$ubbt_lang['TEXT_QUOTE']}]";
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Yep, that's the first thing I tried. But the raw HTML tags are displayed.
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
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.
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
It's not in a Template. It is found in "mess_handler.php" Here's the whole section from which it is found: [:"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 /> } [/]
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
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...
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
ok thanx that makes a little more sense then
Last edited by scroungr; 05/15/2004 2:53 PM.
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
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
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
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
Artificial Intelligence is no match for natural stupidity!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|