change style with settings.php file

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
FruitBeard
Posts: 38
Joined: Thu Jul 21, 2005 6:25 pm

change style with settings.php file

Post by FruitBeard »

Script URL: N/A
Version of script: Any
Version of PHP: N/A
Hosting company: N/A
Have you searched THIS FORUM for your problem: N/A
(if not please do before posting)
If so, what terms did you try:

Write your message below:

Hi there folks,
Just another way for you to be able to alter the look of your guestbook.

Firstly copy your style sheet 5 or however many times you like, calling them style1.css, style2.css respectively and tinker around with the colour coordination within each.

Secondly, find this code inside gbook.php:
<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">
and replace with this code:
<link href=\"style$settings[CASCADER].css\" rel=\"stylesheet\" type=\"text/css\">
and lastly, place this code inside settings.php:
/*Easliy change your CSS style sheet here, 1 = style1.css 2 = style2.css 3 = style3.css 4 = style4.css 5 = style5.css etc etc*/
$settings['CASCADER'] =2 ;
and if your crafty enough, you can mess around with it and make it so you can change it via the web site rather than through the settings.php file.
FruitFully yours

http://www.fgps.com/keith/
Post Reply