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: Previous  1, 2, 3, 4  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: [Solved] ShoutBox Background Color
PostPosted: 04/07/2007 5:48 AM Reply with quote
Seagull
Cowboy69
Seagull
Posts 111
Word Cnt. 6,112
BDay May 8
Sign Taurus
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:24 PM
norcarlEb.gif
I notice in your screen shot yours says extreme styles , does that mean you cant do this if you dont have extreme styles , and how do you get extreme styles  dontknow
Back to Top
View user's profile Find all posts by Cowboy69 Send private message   Phoogle Map
Re: [Solved] ShoutBox Background Color
PostPosted: 04/07/2007 5:50 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: 12:24 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
I have not much knowledge but the Extreme Style is a MOD itself which was required to get installed other MOD which I don't remember the name.

NightRider might solve both of our problems Smile
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/07/2007 11:54 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: 4:24 PM
Location: St Pete, FL
peace.gif
abdulbasit wrote:
Font colors! Any idea how to change the font color and default font size in shoutbox.

I wrote this little MOD that sets the shoutbox font alternating between white and black.  You can change the font colors simply by changing the hex code assignments for the subSilver.css file.  This is totally untested, but it should work or be very close.  If there are any problems, we can adjust it...

Install this using Easymod...

Code:
##############################################################
## MOD Title: Change Shoutbox Font Color - EM Friendly
## MOD Author: Nightrider < > (N/A) N/A
## MOD Description: Changes the font colors in the Shoutbox...
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 minute
## Files To Edit: 3
##                shoutbox_view.php
##                templates/subSilver/subSilver.css
##                templates/subSilver/shoutbox_view_body.tpl
## Included Files: 0   
##############################################################
## Author Notes:
##                The
##############################################################
## MOD History:
##
## 2007-04-7 - Version 1.0.0
## -First release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
UPDATE phpbb_themes SET span_class1='shoutbox1', span_class2='shoutbox2';
#
#-----[ OPEN ]------------------------------------------
#
shoutbox_view.php
#
#-----[ FIND ]------------------------------------------
# This is a partial match.  The line is much longer...
$row_class =
#
#-----[ AFTER, ADD ]------------------------------------------
#
      $font_class = ( !($i % 2) ) ? $theme['span_class1']: $theme['span_class1'];
#
#-----[ FIND ]------------------------------------------
# This is a partial match.  The line is much longer...
'ROW_CLASS' =>
#
#-----[ AFTER, ADD ]------------------------------------------
#
         'FONT_CLASS' => $font_class,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.css
