Previous Thread
Next Thread
Print Thread
Rate Thread
Dawg_dup1 #242595 04/14/2003 5:51 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Make sure you used $Body. Variables are case sensitive.

For 6.1.1. I think you'd need to change this:

$query = "
SELECT t1.B_Number,t1.B_Parent,t1.B_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,
t1.B_Main,t1.B_Status,t1.B_Approved,t1.B_Icon,t1.B_Reged,t1.B_Counter,t1.B_Sticky,
t1.B_Replies,t1.B_Rating,t1.B_Rates,t1.B_RealRating,t2.U_Color,t2.U_Status,t1.B_PosterId,t1.B_File


To this:

$query = "
SELECT t1.B_Number,t1.B_Parent,t1.B_Username,t1.B_Posted,t1.B_Last_Post,t1.B_Subject,
t1.B_Main,t1.B_Status,t1.B_Approved,t1.B_Icon,t1.B_Reged,t1.B_Counter,t1.B_Sticky,
t1.B_Replies,t1.B_Rating,t1.B_Rates,t1.B_RealRating,t2.U_Color,t2.U_Status,t1.B_PosterId,t1.B_File,t1.B_Body


And this:

list($Number,$Parent,$Username,$Posted,$Last_Post,$Subject,
$Main,$Open,$Approved,$icon,$Reged,$Counter,$Sticky,$Replies,$Rating,
$Rates,$stars,$Color,$PostStatus,$posterid,$file) = $dbh -> fetch_array($sth);

// -------------------------
// Standard icon is the note
if (!$icon) {
$icon = "book.gif";
}


To this:

list($Number,$Parent,$Username,$Posted,$Last_Post,$Subject,
$Main,$Open,$Approved,$icon,$Reged,$Counter,$Sticky,$Replies,$Rating,
$Rates,$stars,$Color,$PostStatus,$posterid,$file,$Body) = $dbh -> fetch_array($sth);

// -------------------------
// Standard icon is the note
if (!$icon) {
$icon = "book.gif";
}

// -------------------
// Limit the number of characters in the Body - by extremebikini
$Body = strip_tags($Body);
$Body = htmlspecialchars($Body);
if ( strlen($Body) > 100 ) {
$Body = substr($Body, 0, 100);
$Body .= " ...";
}



The postrow[$z] step and the changes to the tmpl file are the same.



Sponsored Links
Entire Thread
Subject Posted By Posted
[6.2] Alt Body Preview of a Thread 1.0 JoshPet 04/14/2003 8:28 AM
why? Slawek_L 04/14/2003 11:04 PM
Re: why? JoshPet 04/14/2003 11:10 PM
Re: why? Slawek_L 04/14/2003 11:50 PM
Re: why? JoshPet 04/15/2003 12:51 AM
Re: why? Slawek_L 04/15/2003 5:54 PM
Re: why? JoshPet 04/15/2003 6:50 PM
Re: why? Slawek_L 04/15/2003 7:15 PM
Re: [6.2] Alt Body Preview of a Thread 1.0 AllenAyres 04/15/2003 8:03 PM
Re: [6.2] Alt Body Preview of a Thread 1.0 ZealotOnAStick_dup1 04/15/2003 9:10 PM
Re: [6.2] Alt Body Preview of a Thread 1.0 PhotoPost 04/15/2003 9:32 PM
Re: [6.2] Alt Body Preview of a Thread 1.0 ZealotOnAStick_dup1 04/16/2003 3:35 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 JoshPet 04/16/2003 3:54 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 ZealotOnAStick_dup1 04/16/2003 4:25 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 JoshPet 04/16/2003 4:29 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 JoshPet 04/16/2003 4:32 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 ZealotOnAStick_dup1 04/16/2003 4:34 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 ZealotOnAStick_dup1 04/16/2003 4:40 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 JoshPet 04/16/2003 4:47 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 Storm_dup1 04/16/2003 7:01 AM
Re: [6.2] Alt Body Preview of a Thread 1.0 JoshPet 04/28/2003 10:36 AM

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 5263
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 5
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)