Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I guess not so I'll take a gander at coming up with one.... I'm not to be held accountable if it doesn't work because my forums are offline right now and I don't have a place to test it. So here it goes...

Modify line 23 which looks like this...

SELECT B_Number,B_Parent,B_Posted,B_Username,B_Subject,B_Status,B_Approved,B_Icon,B_Reged,B_Color,B_UStatus


By adding ",B_File" to the end to look like..

SELECT B_Number,B_Parent,B_Posted,B_Username,B_Subject,B_Status,B_Approved,B_Icon,B_Reged,B_Color,B_UStatus,B_File


Then take line 36... which looks like...

list($Number,$Parent,$Posted,$Username,$Subject,$Open,$Approved,$icon,$Reged,$Color,$PostStatus) = $dbh -> fetch_array($sth);


And make it...

list($Number,$Parent,$Posted,$Username,$Subject,$Open,$Approved,$icon,$Reged,$Color,$PostStatus, $File) = $dbh -> fetch_array($sth);


Then look for the section that starts...

// If the post isn't approved we show it in the new color


Right after the echo command in that section (the line right after it is line 887) add this...

if($File != NULL ) { echo "  <img src="$config[images]/attachment.gif\ alt="Attachment">" }


Please try it out and let me know. I'll gladly fix any problems but like I said... I have no way to test that out...

Oh and since technically it was poil's idea and he was suppose to post the code for it... I figured I'd post up his file attachment icon.. Don't be mad poil....



Doug
http://www.netherworldrpg.net
Attachments
33947-attachment.gif (0 Bytes, 29 downloads)

Sponsored Links
Entire Thread
Subject Posted By Posted
File attachement Image Hack poil 12/09/2000 11:00 PM
Re: File attachement Image Hack kimroan 12/10/2000 4:56 AM
Re: File attachement Image Hack Eileen 12/14/2000 5:28 AM
Re: File attachement Image Hack poil 12/14/2000 4:55 PM
Re: File attachement Image Hack Eileen 12/14/2000 6:42 PM
Re: File attachement Image Hack The Team 04/10/2001 2:00 AM
Re: File attachement Image Hack The Team 04/10/2001 7:43 AM
Re: File attachement Image Hack The Team 04/10/2001 9:08 AM
Re: File attachement Image Hack powerlord 04/16/2001 4:08 AM
Re: File attachement Image Hack poil 04/16/2001 4:23 PM
Re: File attachement Image Hack The Team 04/18/2001 5:54 AM
Re: File attachement Image Hack The Team 04/18/2001 5:57 AM
Re: File attachement Image Hack powerlord 04/27/2001 3:01 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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)