If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
How to add title picture to the guestbook  XML
Forum Index » Support Forum
Author Message
sportgsd
Beginner

Joined: 08/02/2005 04:20:17
Messages: 6
Offline

I would like to make the guestbook look like my site.
I use DreamWeaver MX to edit htm,php files.
How do I/which files do I edit:

1) to add/insert a table to the top of the guestbook so I can put and image in the top row and my menu script in the bottom row?

2) to limit the width of the guest book to 740 pix

Thx
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

1 - Edit templates/body.php
2 - Simply change the width in the Style section of the Admin.

I'd personally suggest using a dedicated text editor such as PS Pad for editing PHP files as they are specifically designed for the purpose. I'm not to sure if Dreamweaver would add it's own bits to files edited in it.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
sportgsd
Beginner

Joined: 08/02/2005 04:20:17
Messages: 6
Offline

Hi,

Thanks for you help. I edited the body.php and inserted a table at the top of the body.php that has my title image and my menu.

I uploaded my image to to the img directory in the guestbook folder. BUT my image.jpg insn't showing up. Any ideas???

Also I changed the guestbook width, but how do I change the alignment? Right now the guestbook is central on the page and my title is on the left side of the page.

How do I move the guestbook to the left side of the page.

Thanks
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Put align="center" to the table tag you added. As for the images I would need to see the guestbook. You sure you got the src path correct?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
sportgsd
Beginner

Joined: 08/02/2005 04:20:17
Messages: 6
Offline

I don't want to align my table to the center, I want to align the guestbook to display on the left. How do I do that?

Here is src path for the image:

<img src="../img/allk-9maintitle.jpg" width="740" height="97">
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Use the full path for your image instead of relative. The path you have at present is telling it that the folder containing the image is outside the guestbook folder. Use http://www.yourdomain.com etc as the src path. As for the table look in body.php again. In the table tag change align="center" to align="left" or just remove this attribute totally.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
sportgsd
Beginner

Joined: 08/02/2005 04:20:17
Messages: 6
Offline

Fixed the image, thanks.

But...

"In the table tag change align="center" to align="left" or just remove this attribute totally."

The table I inserted with my title image and menu IS aligned properly, it is the guestbook that is still "misaligned."

Here is a look at my site: http://www.allk-9.com/guestbook/

How do I get the guestbook (all pages) to align to the left. I can force the body.php to align to the left, by adding a row to my table, and then putting the body.php into the table. BUT all of the other guestbook pages will still display in the center...

Is there a general cart setting where I can change the alignment of the entire guestbook to the left instead of the center?

If not, how would you suggest making sure all pages will align to the left (i.e. which templates in addition to the body will I have to insert into a table that is aligned to the left)?

Thank you
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I was talking about the align="center" attribute that is in the GUESTBOOKS table tag not the table tag you inserted.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
sportgsd
Beginner

Joined: 08/02/2005 04:20:17
Messages: 6
Offline

Ahh haa!
My bad, I thought you were referring to my table....

Ok so before I go hacking up every template...
There are multiple tags in the body.php for each sub table, would you recommend that instead of changing each individual tag that I move the entire body.php into the table I created?

If so, what other templates will I have to do that do so that all guestbook user pages align to the left?

Or is there a universal.php that has an alignment tag controlling the display of all guestbook pages that I can edit???

Thanks
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

If you are going to put them within your table then you are best starting your table in header.php and closing it in footer.php. Nesting tables within tables within tables is not recommended practise though. As for the table tags to edit look in body.php, comment.php, form.php and preview.php.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
sportgsd
Beginner

Joined: 08/02/2005 04:20:17
Messages: 6
Offline

I "think" I've got it worked out now.

Thanks for all of your help.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum