URLs extend into the message area

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
dewebel
Posts: 4
Joined: Sat Aug 13, 2011 5:18 pm

URLs extend into the message area

Post by dewebel »

Script URL: http://www.aaronvanriet.nl/gbook/gbook.php
Version of script: 1.7
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: url*, long, *wrap*, *link*

Write your message below:

Long URLs extend into the message area. AFAIK they should wrap.
How to solve :?:
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: URLs extend into the message area

Post by Henrie »

Hallo dewebel,

Find your style.css file inside your template folder.
Inside it is a line

Code: Select all

a.gbook_submitted{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size:12px; color:#0066FF; text-decoration:underline;}
T
There are 2 options to get te result you like.
  1. add

    Code: Select all

    display:block; word-wrap:break-word;
    to this line. I think this is the best looking method.
  2. add

    Code: Select all

    display:block; overflow:auto;
    This looks a bit less good I think, but is better for really really really long url's.
Groeten,
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.
dewebel
Posts: 4
Joined: Sat Aug 13, 2011 5:18 pm

Re: URLs extend into the message area

Post by dewebel »

The first one has done the trick :D

Peculiar that this wasn't already in the file :?
Installed the GBook with a Wysiwyg Webbuilder extension.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: URLs extend into the message area

Post by Henrie »

It wasn't already in the file because it is a CSS3 specification which is fairly new. Therefore it is not well known yet. I found it because I was looking for different wrap options but I also had not heard of this option before.
And usually website url's are not that long, so it was not needed in GBook.

That it is so knew might also cause some older browsers not to support it. They will than display it the same way as it has done untill now.

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.
Post Reply