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...<br /><br />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. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />-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. <br /><br />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.<br /><br />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.<br /><br />-peter<br /><br />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 <img src="/forum/images/graemlins/smile.gif" alt="" />
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 <img src="/forum/images/graemlins/frown.gif" alt="" />
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:<br /><br />I have changed the section of code in ubbthreads.php where is calls the new posts icon to this:<br /><br />[]<br /><td valign="middle" align="center" width="1%" class="boardfolder" ><br /><img src="{$config['images']}/{$forum[$c][$f]['boardfolder']}" alt=" " /><br /></td><br />[/]<br /><br />All that I changed was the name of the class.<br /><br />I have also added this class to one of my stylesheets.<br /><br />[]<br />.boardfolder {<br /> background-color: #000000;<br /> background-image: url{$config['images']}/{$forum[$c][$f]['boardfolder']}<br /> color: #FFFFFF;<br /> font-size: 11px;<br />}<br />[/]<br /><br />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.<br /><br />This works quite well, but this is where I'm stuck. I know that
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.<br /><br />Okay, I provided a stepping-off point. Any one more familiar with PHP care to continue? <img src="/forum/images/graemlins/grin.gif" alt="" />
JoshPet
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
he he<br /><br />Doesn't need to be that complicated. I saw you request it and not get help on another board. <img src="/forum/images/graemlins/wink.gif" alt="" /> So I wrote it up for you. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Find it here. <img src="/forum/images/graemlins/smile.gif" alt="" />
You are the man Josh!!!! <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" /> <img src="/forum/images/graemlins/bow.gif" alt="" />
Dalar
Member
Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
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 <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />With the below mod you could change any and all images, based on stylsheet being used.<br /><br /> Theme-specific Image Directories
_________________________ Dalar Legends of Tacendia []http://legendsoftacendia.com/forumimages/icons/troll.gif[/]