Previous Thread
Next Thread
Print Thread
Rate Thread
#273410 05/14/2004 10:41 PM
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!
Sponsored Links
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:

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 />    }  [/]


Artificial Intelligence is no match for natural stupidity!
Sponsored Links
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!
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)