Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I've been tinkering with this a little, but all I know about PHP is what little I've learned while poking around my UBBt code. This is what I've come up with so far:

I have changed the section of code in ubbthreads.php where is calls the new posts icon to this:

[]
<td valign="middle" align="center" width="1%" class="boardfolder" >
<img src="{$config['images']}/{$forum[$c][$f]['boardfolder']}" alt=" " />
</td>
[/]

All that I changed was the name of the class.

I have also added this class to one of my stylesheets.

[]
.boardfolder {
background-color: #000000;
background-image: url{$config['images']}/{$forum[$c][$f]['boardfolder']}
color: #FFFFFF;
font-size: 11px;
}
[/]

The thing you want to pay attention to is the background-image tag I added. I took .darktable (which is what it was assigned to before I changed it to the newly-formed .boardfolder) and then I copied it and added the background-image tag.

This works quite well, but this is where I'm stuck. I know that
Code
{$config['images']}/{$forum[$c][$f]['boardfolder']}
calls the image, but don't know how to use different images for different themes. I know I would have to add to the PHP file where it calls the image, but have no clue as to how to go about that.

Okay, I provided a stepping-off point. Any one more familiar with PHP care to continue?

Sponsored Links
Entire Thread
Subject Posted By Posted
StyleSheet dependent post indicator icons... Allusivekudos 03/08/2003 12:19 AM
Re: StyleSheet dependent post indicator icons... Dalantech 03/08/2003 12:26 AM
Re: StyleSheet dependent post indicator icons... Allusivekudos 03/08/2003 12:31 AM
Re: StyleSheet dependent post indicator icons... Dalantech 03/08/2003 12:52 AM
Re: StyleSheet dependent post indicator icons... Allusivekudos 03/08/2003 12:59 AM
Re: StyleSheet dependent post indicator icons... Dalantech 03/08/2003 12:30 PM
Re: StyleSheet dependent post indicator icons... Allusivekudos 03/08/2003 7:40 PM
Re: StyleSheet dependent post indicator icons... AKD96 03/21/2003 6:17 AM
Re: StyleSheet dependent post indicator icons... AKD96 03/22/2003 3:36 AM
Re: StyleSheet dependent post indicator icons... JoshPet 03/22/2003 8:04 PM
Re: StyleSheet dependent post indicator icons... AKD96 03/22/2003 8:52 PM
Re: StyleSheet dependent post indicator icons... Dalar 04/22/2003 9:03 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,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online 961
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 0
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)