Adjusting table width for "Sign guestbook" page
-
- Posts: 3
- Joined: Mon Apr 28, 2008 3:19 am
Adjusting table width for "Sign guestbook" page
Script URL: http://www.palmstrokemusic.com/guestbook/
Version of script: 1.6
Hosting company: http://www.all-inkl.com/
URL of phpinfo.php: http://www.palmstrokemusic.com/phpinfo.php
URL of session_test.php: http://www.palmstrokemusic.com/session_test.php
What terms did you try when SEARCHING for a solution:
Reading forum topics, trying to modify style.css and gbook.php
Hello,
first of, I really like the gbook script and I found it easy to customize the look of it to my specific needs.
There's just one thing I couldn't manage to figure out by looking up the style.css and gbook.php:
I want to make the table on the "Sign guestbook" page ("gbook.php?a=sign") smaller.
I'm using an iframe with a fixed size to display the guestbook on my website, and the sign table, as it is now, causes the iframe to create a horizontal scroll bar (which I don't want).
Where exactly can I define the width of that table?
Thanks in advance!
Josh
EDIT:
I would also like to know how I can remove the "Back to homepage" link at the very top of the guestbook. Thank you very much.
Version of script: 1.6
Hosting company: http://www.all-inkl.com/
URL of phpinfo.php: http://www.palmstrokemusic.com/phpinfo.php
URL of session_test.php: http://www.palmstrokemusic.com/session_test.php
What terms did you try when SEARCHING for a solution:
Reading forum topics, trying to modify style.css and gbook.php
Hello,
first of, I really like the gbook script and I found it easy to customize the look of it to my specific needs.
There's just one thing I couldn't manage to figure out by looking up the style.css and gbook.php:
I want to make the table on the "Sign guestbook" page ("gbook.php?a=sign") smaller.
I'm using an iframe with a fixed size to display the guestbook on my website, and the sign table, as it is now, causes the iframe to create a horizontal scroll bar (which I don't want).
Where exactly can I define the width of that table?
Thanks in advance!
Josh
EDIT:
I would also like to know how I can remove the "Back to homepage" link at the very top of the guestbook. Thank you very much.
-
- Posts: 3
- Joined: Mon Apr 28, 2008 3:19 am
Hello Josh,
For setting the width, open the file style.css
Go to the end of file and add the following:You can change the value 362 to your desired value.
For removing the "Back to homepage" link at the very top of the guestbook open the file gbook.php
Find lines 1084 and 1085:and change these to
Greetings,
Henrie
For setting the width, open the file style.css
Go to the end of file and add the following:
Code: Select all
textarea#cmnt {
width: 362px;
}
For removing the "Back to homepage" link at the very top of the guestbook open the file gbook.php
Find lines 1084 and 1085:
Code: Select all
<p style="text-align:center"><a href="'.$settings['website_url'].'">'.$lang['t61'].' '.$settings['website_title'].'</a>
| <a href="gbook.php">'.$lang['t60'].'</a>
Code: Select all
<p style="text-align:center">
<a href="gbook.php">'.$lang['t60'].'</a>
Henrie
-
- Posts: 3
- Joined: Mon Apr 28, 2008 3:19 am
Hi Henrie,
I have exactly the same problem as aceattorney (want the textarea less wide) but your solution doesn't work for me. I copied your code to the end of style.css, but there is no difference whether I say 200 or 2000 px. Any idea?
Thanks, Peter (PS: thanks for your reply on the admin by txt, that worked)
I have exactly the same problem as aceattorney (want the textarea less wide) but your solution doesn't work for me. I copied your code to the end of style.css, but there is no difference whether I say 200 or 2000 px. Any idea?
Thanks, Peter (PS: thanks for your reply on the admin by txt, that worked)
The code given is for the sign page. Is that the page you want to change, or do you want to change the width of the pages showing the guestbook entries.
Plus posting a link to your guestbook would be helpfull too.
Greetings,
Henrie
Plus posting a link to your guestbook would be helpfull too.
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
http://www.gnopgnip.nl/amstelveen/uitslagen.php
When you select "schrijf" the problem will be obvious.
When you select "schrijf" the problem will be obvious.
Just in case I was not clear: the problem is with the signpage. On the message page things scale along when I scale the iframe, but on the signpage a scrollbox appears.
Ideally, everything would scale on the signpage as well, but to able to fix the sizes of the elements there, would do as well.
Thanks, Peter
Ideally, everything would scale on the signpage as well, but to able to fix the sizes of the elements there, would do as well.
Thanks, Peter
Open the file gbook.php
And find cols="50" (lines 432 and 877 in GBook version 1.6)
now remove these.
The lines will look like:
Line 432Line 877
Now setting textarea#cmnt { width: 340px; } (or other width value) should work
Greetings,
Henrie
And find cols="50" (lines 432 and 877 in GBook version 1.6)
now remove these.
The lines will look like:
Line 432
Code: Select all
<textarea name="comments" rows="9" id="cmnt"></textarea>
Code: Select all
<textarea name="<?php echo $myfield['cmnt']; ?>" rows="9" id="cmnt"><?php echo $comments; ?></textarea>
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Open the file gbook.php
And find cols="50" (lines 432 and 877 in GBook version 1.6)
now remove these.
The lines will look like:
Line 432Line 877
Now setting textarea#cmnt { width: 340px; } (or other width value) should work
Greetings,
Henrie
And find cols="50" (lines 432 and 877 in GBook version 1.6)
now remove these.
The lines will look like:
Line 432
Code: Select all
<textarea name="comments" rows="9" id="cmnt"></textarea>
Code: Select all
<textarea name="<?php echo $myfield['cmnt']; ?>" rows="9" id="cmnt"><?php echo $comments; ?></textarea>
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.