How do you change COMMENTS background as example

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
banjan
Posts: 5
Joined: Thu Feb 23, 2006 8:32 pm

How do you change COMMENTS background as example

Post by banjan »

Script URL: novasweb.com/gb135
Version of script: guest book 1.35 latest version
Version of PHP: 1.35
Hosting company: avid hosting
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

i have read through the forum and did not find exactly how to do this i got the the other fields to change colour but cant find how to do this
here is what i want to do look at this
any help would be greatly appreciated I am no script guru!
I just cant figure it out I have tried many options but maybe i am not changing the right thing
thanks in advance for any help

Joe
Last edited by banjan on Tue Mar 14, 2006 1:04 am, edited 1 time in total.
banjan
Posts: 5
Joined: Thu Feb 23, 2006 8:32 pm

Re: How do you change COMMENTS background as example

Post by banjan »

banjan wrote:Script URL: novasweb.com/gb135
Version of script: guest book 1.35 latest version
Version of PHP: 1.35
Hosting company: avid hosting
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

i have read through the forum and did not find exactly how to do this i got the the other fields to change colour but cant find how to do this
here is what i want to do look at this
any help would be greatly appreciated I am no script guru!
I just cant figure it out I have tried many options but maybe i am not changing the right thing
thanks in advance for any help

Joe
I think i finally got it i had to change this in the gbook.php
but if this is not right please inform me I changed script as follows

<textarea name="comments" style="background-color:#80DCFF" rows=9 cols=50></textarea><?php
if this is not right please let me know
thanks
banjan
Last edited by banjan on Tue Mar 14, 2006 1:03 am, edited 1 time in total.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Banjan,

What you want is possible by editing the gbook.php file but it is preferred not to mess with the gbook.php file.

To change appearance of a html (or php) page Cascading Style Sheets (css) have been introduced. With Gbook comes a stylesheet called style.ccs. By changing the styles in this file you can change most of the look of the pages (unfortunately not everything because Klemen Stirn has some style written directly in the gbook.php file).

To set the black background color add this to the BODY, TD {...} section.
background-color: black;

To set the yellow text, add this to the BODY, TD {...} section.
color: #FED500;

To set the blue background color for the input fields, change the value of background-color of the INPUT {...} section.
background-color: #80DCFF

To set the blue background color for the textarea, add this to the style.css file
TEXTAREA{
background-color: #80DCFF
}


To set the style for the TEXTAREA to the same as the INPUT fields you can also change INPUT { in the style.css file to INPUT, TEXTAREA {

Hope this clears things up for you.

Greetings,
Henrie
banjan
Posts: 5
Joined: Thu Feb 23, 2006 8:32 pm

Post by banjan »

Henrie wrote:Hello Banjan,

What you want is possible by editing the gbook.php file but it is preferred not to mess with the gbook.php file.

To change appearance of a html (or php) page Cascading Style Sheets (css) have been introduced. With Gbook comes a stylesheet called style.ccs. By changing the styles in this file you can change most of the look of the pages (unfortunately not everything because Klemen Stirn has some style written directly in the gbook.php file).

To set the black background color add this to the BODY, TD {...} section.
background-color: black;

To set the yellow text, add this to the BODY, TD {...} section.
color: #FED500;

To set the blue background color for the input fields, change the value of background-color of the INPUT {...} section.
background-color: #80DCFF

To set the blue background color for the textarea, add this to the style.css file
TEXTAREA{
background-color: #80DCFF
}


To set the style for the TEXTAREA to the same as the INPUT fields you can also change INPUT { in the style.css file to INPUT, TEXTAREA {

Hope this clears things up for you.

Greetings,
Henrie
Thanks Henrie this clears things up as I have all the other colors set to the styles .css but could not figure out how to change the text are i got what i wanted by changing the gbook file i will go and do things right
:?: One other question how do i prevent the guest book from getting streched I thought i read it some where but cant seem to find it again

Thanks Again
For the help
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

If you mean stretching by to long homepage links and e-mail adresses, look at the following topic viewtopic.php?t=631

Greetings,
Henrie
banjan
Posts: 5
Joined: Thu Feb 23, 2006 8:32 pm

Post by banjan »

Henrie wrote:If you mean stretching by to long homepage links and e-mail adresses, look at the following topic viewtopic.php?t=631

Greetings,
Henrie
No what i meant was in the comments i had to set the char lower than 75 because it streched the gbook but i found out where to do that so i am ok
Thanks
One thing i have to say is this is a great script and it is free but the most unbelievable thing is the support that you give is relly unbelievable thanks
so much for the help i hope i can finish the rest by myself
Thanks Again Verry Much
:lol: banjan
banjan
Posts: 5
Joined: Thu Feb 23, 2006 8:32 pm

Re: How do you change COMMENTS background as example

Post by banjan »

Version of script: guest book 1.35 latest version
Version of PHP: 1.35
Hosting company: avid hosting
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

i have read through the forum and did not find exactly how to do this i got the the other fields to change colour but cant find how to do this
here is what i want to do look at this
any help would be greatly appreciated I am no script guru!
I just cant figure it out I have tried many options but maybe i am not changing the right thing
thanks in advance for any help

Joe[/quote]
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

In the standard GBook version 1.35 you can't change the background for only the comments area. Just for the whole entry.
If you want to change the background for the comments area only you have to edit the gbook.php file and add a style class to that table cell and then add a style for that class in the style.css file.

Greetings,
Henrie
Post Reply