Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] ShoutBox Background Color
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3, 4  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] ShoutBox Background Color
PostPosted: 04/05/2007 7:12 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 11:39 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Hello everyone,

I have shoutbox MOD installed and the background color I want to change it. For the convenience I have attached the picture of my shoutbox and the color what I am talking about is also mentioned in the picture. So after looking that image is there any way I can change the background color of it without changing the complete subSilver template color changed!

Regards,

AB
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: ShoutBox Background Color
PostPosted: 04/06/2007 4:22 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:39 PM
Location: St Pete, FL
peace.gif
In your shoutbox_view.php file, you will find the following code:

Code:
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

This is how it determines the alternating colors.  Notice that it is using the column colors set in eXtreme Styles in your ACP.  To get into the settings, click on Styles Management, then click on the [edit styles data]...



Then click on Edit next to subSilver:



This is what is set:



So it is pulling the colors from your subSilver.css file:

Code:
/* Main table cell colours and backgrounds */
td.row1   { background-color: #EFEFEF; }
td.row2   { background-color: #DEE3E7; }
td.row3   { background-color: #D1D7DC; }

If you change these settings, it will change the colors on your entire forum too.  So you might want to try this:

OPEN
shoutbox_view.php

FIND
Code:
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

REPLACE WITH
Code:
$row_class = ( !($i % 2) ) ? $theme['tr_class1']: $theme['tr_class2'];

Then go into [edit styles data] in eXtreme Styles =>Styles Management and add these settings:



Then add this code to your subSilver.css file:

Code:
/* Main table row colours and backgrounds */
tr.shout1   { background-color: #EFEFEF; }
tr.shout2   { background-color: #DEE3E7; }

You can set the hex colors to whatever you choose...

As always, be sure to make good backups of every file that you modify before overwriting it just in case...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] ShoutBox Background Color
PostPosted: 04/06/2007 5:28 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 11:39 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Wohooo. It worked NightRider.

And to change colors is this code yeah

/* Main table row colours and backgrounds */
tr.shout1   { background-color: #EFEFEF; }
tr.shout2   { background-color: #DEE3E7; }

I did but in shoutbox background the color just changed once and it's the same now to something like silver.
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: ShoutBox Background Color
PostPosted: 04/06/2007 6:15 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:39 PM
Location: St Pete, FL
peace.gif
I just had to make one small adjustment:

OPEN
subSilver.css

FIND
Code:
/* Main table row colours and backgrounds */
tr.shout1   { background-color: #FF0000; }
tr.shout2   { background-color: #00FFFF; }

REPLACE WITH
Code:
/* Main table row colours and backgrounds */
td.shout1   { background-color: #FF0000; }
td.shout2   { background-color: #00FFFF; }

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] ShoutBox Background Color
PostPosted: 04/06/2007 9:47 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 11:39 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
I was unable to find


Code:
/* Main table row colours and backgrounds */
tr.shout1   { background-color: #FF0000; }
tr.shout2   { background-color: #00FFFF; }



and when i find the code which you said me to replace it. I mean this code

Code:
/* Main table row colours and backgrounds */
td.shout1   { background-color: #FF0000; }
td.shout2   { background-color: #00FFFF; }


Is already there in subSilver.css file!
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: ShoutBox Background Color
PostPosted: 04/06/2007 9:55 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:39 PM
Location: St Pete, FL
peace.gif
Yes, I already fixed this for you.  Didn't you see the different colors in your Shoutbox now???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] ShoutBox Background Color
PostPosted: 04/06/2007 10:26 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 11:39 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
There are 2 colors in your code in subsilver.css which are

/* Main table row colours and backgrounds */
td.shout1   { background-color: #FF0000; }
td.shout2   { background-color: #00FFFF; }

and in this code the colors are FF0000 (red), 00FFFF ( light blue type ) but the background of the shoutbox is still the same eventhough i change it to other colors also!

I see the same silver color as background or I got blind Very Happy
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: [Solved] ShoutBox Background Color
PostPosted: 04/06/2007 10:29 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 11:39 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Sollie Sollie. I think there is some magic. I tried a lot and changed many colors but didn't happened but when i submit the message and refreshed the page again, the color got changed  hysterical2

Amazing brother  banana  banana

Thanks yeah. I will change colors now Very Happy
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: ShoutBox Background Color
PostPosted: 04/06/2007 11:10 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:39 PM
Location: St Pete, FL
peace.gif
I'm glad you can see the colors now.  You might want to adjust the font color on the red background so that you can better read the text...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] ShoutBox Background Color
PostPosted: 04/07/2007 5:19 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 11:39 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Font colors! Any idea how to change the font color and default font size in shoutbox.
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3, 4  Next
Page 1 of 4


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.087s (PHP: 66% - SQL: 34%) - SQL queries: 57 - GZIP disabled - Debug on