#
#-----[ FIND ]------------------------------------------
#
The register,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
.shoutbox1,.shoutbox2  { font-size : 12px; }
.shoutbox1 { color : #000000; }
.shoutbox2 { color : #FFFFFF; }
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/shoutbox_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<span class="gensmall">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
gensmall
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
{shoutrow.FONT_CLASS}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


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/07/2007 11:56 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: 4:24 PM
Location: St Pete, FL
peace.gif
Cowboy69 wrote:
I notice in your screen shot yours says extreme styles , does that mean you cant do this if you dont have extreme styles , and how do you get extreme styles  dontknow

The eXtreme Styles MOD is a handy MOD that you can install that is supposed to be able to improve pageload times and is required before a few other MODs can be installed, including the Simple Subforums MOD.  But you don't need it to be able to install most other MODs...

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/07/2007 12:40 PM Reply with quote
Seagull
Cowboy69
Seagull
Posts 111
Word Cnt. 6,112
BDay May 8
Sign Taurus
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:24 PM
norcarlEb.gif
I was asking cos i had been wanting to change bg of shoutbox but when i checked my shoutbox view i dont have anything that looks like the code you said to find so wondered if it was because ya'll are using extreme styles
Back to Top
View user's profile Find all posts by Cowboy69 Send private message   Phoogle Map
Re: ShoutBox Background Color
PostPosted: 04/07/2007 1:17 PM 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: 4:24 PM
Location: St Pete, FL
peace.gif
No, the eXtreme Styles has nothing to do with the Shoutbox.  In fact, the eXtreme Styles MOD doesn't modify any phpBB file at all...

There are several Shoutboxes out there, so it is possible that you don't use the same one that AB is using on his forum.  If that is true, then the instructions I offer to him wouldn't be the same that you would need for your Shoutbox...

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 1:43 PM Reply with quote
Seagull
Cowboy69
Seagull
Posts 111
Word Cnt. 6,112
BDay May 8
Sign Taurus
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 4:24 PM
norcarlEb.gif
Ok that makes sense cos my codes were nothng like that shown above I'm using Niels Fully integrated shoutbox, Thanks
Back to Top
View user's profile Find all posts by Cowboy69 Send private message   Phoogle Map
Re: ShoutBox Background Color
PostPosted: 04/07/2007 1:51 PM 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: 4:24 PM
Location: St Pete, FL
peace.gif
Since AB didn't use EM to install his Shoutbox, I can't tell for sure which one he installed nor what version.  But looking at my copy of Neil's Shoutbox version 1.1.7, it looks like you have the same Shoutbox MOD that AB has installed on his site...

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/07/2007 2:44 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: 12:24 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Nightrider wrote:
abdulbasit wrote:
Font colors! Any idea how to change the font color and default font size in shoutbox.

I wrote this little MOD that sets the shoutbox font alternating between white and black.  You can change the font colors simply by changing the hex code assignments for the subSilver.css file.  This is totally untested, but it should work or be very close.  If there are any problems, we can adjust it...

Install this using Easymod...

Code:
##############################################################
## MOD Title: Change Shoutbox Font Color - EM Friendly
## MOD Author: Nightrider < > (N/A) N/A
## MOD Description: Changes the font colors in the Shoutbox...
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 minute
## Files To Edit: 3
##                shoutbox_view.php
##                templates/subSilver/subSilver.css
##                templates/subSilver/shoutbox_view_body.tpl
## Included Files: 0   
##############################################################
## Author Notes:
##                The
##############################################################
## MOD History:
##
## 2007-04-7 - Version 1.0.0
## -First release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
UPDATE phpbb_themes SET span_class1='shoutbox1', span_class2='shoutbox2';
#
#-----[ OPEN ]------------------------------------------
#
shoutbox_view.php
#
#-----[ FIND ]------------------------------------------
# This is a partial match.  The line is much longer...
$row_class =
#
#-----[ AFTER, ADD ]------------------------------------------
#
      $font_class = ( !($i % 2) ) ? $theme['span_class1']: $theme['span_class1'];
#
#-----[ FIND ]------------------------------------------
# This is a partial match.  The line is much longer...
'ROW_CLASS' =>
#
#-----[ AFTER, ADD ]------------------------------------------
#
         'FONT_CLASS' => $font_class,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.css
#
#-----[ FIND ]------------------------------------------
#
The register,
#
#-----[ BEFORE, ADD ]------------------------------------------
#
.shoutbox1,.shoutbox2  { font-size : 12px; }
.shoutbox1 { color : #000000; }
.shoutbox2 { color : #FFFFFF; }
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/shoutbox_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<span class="gensmall">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
gensmall
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
{shoutrow.FONT_CLASS}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


headbang



Yeah, the size of the shoutbox fonts have been changed. It's quite bigger and good. Can you tell me can this be made like Ajaxed Shoutbox like without refresh when we submits the message comes automatically without clicking the refresh button everytime and I want to make shoutbox a little longer as the text got bigger so it should be a little long yeah Wink
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/07/2007 3:11 PM 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: 4:24 PM
Location: St Pete, FL
peace.gif
To increase the width of the Shoutbox, do this:

OPEN
templates/subSilver/index_body.tpl

FIND
Code:
<table width="93%"

REPLACE WITH
Code:
<table width="100%"

Save and upload to the subSilver folder.  Be sure you are editing the most current copy of the index_body.tpl and make a good backup before overwriting it...

I thought your Shoutbox did have an automatic refresh cycle???

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
 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: Previous  1, 2, 3, 4  Next
Page 2 of 4


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0769s (PHP: 79% - SQL: 21%) - SQL queries: 57 - GZIP disabled - Debug on