php forum
php mysql forum
php mysql smarty
 
Topic Options
#239151 - 03/07/03 04:19 PM StyleSheet dependent post indicator icons...
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na

   StyleSheet dependent post indicator icons... to Del.icio.us Add to del.icio.us
  Digg StyleSheet dependent post indicator icons... Digg it
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

Top
#239152 - 03/07/03 04:26 PM Re: StyleSheet dependent post indicator icons... [Re: adrienne48]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
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?
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239153 - 03/07/03 04:31 PM Re: StyleSheet dependent post indicator icons... [Re: jacksonm99]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
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.

Top
#239154 - 03/07/03 04:52 PM Re: StyleSheet dependent post indicator icons... [Re: adrienne48]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
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="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239155 - 03/07/03 04:59 PM Re: StyleSheet dependent post indicator icons... [Re: jacksonm99]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
No biggie, it's more curiousity, nothing with a time constraint.<br /><br />Thanks:)<br /><br />-peter

Top
#239156 - 03/08/03 04:30 AM Re: StyleSheet dependent post indicator icons... [Re: adrienne48]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
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="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#239157 - 03/08/03 11:40 AM Re: StyleSheet dependent post indicator icons... [Re: jacksonm99]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
That's cool. Can anyone else take it on, or give me a direction to start looking and playing? hehe<br /><br />-peter

Top
#239158 - 03/20/03 10:17 PM Re: StyleSheet dependent post indicator icons... [Re: adrienne48]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
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
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.<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="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#239159 - 03/21/03 07:36 PM Re: StyleSheet dependent post indicator icons... [Re: eslmix]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Okay, nevermind that. I forgot to comment out the img tag. It doesn't work afterall. <img src="/forum/images/graemlins/blush.gif" alt="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#239160 - 03/22/03 12:04 PM Re: StyleSheet dependent post indicator icons... [Re: eslmix]
JoshPet Offline
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="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#239161 - 03/22/03 12:52 PM Re: StyleSheet dependent post indicator icons... [Re: Daine]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
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="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#239162 - 04/22/03 02:03 AM Re: StyleSheet dependent post indicator icons... [Re: adrienne48]
Dalar Offline
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[/]

Top


Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 41 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks