Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Seems I didn't think it through. My suggestion was basicly a version of another hack I have where a include file is inserted on the first page of a forum (with some extra forum info) and I thought that since I didn't do a php include I wouldn't need to check if the file existed. But of course there would be a broken link if it isn't there. It is of course possible to have an image of size 1x1 with transparent background as well, but checking for it is probably better.
The following php code might work, though it hasn't been tested:
code:
if (is_readable("{$config['images']}/{$forum[$c][$f]['Keyword']}.gif")) {
$forumimagesize = getimagesize("$config['images']}/{$forum[$c][$f]['Keyword']}.gif");
print "<img src="{$config['images']}/{$forum[$c][$f]['Keyword']}.gif" alt="{$forum[$c][$f]['Title']}" align="left" {$forumimagesize[3]}>";
}



In the template it should be enclosed with html comments like this: <!-- code here //UBBTREMARK -->
Possibly on every line, not sure about that since I haven't done so much template editing yet.

Sponsored Links
Entire Thread
Subject Posted By Posted
Attention Dave!! omegatron 04/25/2002 6:07 AM
Re: Attention Dave!! JustDave 04/25/2002 6:51 AM
Re: Attention Dave!! omegatron 04/25/2002 4:11 PM
Re: Attention Dave!! Gardener 04/26/2002 7:57 PM
Re: Attention Dave!! JustDave 04/26/2002 8:12 PM
Re: Attention Dave!! omegatron 04/26/2002 8:50 PM
Re: Attention Dave!! Gardener 04/26/2002 9:51 PM
Re: Attention Dave!! JustDave 04/26/2002 9:59 PM
Re: Attention Dave!! JustDave 04/26/2002 10:05 PM
Re: Attention Dave!! Gardener 04/27/2002 3:53 AM
Re: Attention Dave!! Gardener 04/27/2002 4:32 AM
Re: Attention Dave!! JustDave 04/27/2002 5:02 AM
Re: Attention Dave!! Gardener 04/27/2002 5:44 AM
Re: Attention Dave!! JustDave 04/27/2002 6:09 AM
Re: Attention Dave!! omegatron 04/27/2002 3:45 PM
Re: Attention Dave!! Gardener 04/27/2002 5:18 PM
Re: Attention Dave!! omegatron 04/27/2002 8:13 PM
Re: Attention Dave!! Gardener 04/27/2002 8:59 PM
Re: Attention Dave!! omegatron 04/27/2002 11:16 PM
Re: Attention Dave!! Gardener 04/28/2002 2:24 AM
Re: Attention Dave!! JustDave 04/29/2002 3:51 AM
Re: Attention Dave!! omegatron 04/29/2002 4:59 AM
Re: Attention Dave!! JustDave 04/29/2002 6:14 AM
Really working this time, promise. Gardener 04/29/2002 7:36 AM
Re: Really working this time, promise. omegatron 04/29/2002 7:32 PM
Re: Really working this time, promise. Gardener 04/29/2002 8:04 PM
Re: Really working this time, promise. Ian_W 04/29/2002 8:10 PM
Re: Really working this time, promise. AllenAyres 04/29/2002 8:19 PM
Re: Really working this time, promise. Gardener 04/29/2002 9:13 PM
Re: Really working this time, promise. AllenAyres 04/29/2002 10:35 PM
Re: Really working this time, promise. omegatron 04/29/2002 11:09 PM
Re: Attention Dave!! dRiver 04/30/2002 10:13 AM
Re: Attention Dave!! JustDave 04/30/2002 2:30 PM
Forum image hack integrated with IIP Gardener 04/30/2002 9:55 PM
Re: Forum image hack integrated with IIP JustDave 04/30/2002 10:16 PM
Re: Forum image hack integrated with IIP casper_dup1 04/30/2002 10:53 PM
Re: Forum image hack integrated with IIP Gardener 05/01/2002 12:48 AM
Re: Attention Dave!! Hal9000 02/17/2003 12:21 AM
Re: Attention Dave!! omegatron 02/17/2003 12:56 AM
Re: Attention Dave!! Hal9000 02/17/2003 11:11 PM
Re: Attention Dave!! omegatron 02/17/2003 11:41 PM
Re: Attention Dave!! Hal9000 02/23/2003 2:50 PM

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
isaac
isaac
California
Posts: 1,153
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3947
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 9
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)