Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
I want to make it more obvious that there is an attachment so I would like to replace the text with an image. Forgive me if I am way off the mark but here is what I have come up with.
In showthreaded.php and showflat.php there is a line that reads this:
Code
$ubbt_lang['FILE_ATTACH']  = 	"Attachment";  

So what if I were to change "Attachment" to:
Code
 <img src="{$config['images']}/images/diskimage.gif" border="0" alt="Attachment" /> 


Any thoughts would be great, thanks.

Sponsored Links
BlarC #246329 05/14/2003 9:18 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That'll work. There's a mod of mine around here that does that too.... it's way old - but in the image tag - since you are already inside quote = you need to comment out the quotes with a \ before them... like this:

$ubbt_lang['FILE_ATTACH'] = "<img src="{$config['images']}/images/diskimage.gif" border="0" alt="Attachment" />";

Last edited by JoshPet; 05/14/2003 10:00 AM.
Daine #246330 05/14/2003 9:47 AM
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Thanks for pointing me in the right direction, that worked great. Also, I changed border="0" alt= to border="0" alt=

BlarC #246331 05/14/2003 9:59 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Oh yeah.

I'd forgotten that.... but you got the ideas - all quotes inside of quotes need to be commented out or it "breaks" the string.

Lemme fix above if anyone else is looking.

Daine #246332 05/14/2003 11:16 AM
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
This language sure does smack of Perl

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2042
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
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
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 20261026)