wrong colors on index - using other template

This shoutbox, fully integrates in phpbb2, support smilies and bbcode
this shoutbox is a shoutbox written for phpbb2, therefor it makes uses of templates and language files

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

wrong colors on index - using other template

Postby Niels on Fri 10. Oct, 2003 15:59

Some templates are only made "partly"...they miss making the stylesheet - this is the reasoon why the shoutbox in the front are displaying wrongly.

I have made it so, that the shoutbox at the index page is made as fast as posible since particually this page should slow the site as litle as posible. - this invloves static stylesheets, while the "max" shoutbox uses the data from the DB (dynamic style sheets).

if you have a template (style) witch display wrong colors this is most likely due to the fact that the stylesheet was simply copyed from subsilver.... :cry:


To correct this behavier :arrow:
you need to browse to your site, in MS IE you may right click anywhere (where the colors are displaying correct) and select the "view source"

This will show you the HTML source in a text editor...the source file will show you how your current dynamic style sheet is configured - since this is a working version, it is a easy way to get a copy of it, and make this as as your new static style sheet.
to do that - al you need is:
Copy that part of the code witch invloves the stylesheet.
starting with
Code: Select all
<style type="text/css">

and ending with
Code: Select all
-->
</style>

the code should be placed near the top of the source

YOU SHOULD NOT include the above tags...only the text found inbetween

Then paste this code into your "templates/sometemplate/sometemplate.css" file - replacing the existing content of the file.
the name "sometemplate" is a example name - you should substitude this with the name of your current template -e.g. for subsilver the name is:
templates/subSilver/subSilver.css

(please make a back-up first)

your colors should now display correctly inside the min shoutbox found at the index page.
Last edited by Niels on Tue 30. Nov, 2004 23:18, edited 1 time in total.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby CyanBlue on Fri 10. Oct, 2003 20:23

Howdy, Niels... ;)

Thank you for taking time to take a look at this issue... I really appreciate it... :)

I've done what you have asked and it was working great... It was then just a matter of custom color from the theme information... So, I went over the CSS file line by line and uploading the change to the server to see what happens...

Finally, I have found out the problematic area...

This line does not cause any problem at the moment...
Code: Select all
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }

However, this code does make all the things go crazy...
Code: Select all
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }


The strange thing is that there are other lines that utilizes {T_FONTSIZE1} in this CSS file, yet they don't cause any errors...

Welll... This might not be the fix for other people who's got the same problem, but that line might be the first thing you could check out... I thought that I'd share what I have found out... ;)
CyanBlue
Poster
Poster
 
Posts: 15
Joined: Fri 25. Jul, 2003 20:58

Postby Niels on Fri 10. Oct, 2003 20:30

yes, it's basically a matter of the "template authors" remember to ALSO make the CSS file - most forget :(


the use of CSS file is slightly faster than the data from the DB, so phpBB2 ships with both options - subsilver.css are configured correctly, and when someone makes a new template - they simply "copy" the subsilver.css - witch basically makes "some" pages look like subsilver - e.g. shoutbox on index :D

luckly it is farly simple to make a CSS file :mrgreen:
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby CyanBlue on Fri 10. Oct, 2003 21:06

Well... I had to change all those colors from the subSilver CSS file to Coldsteel colors... It took a while, but now it looks whole lot better... ;)

Yup... It's easy and simple only you know what is going on within the CSS and phpBB files... :D
CyanBlue
Poster
Poster
 
Posts: 15
Joined: Fri 25. Jul, 2003 20:58

Postby Draak on Tue 28. Oct, 2003 10:12

Thank you so much for posting this Niels! Works wonders! :)
Draak
Poster
Poster
 
Posts: 7
Joined: Thu 30. Jan, 2003 04:14

Postby mushy on Fri 07. Nov, 2003 07:55

Well I modified the subsilver template. i am using subsilver as well as some other template. But it's showing same background as o sub silver. Which files should I edit to give and color to background.
mushy
Poster
Poster
 
Posts: 27
Joined: Tue 04. Mar, 2003 06:47

Postby dementeddogz on Fri 13. Feb, 2004 08:02

YOUR_TEMPLATE.css
dementeddogz
Poster
Poster
 
Posts: 6
Joined: Thu 22. Jan, 2004 02:54

Postby jayjay on Mon 08. Mar, 2004 11:09

Hi, I understood everythingbut still have an issue:

My template's background is black and so is the shoutbox (using the template's settings). But while my text is supposed to be white (just like for the template), it is "black" in the shoutbox, while fine in the max box. :(

Where then should I make the change ?
jayjay
Poster
Poster
 
Posts: 2
Joined: Sun 07. Mar, 2004 03:50

Next

Return to Fully integrated shoutbox [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron