 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 5:48 AM |
|
|
|
|
|
| Seagull |
| Posts |
111 |
| Word Cnt. |
6,112 |
| BDay |
May 8 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 10:26 AM
|

|
|
|
|
 |
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 5:50 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 6:26 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 11:54 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 10:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
| 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
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 11:56 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 10:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
| 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
|
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 12:40 PM |
|
|
|
|
|
| Seagull |
| Posts |
111 |
| Word Cnt. |
6,112 |
| BDay |
May 8 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 10:26 AM
|

|
|
|
|
 |
| 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 |
|
|
 | Re: ShoutBox Background Color |  |
Posted: 04/07/2007 1:17 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 10:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 1:43 PM |
|
|
|
|
|
| Seagull |
| Posts |
111 |
| Word Cnt. |
6,112 |
| BDay |
May 8 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 10:26 AM
|

|
|
|
|
 |
| Ok that makes sense cos my codes were nothng like that shown above I'm using Niels Fully integrated shoutbox, Thanks |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ShoutBox Background Color |  |
Posted: 04/07/2007 1:51 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 10:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] ShoutBox Background Color |  |
Posted: 04/07/2007 2:44 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 6:26 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
| 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
|
|
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: ShoutBox Background Color |  |
Posted: 04/07/2007 3:11 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 10:26 AM
Location: St Pete, FL
|

|
|
|
|
 |
To increase the width of the Shoutbox, do this:
OPEN
templates/subSilver/index_body.tpl
FIND
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???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|