php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#226922 - 10/29/02 11:04 AM Different image per stylesheet ?
jmydde Offline
Newbie

Registered: 08/29/02
Posts: 23
Loc: London, England
I want a different graphic to appear at the top left of each stylesheet used - is this possible - I cant remember where I set the forum logo to start with either?!
_________________________
--------------
James

Top
#226923 - 10/29/02 11:17 AM Re: Different image per stylesheet ? [Re: Murox]
JustDave Offline
That 70's Guy

Registered: 06/24/01
Posts: 4097
Use images as backgrounds for a table or layer and then you can change them via .css <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Also, I haven't tried this but I believe it should work, try putting a transparent gif where you want it and change the background of the gif to the image you want via .css (this may only work for newer browsers though)
_________________________
~Dave
ChattersOnline.com

Top
#226924 - 11/16/02 12:49 AM Re: Different image per stylesheet ? [Re: sjsaunders]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
"Use images as backgrounds for a table or layer"<br /><br />How can we do this ?<br />

Top
#226925 - 11/16/02 03:20 AM Re: Different image per stylesheet ? [Re: dlhanso]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Examine our css http://www.threadsdev.com/threads/php/stylesheets/infopop.css toward the bottom and you'll see what he means - the background-image url{etc stuff <img src="/forum/images/graemlins/smile.gif" alt="" /> Ask again if that's not clear enough <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#226926 - 11/16/02 07:58 AM Re: Different image per stylesheet ? [Re: SurfMinister]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
The doctor said not to think very much , its dangerous<br /><br /> <img src="/forum/images/graemlins/smirk.gif" alt="" /><br /><br />I looked the css file but I haven't found where to put the logo.gif in the upper left like here<br />

Top
#226927 - 11/16/02 04:51 PM Re: Different image per stylesheet ? [Re: dlhanso]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Give that section of your site it's own class, something like :<br /><br />.logo {<br /> background-image: url(http://www.urlto.com/images/logo.gif);<br /> padding: 0px;<br /> height: imageheightpx;<br /> width: imagewidthpx;<br />}<br /><br /><br />Then the section with the logo would have:<br /><br /><td class="logo"> &nbsp;</td>
_________________________
- Allen wavey
- What Drives You?

Top
#226928 - 12/02/02 03:44 PM Re: Different image per stylesheet ? [Re: SurfMinister]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
Then the section with the logo would have:<br /><br /><td class="logo"> &nbsp;</td> <br /><br />You mean that I have to input this in a template file ?<br />Could you be more specific?<br /><br />Thanks

Top
#226929 - 12/02/02 11:21 PM Re: Different image per stylesheet ? [Re: dlhanso]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
That would go in your header file if you have your logo up top.
_________________________
- Allen wavey
- What Drives You?

Top
#226930 - 12/05/02 02:33 AM Re: Different image per stylesheet ? [Re: SurfMinister]
Hal9000 Offline
Journeyman

Registered: 11/04/02
Posts: 120
You mean the Generic header or the ubbt_header.tmpl ?<br /><br />I put what you told me in both files but no logo appeared. Yes I want it in the upper left corner<br /><br />Thanks

Top
#226931 - 01/08/03 06:39 PM Re: Different image per stylesheet ? [Re: dlhanso]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Hi, I'm trying to do this too. I have everything coded like Allen said, but I'm not seeing the graphic when choosing the style I wrote it for....Interestingly enough, the graphic is being found, cause it's in my cache - I just can't see it loading any where..... <br />(I'd also like it to be in the top left corner...) <br /> <br />Any ideas?? <br /> <br />-peter

Top
#226932 - 01/08/03 11:24 PM Re: Different image per stylesheet ? [Re: adrienne48]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
I'm still working with this.....<br /><br />So far, I've got <td class="logo"> &nbsp;</td> inserted in the top of the generic header.<br /><br />Then, I have the following in the CSS file.<br /><br />.logo {<br />background-image: url(http:URLTOGRAPHIC);<br />padding: 0px;<br />height: 300;<br />width: 56;<br />}<br /><br /><br />It's still not showing up, but I am able to see the graphic file in my temporary internet files.....How weird! Anyone have any clues or general direction for this...<br /><br />-peter<br /><br />

