Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Steptoe
Involved
Involved



Joined: Oct 09, 2004
Posts: 293

PostPosted: Thu Apr 23, 2009 10:46 pm Reply with quote

Hi guys. hope you have all been keeping well

My coding hasnt improved over the years, and would appreciate a little help
I have added hmailer and squirrel to the server...rather impressed.
Except squirrel only has colours foe background and I would like to change these to a similar appearance to kakariki.net...
Have googled asked for a week or so but cant find what I want

In the theme.pgp are lines like this that cange the colours
Code:
global $color;

$color[0]   = '#808080'; //   addit. text background
$color[1]   = '#900000'; //    ??
$color[2]   = '#FF0000'; //    warnings
$color[3]   = '#d4d0c8'; //   Left Bar Background
$color[4]   = '#d4d0c8'; //   Normal Background
$color[5]   = '#808080'; //   Table Headers


then in left_main.php right_main.php lines like this that I believe call from the theme for the background colour

Code:
  '', $color[4], 'width="100%" cellpadding="5" cellspacing="1" border="0"' )

                             )
                        ) ,
                    'center', $color[9], 'width="70%" cellpadding="0" cellspacing="3" border="0"' );


Can I do something like
Code:
global $color;

$color[4]   = 'url("/images/backgroundlite.gif") ;


Or would I have to change the themes.php
global $color;
to something like
Code:
global $background;

$background[4] ='url("/images/backgroundlite.gif") ;


And also change all lines in other files from $color[4] to $background[4]

Cheers
Steps

_________________
My Spelling is NOT incorrect, it's Creative 
View user's profile Send private message
Steptoe







PostPosted: Sat Apr 25, 2009 8:41 pm Reply with quote

Being tryintg diff stuff
Have identidied where in each file the background colours are
lines like this...$color[3] is the one I want to change to an image
Code:
echo "\n<body bgcolor=\"$color[3]\" text=\"$color[6]\" link=\"$color[6]\" vlink=\"$color[6]\" alink=\"$color[6]\">\n";


Since I have found each line in each file, it maybe easier If I just hack those lines?? as I did in creating by own theme out of nuke default...
Tring stuff i either get no colour or background, a code error or a black or green???

Cheers
Steps
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©