Previous Thread
Next Thread
Print Thread
Rating: 4
Daine #219104 07/17/2002 10:56 PM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I think if you changed line 617 in your postlist.php script from this:

code:

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



to this:

code:

SELECT t1.B_File,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



and then changed line 690 from this:

code:

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



to this:

code:

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



and then just above this on line 873:

code:

// Setup the postrow array



add this:

code:

if ($File) {
$Subject = "<img src="{$config['images'}/disk.gif" border="0" alt="$File" /> $Subject";
}



and that should do the trick.

You could also turn the disk.gif into a link to the file too.

Example:
code:

$Subject = "<a href="{$config['fileurl']}/$File"><img src="{$config['images'}/disk.gif" border="0" alt="$File" /></a> $Subject";



(ps. I haven't actually done this so it may not work... please let me know if it does... lol)

Sponsored Links
Entire Thread
Subject Posted By Posted
Sticky Threads Ian_W 06/17/2002 1:57 AM
Re: Sticky Threads JustDave 06/17/2002 2:02 AM
Re: Sticky Threads Gardener 06/17/2002 2:53 AM
Re: Sticky Threads JustDave 06/17/2002 4:54 AM
Re: Sticky Threads caymuc 06/17/2002 2:20 PM
Re: Sticky Threads caymuc 06/17/2002 3:03 PM
Re: Sticky Threads JustDave 06/17/2002 3:38 PM
Re: Sticky Threads Lisa_P 06/18/2002 1:57 AM
Re: Sticky Threads JustDave 06/18/2002 2:04 AM
Re: Sticky Threads yors 06/18/2002 8:35 AM
Re: Sticky Threads yors 07/04/2002 9:17 AM
Re: Sticky Threads JustDave 07/04/2002 9:34 AM
Re: Sticky Threads Lisa_P 07/17/2002 9:42 PM
Re: Sticky Threads msula 07/17/2002 10:41 PM
Re: Sticky Threads AllenAyres 07/18/2002 5:25 AM
Re: Sticky Threads JoshPet 07/18/2002 5:36 AM
Re: Sticky Threads JustDave 07/18/2002 5:56 AM
Re: Sticky Threads JoshPet 07/19/2002 5:29 AM
Re: Sticky Threads JustDave 07/19/2002 5:32 AM
Re: Sticky Threads JoshPet 07/19/2002 5:48 AM
Re: Sticky Threads JoshPet 07/19/2002 7:40 AM
Re: Sticky Threads theman_dup1 10/18/2002 11:57 PM
Re: Sticky Threads AllenAyres 10/19/2002 12:40 AM
Re: Sticky Threads theman_dup1 10/19/2002 12:50 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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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 20240506)