Top
#226933 - 01/08/03 11:45 PM Re: Different image per stylesheet ? [Re: adrienne48]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
With CSS the only images that you can load into a table cell are background images, and a background image in a table cell will: <br /> <br />1) Tile if the image is smaller than the table cell that it is in. <br /> <br />2) Get cut off if it is larger than the table cell that it is in. <br /> <br />My guess (since you didn't include the html you used for the table your logo is in) is that the cell that contains you logo is getting "crushed" and that's why you can't see it. <br /> <br />What I did for my site was to create a transparent gif file with the same dimensions as my logo, set the transparent gif as the foreground image in the cell, and then use CSS to define a background image for the same cell. The column next to my logo is set to a width of 100% so that the cell that has the transparent gif is no larger than the transparent gif itself. Then I made different logos for each style sheet on my site and added a "logo" class to all of my style sheets to load the appropriate background image. <br /> <br />View source on my site to see what I mean <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Edited cause I need a lot more coffee... <img src="/forum/images/graemlins/smile.gif" alt="" /> <br />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#226934 - 01/09/03 01:29 AM Re: Different image per stylesheet ? [Re: jacksonm99]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
You're genius! I've got it!<br /><br />Thank you so much!<br /><br />-peter

Top
#226935 - 01/09/03 02:09 AM Re: Different image per stylesheet ? [Re: adrienne48]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Not a genius <img src="/forum/images/graemlins/smile.gif" alt="" /> Just been there, done that, messed up my web site, went back to the drawing board <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#226936 - 01/09/03 11:28 AM Re: Different image per stylesheet ? [Re: jacksonm99]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Haha....Regardless, thank you muchly...<br /><br />One last question, is there a way I can get the graphic to align with the board and everything else on the page? Right now, it's just a tad to the left of it all....<br /><br />-peter

Top
#226937 - 01/09/03 09:36 PM Re: Different image per stylesheet ? [Re: adrienne48]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
I got it! I answered my own question! Took a while, but boy does it feel good. lol<br /><br /><img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />-peter

Top
#226938 - 01/10/03 01:42 AM Re: Different image per stylesheet ? [Re: adrienne48]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
[]I got it! I answered my own question! Took a while, but boy does it feel good. lol<br /><br /><img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />-peter [/]<br /><br /> <img src="/forum/images/graemlins/cool.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#226939 - 01/25/03 05:58 PM Re: Different image per stylesheet ? [Re: adrienne48]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
Hi<br />I want to make 3 different logos for 3 stylesheets.I tried to follow the steps you have written but I get no logo at all<br /><br />Could you tell me what I'm doing wrong? Give me an example of generic header <br /><br />Thanks

Top
#226940 - 01/25/03 09:16 PM Re: Different image per stylesheet ? [Re: himik]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
If your trying to define a class for a logo there are many options availabe. I would research CSS image variables to option the look and feel you want but you can start with this basic class and define from there. <br /> <br />.logo { <br /> background: ; <br /> color: ; <br /> height: ; <br /> width: ; <br /> background-image: url (http://www.yoursite.com/someimage.png); <br /> <br />They posted this above. so use this in your stylesheets and define all the variables here and the image path <br /> <br />your header would look something like this <br /> <br /><table class="tableborders"> <br /><tr class="tdheaders"> <br /><td class="logo"> <br />Other header stuff here <br /></td> <br /></tr> <br /></table> <br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#226941 - 01/26/03 12:33 PM Re: Different image per stylesheet ? [Re: sf49rminer]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
Thank you very much . At last I did it :-)<br /><br />One last question<br />How can I make the logo clickable as it was ,so when I press it ,to go in the main page of the forum?

Top
#226942 - 01/26/03 01:10 PM Re: Different image per stylesheet ? [Re: himik]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
something like this would work<br /><br /><td class="logo"><a href="http://www.reeftalk.com" class="logo"></a></td>
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#226943 - 01/26/03 10:48 PM Re: Different image per stylesheet ? [Re: sf49rminer]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
I tried it but nothing happened<br />Any ideas?

Top
#226944 - 01/27/03 05:15 AM Re: Different image per stylesheet ? [Re: himik]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Go ahead and look at that line again. Lets disect it.<br /><br /><td class="logo"><a href="http://www.yoursite.com" class="logo"></a></td><br /><br />what did you call your logo tag in your CSS file? place that were I have logo in the class call if it is indeed not logo. <br /><br />Then edit the path you want to click to where the <a href=" is at.<br /><br />It works!
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#226945 - 01/27/03 11:43 AM Re: Different image per stylesheet ? [Re: sf49rminer]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
<img src="/forum/images/graemlins/crazy.gif" alt="" /><br />Sorry for bothering you . It works just fine

Top
#226946 - 01/27/03 04:26 PM Re: Different image per stylesheet ? [Re: himik]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
No bother at all. Is this not why we all post here to get help and learn. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#226947 - 02/09/03 09:13 PM Re: Different image per stylesheet ? [Re: sf49rminer]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Okay.... Having some technical difficulties! Yes, I got this working eons ago, however, I neglected something....some users with Netscape Nav 4.7 get a blank page. I've checked, and it's clearly what I've added....<br /><br />Anyone have a solution?<br /><br />This is what I've added to the generic header:<br /> <br />
Code:
 &lt;td width="100%"&gt;<br />&lt;table width="100%" align="center" cellpadding="0" cellspacing="0"&gt;&lt;tr&gt;<br />&lt;td&gt;<br />&lt;table cellpadding="0" cellspacing="0" width="100%"&gt;<br />&lt;tr&gt;<br />&lt;td width="03%"&gt;&lt;td class="logo-left"&gt;<br />&lt;img src="http://www.ourfreerein.com/ubbthreads/images/clear.gif"&gt;<br />&lt;/td&gt;<br /><br />&lt;td class="logo"&gt;<br />&lt;img src="http://www.ourfreerein.com/ubbthreads/images/spacer.gif" width="40" height="56"&gt;&lt;/td&gt;<br /> 
<br /><br />And then in the stylesheets:<br /> <br />
Code:
.logo-left {<br />  padding: 0px;<br />  height: 56px;<br />  width: 300px;<br />background: url('http://www.ourfreerein.com/ubbthreads/images/freereinsm.jpg');<br />}  <br />.logo {<br />  height: 56px;<br />  background:  url('http://www.ourfreerein.com/ubbthreads/images/spacer.gif');<br /><br />}<br /><br /> 
<br /><br /><br />The new netscape 7.0 works just fine.... Is there something else I need to add/remove to make it work with Nav 4.7? <br /><br />-peter

Top
#226948 - 02/09/03 09:39 PM Re: Different image per stylesheet ? [Re: adrienne48]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
if this is in the generic header section try this<br /><br /><table width="100%" align="center" cellpadding="0" cellspacing="0"><tr><td><table cellpadding="0" cellspacing="0" width="100%"><tr><td width="03%"><td class="logo-left"><img src="http://www.ourfreerein.com/ubbthreads/images/clear.gif"></td><td class="logo"><img src="http://www.ourfreerein.com/ubbthreads/images/spacer.gif" width="40" height="56"></td><br /></tr></table>
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#226949 - 02/09/03 09:41 PM Re: Different image per stylesheet ? [Re: adrienne48]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Support for CSS (Stylesheets) in Netscape 4.7x is spotty at best. It just is too old to fully support the latest technologies.<br /><br />I know that 4.7 doesn't accept the "blockquote" class in threads (which is used for the quote box), and some users complain that the menu bar comes and goes.<br /><br />The message composition window also doesn't wrap and 4.7 users usually have to hit enter at the end of each line.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226950 - 02/09/03 09:47 PM Re: Different image per stylesheet ? [Re: Daine]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Yeah, I knew that Josh. <img src="/forum/images/graemlins/frown.gif" alt="" /><br /><br />Omega - it partially worked. The graphic doesn't show up, and it looks crappy - but, the board loads. And that is all I care about! lol. So thank you muchly! <br /><br />If they want it to look good, they can upgrade their browsers...<br /><br />Thanks,<br />peter

Top
#226951 - 02/10/03 02:54 PM Re: Different image per stylesheet ? [Re: adrienne48]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Grrr!! So many damn possibilities. So, it does NOT work on Macs Netscape Navigator 4.79 and lower....<br /><br />Josh you use Mac, right? Is there anything else I could do?<br /><br />I'm assuming it's the different image per style sheet that's causing this... I removed the fader, WOL box, and everything else I've added to the main page. This is all that's left.....<br /><br />I guess I could go back to the one regular image though....Any thoughts from Mac people?<br /><br />-peter

Top
#226952 - 02/10/03 06:02 PM Re: Different image per stylesheet ? [Re: adrienne48]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I can't think of anything else off hand that would work. <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226953 - 02/10/03 07:08 PM Re: Different image per stylesheet ? [Re: Daine]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
So, shall I assume that no one else has gotten this to work for NN 4.79 and less, with Mac?<br /><br />Sad, sad day. Macs should burn! j/k<br /><br />-peter

Top
#226954 - 02/10/03 07:27 PM Re: Different image per stylesheet ? [Re: adrienne48]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Netscape 4.7x doesn't work on the PC either. This isn't a mac issue.<br /><br />Netscape 4.7 is basically incompatible with threads because of it's spotty support for CSS... and threads uses CSS heavily. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />All of my user issues were with PC Netscape 4.76.<br /><br />Most websites today note that they require version 5 browsers or higher. <br /><br />You might go over to Infopop Community forums and do a search for "Netscape 4.7". There have been numerous issues and lots of things suggested along the way. It's a very common issue. Maybe something that Rick or others suggested there might help your issue. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226955 - 02/10/03 09:17 PM Re: Different image per stylesheet ? [Re: Daine]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Josh, thanks, I'll go look at this.<br /><br />Weird though, I grabbed a 4.08 NN for my PC, and the board works perfectly, just without the graphic..... Very weird!<br /><br />Thanks again <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />-Peter

Top
#226956 - 02/10/03 09:44 PM Re: Different image per stylesheet ? [Re: adrienne48]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
There were varous suggestions.. mostly removing bits from the stylesheets. Blockquote is the only one I can remember. But ya never know, you migth try some of them and see if somethign fixes it. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#226957 - 02/11/03 01:54 PM Re: Different image per stylesheet ? [Re: Daine]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
It's working now:) Something fixed it, though I'm not sure what. lol. <br /><br />Anyway, muchas gracias!<br /><br />-peter

Top
Page 1 of 2 1 2 >