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
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
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
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="" />

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

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Okay, nevermind that. I forgot to comment out the img tag. It doesn't work afterall. <img src="/forum/images/graemlins/blush.gif" alt="" />

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
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
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="" />

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



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks