UBB.Dev
As the subject suggests, I know it seems goofy, but I'm curious to know if there's a way to have stylesheet dependent new post indicators...

The advent of these new 3d designs with the SS have created lots of new possibilities. And you guys do just about everything else, so I figured I'd ask.

-peter
There are specific classes for new posts, and you can modify how they look in the style sheets. Are you thinking of adding a background graphic to newlighttable and / or newdarktable?
I probably wasn't clear.

What I'd like to do is change the orginal, default "lightbulb" image that's on the front page, you know it's all lit up when there are new ones, and not when there aren't.

However, I want only ONE stylesheet to have the different new image.... I imagine, as time progresses, that I'd work on more, but for now I only have changing one sheet in mind.

-peter

For instance, threadsdev has an orange arrow. I'd like to make that orange arrow be the indicator only for one stylesheet. Hopefully, that's more clear.
It can be done, but It's gettting late and I'm entirely too tired to dig into the ubbthreads.php / tmpl files and figure it out. Maybe someone will beat me to an answer by the time I wake up
No biggie, it's more curiousity, nothing with a time constraint.

Thanks:)

-peter
I won't be digging inot this for a while cause I'm knee deep in working on a special set of templates for articles
That's cool. Can anyone else take it on, or give me a direction to start looking and playing? hehe

-peter
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?
Okay, nevermind that. I forgot to comment out the img tag. It doesn't work afterall.
he he

Doesn't need to be that complicated. I saw you request it and not get help on another board. So I wrote it up for you.

Find it here.
You are the man Josh!!!!
Actually, I did up a mod with a broader idea few months back. I thought it was posted in this forum but I guess not

With the below mod you could change any and all images, based on stylsheet being used.

Theme-specific Image Directories
© UBB.Developers