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 
Moving the page to the left  XML
Forum Index » Advanced Guestbook Modifications
Author Message
Roger Eriksson
Beginner

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

Hi!

I've installed the guestbook, and set the width to 600px.
My homepage consists of three frames; top, left and main. I'm opening the guestbook on the main frame. When opening the guestbook it is placed in horizontal center, but I would like to have it adjusted to the left, so it is close to the left frame. I assume it's possible, but how do I do it?

Im old and not so familiar with coding so I need some good instructions. I'm able to go in to the administration site and edit the php files, but not sure what has to be changed.

Regards from a white an beautiful Jamtland, Sweden
Roger
Carbonize
Master
[Avatar]

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

At a guess open body.tpl and change all align="center" to align="left"

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

Thanks!

I've tried that - made changes in 4 places, didn't work. I've also tried changing OpenCentered to OpenWindow in form.tpl, without success.
Any other suggestions?

//Roger
Carbonize
Master
[Avatar]

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

I don't have AG installed so can yo upost link to yours so I can see.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

Hi!

Here it is:

http://www.kartboken89.se/advancedguestbook/

and if you want to see it within our website/homepage:

http://www.kartboken89.se/

click the button below "HEM" (Home in Swedish)

//Roger
Carbonize
Master
[Avatar]

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

I look at the HTML of your guestbook and straight away I can see

<body bgcolor="#FFFFFF" link="#006699" vlink="#006699">
<form method="post" action="index.php">
<table border="0" cellspacing="0" cellpadding="2" align="center" width="600p">


All the table aligns are saying center. Also notice the 600p. You need to correct that by logging in to admin and adding the missing x.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

Hi again!

Strange, but if I add a x, it will be erased as I hit the "Submit settings" button - left is "600p"?
More strange things, yesterday when I change from center to left in 4 places in body - nothing happened ??? Today it seems like I get 4 cells in a raw where in the "objects" now are aligned to the left? What the heck did I miss yesterday?
However this seems to be a little to difficult for me, maybe it's best to search some local help. It seems like it has to be a buch of changes to get the things were I want them to be. Or do you think you can guide me, I'm really not a pro in this area?

//Roger
Carbonize
Master
[Avatar]

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

I suppose the easiest way would be to put the whole guestbook in a div. Open body.php and just after <body put

<div style="text-align: left; width: 630px;">

Then just before </body> (I think this might be in footer.php) put

</div>

Do same in form.php and comment.php

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

Hi again and thanks!

This I found in the header.php:
</head>
<body bgcolor="$VARS[pbgcolor]" link="$VARS[link_color]" vlink="$VARS[link_color]">

and this in the footer.php:
<center><b><font face="Arial, Helvetica, sans-serif" color="#CCCCCC" size="1"><a href="http://www.proxy2.de" target="_blank"><font color="#CCCCCC" size="1">Advanced Guestbook 2.4.4</font></a></font></b></center>
<\div> (should be here I think??)
</body>
</html>

In the files form and comment I found no line with the word body?

//Roger
Carbonize
Master
[Avatar]

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

That's because it's in the header which makes life easier.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

OK!

Should it look like this then?
</head>
<body bgcolor="$VARS[pbgcolor]" link="$VARS[link_color]" vlink="$VARS[link_color]">
<div style="text-align: left; width: 630px;">

So I don't have to bother with the other files then?

//Roger
Carbonize
Master
[Avatar]

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

yup just header and footer

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 31/03/2009 17:25:34
Messages: 7
Offline

Hi!

Allmost right. Some problem appeared.
Menu items in admin page and hyperling areas doesn't fit. So if I want to log out I have to move the cursor a little bit right of "Log out" to get the "Hand cursor".
The guestbook was moved to the left but text was squezeed and some icons was placed infront of the text for e.g. sign guestbook and admin. Also text in admin page was squezeed.

So I assume there have to be some more changes done somewhere?

//Roger
 
Forum Index » Advanced Guestbook Modifications
Go to:   
Based on the open source JForum