Changing posting layout

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

Changing posting layout

Post by helper »

Script URL:
Version of script: 1.35
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: all the way through
(if not please do before posting)
If so, what terms did you try:

Write your message below:

Hi great script. if I can iron out these problems I will definatrly be buying a licence.


Ok I will try to explain

i would like to align the name, email, website and comments and time all left and one under the other.

Not details left comments right.

i would also like to have a coloured bar separating each post without "posted by" & comments written in it.

if possible i would like the persons name to appear in the coloured bar.

many thanks

doug.

the sort of layout I am talking about is at http://www.lettertogod.net/letters_5a.htm i currently create these pages manually and cant keep up with my site.

I would be very grateful for the help

also how would i create a table to the right of the page. i can create to the left using header text no problem but right has me stumped.

thanks again

Doug
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

All the HTML code is inside the gbook.php file, you will have to edit that to make it work as you like (you will need to know HTML code though).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

I will see what I can do

Post by helper »

Thanks for your reply

I will l have a look around and see what i can do.

I have a little knowledge, enough to be dangerous.

Any clues from anyone would be greatly appreciated.

I am prepared to pay for help or buy presents.

sound good?
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

getting somewhere

Post by helper »

Ok I have found the format table in the gbook php and altered it but when I upload it nothing changes. There must be another one I need to edit.

Hmmm

this is what I changed it to.

<table border="0" cellspacing="0" cellpadding="8" width="600" class="entries">
<tr bgcolor="#9966CC">
<td width="584" height="23" valign="top" class="upper"><b><font color="#FFFFFF">'.$name.'</font></b></td>
</tr>
<tr>
<td height="114" valign="top">
<p><br>
<font class="smaller">From: '.$from.'</font><br>
<font class="smaller">Website:</font> '; if (strlen($url)>0) { echo '<a href="go.php?url='.$url.'" target="_blank" class="smaller">'.$url.'</a>';
} echo '<br>
<font class="smaller">E-mail:</font> '; if (strlen($email)>0) { echo '<a href="mailto:'.$email.'" target="_blank" class="smaller">'.$email.'</a>';
} echo '<br>
<font class="smaller">'.$added.' &nbsp;&nbsp;&nbsp;&nbsp; <a href="gbook.php?a=delete&num='.$num.'"><img src="images/delete.gif" width="18" height="18" border="0" alt="Delete this entry"></a></font><br>
'.$comment.' <font class="smaller"> </font></p>
</td>
</tr>
</table>
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

found the next bit

Post by helper »

I have found the second part I need to edit.

It seems to be working

will post the code and where to find it in the gbook.php when I have got it all sorted

now i need to find a way to place a table down the right side of the page.

I can do the left with the header text but right is evading me.


ever felt like you were talking to yourself.

Doug
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

ever felt like you were talking to yourself.
You must understand these are free scripts and I do not guarantee any support, but provide limited support anyway. However I have no intention of teaching people PHP, HTML, ... I am not here to do that. I can provide some general guidelines but you will have to do the "dirty work". Thousands of people are using my free scripts and I really cant afford to help everyone customize it to fit their needs.

A quick tip for editing the layout:

Create the layout exactly as you want it in a HTML file and write ##GBOOK## where you want the guestbook to be displayed. Then open the html file in a text editor and copy/paste all the code before ##GBOOK## in the header file and all code after ##GBOOK## in the footer file.

You might need to edit the <head> tags a little in gbook.php, make sure you don't have any <head>, <body> tags in header/footer etc, but this should get you going.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

many thanks

Post by helper »

Please dont think i was being rude by saying "ever feel like your talking to yourself"

It wasnt directed at you, just the world in general

i deeply appreciate your script and the service they offer

many thanks I am beginning to understand it

With respect

Doug
mr tart
Posts: 4
Joined: Sun May 14, 2006 8:31 pm

Post by mr tart »

Hi Doug,

This goes for everyone really, if you know "enough to be dangerous" lol then please ALWAYS make a copy of any files you are playing with. It's oh so easy to think "oh I wont be changing much" and then screaming like a baby when your guestbook is not working. I've been there and learnt the hard way myself 8)

Matt
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

i agree

Post by helper »

ty
yes i now always keep backups before every change
I have also learnt the hard way and had to start from scratch

with respect

doug
Zeus
Posts: 2
Joined: Sat Mar 25, 2006 5:48 pm

changing the code

Post by Zeus »

Hi Helper.

Could see on your webpage that you have changed the gbook so the text stands beneath each other.

Where in the code did you change that?

Hope you can help.

/Rasmus Christensen
helper
Posts: 11
Joined: Wed May 03, 2006 5:56 pm

Post by helper »

hi
i no longer use the guestbook what you are seeing at my page is a guestbook that was built for me. it is attached to a sql database
Sorry i cant help.
however i do know a very good coder who may be able to help you


Doug
Post Reply