Page 1 of 1
Changing posting layout
Posted: Mon May 08, 2006 3:20 pm
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
Posted: Mon May 08, 2006 5:04 pm
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).
I will see what I can do
Posted: Tue May 09, 2006 1:45 am
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?
getting somewhere
Posted: Tue May 09, 2006 3:39 am
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.' <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>
found the next bit
Posted: Tue May 09, 2006 6:28 am
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
Posted: Tue May 09, 2006 1:07 pm
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.
many thanks
Posted: Tue May 09, 2006 1:32 pm
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
Posted: Sun May 14, 2006 9:06 pm
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
Matt
i agree
Posted: Mon May 15, 2006 2:31 pm
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
changing the code
Posted: Wed Sep 13, 2006 3:12 pm
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
Posted: Wed Sep 13, 2006 3:35 pm
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