Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
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

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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?

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
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.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
No biggie, it's more curiousity, nothing with a time constraint.

Thanks:)

-peter

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
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

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
That's cool. Can anyone else take it on, or give me a direction to start looking and playing? hehe

-peter

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?

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Okay, nevermind that. I forgot to comment out the img tag. It doesn't work afterall.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
You are the man Josh!!!!

Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
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


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)