Author |
Message |
12/08/2004 17:03:17
|
Anonymous
|
How do I add the guestbook to the page as you have on this page? So the guestbook fits the layout without having it as a pop up and such...
|
|
12/08/2004 17:08:48
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
Go here...
http://proxy2.de/forum/viewtopic.php?t=3460
|
|
12/08/2004 18:18:11
|
Anonymous
|
Hmm... I don't know if I understood it... because when I go to the page and press "Sign The Guestbook" or "Administator" it shows page cannot be displayed. I got to display the guestbook in the layout... but pictures and links doesn't work.
|
|
12/08/2004 19:48:54
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
From your first post I thought you were wanting a guestbook page just like any normal guestbook but with other stuff on the page - a menu at the left, heading at the top etc - something along those lines. Is that right?
As for 'page cannot be displayed' etc could be any number of things.
What's the URL for your guestbook?
I'm sorting out my own problems with 'page cannot be displayed' - not in the guestbook but 850 pages on the site, all to be changed manually 'cos they're not dynamic - I hate repetitive things like that almost as much as I hate webhosts who change hosting packages ever so slightly and cause these problems in the first place.
Sorry 'bout that - just getting it off my chest. Anyways, post your URL so we can see what's happening.
Regards
Trevor
|
|
12/08/2004 20:02:38
|
Anonymous
|
Trevor wrote:
I'm sorting out my own problems with 'page cannot be displayed' - not in the guestbook but 850 pages on the site, all to be changed manually 'cos they're not dynamic -
if its a common change have you a program that can do a string replace in each file?
|
|
12/08/2004 21:14:28
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
Hi,
Thanks for the reply - yes it's a common change. I have 3 include tags on each page but I never used extensions with the filenames (e.g include 12345 instead of include 12345.html) so I just need to add the extension.
Strange thing is it worked fine until yesterday afternoon and is only affecting files in 2 folders - everything else still works fine with or without extensions.
I can open each file one at a time and do a find and replace but it would be much better as you say, to do a string search on the whole lot. Any ideas?
P.S. Sorry this threads gone off topic.
Regards,
Trevor
|
|
13/08/2004 05:01:04
|
Anonymous
|
I want the guestbook to display in this layout:
http://www.nullproblem.com/gjestebok.php
I've added this include text:
<?php include('gjestebok/index.php'); ?>
|
|
13/08/2004 05:52:59
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
Hi Christoffer,
The 'include' tag seems to have worked
Problem with the links is that they're pointing to a none existent page. For example, the 'sign guestbook' link points to http://www.nullproblem.com/addentry.php but your addentry page is at http://www.nullproblem.com/gjestebok/addentry.php - should be just a case of changing the links.
Similar thing with your graphics except there's no base URL. For example, the img src for the little 2 x computers logo is http://img/ip.gif and on your site it should be http://www.nullproblem.com/gjestebok/img/ip.gif.
Not quite sure what's happened there as the base URL is consistent throughout the guestbook but somehow you've got it working in some places but not others. Did you manually change the image links?
Have a mess about correcting those links and it should all work fine. Whilst your changing things I'd be tempted to get rid of the links to the admin page as well.
Any problems - post another message.
Trevor
|
|
13/08/2004 06:17:16
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
Just gone back and had a look at your guestbook...
Your guestbooks just a tiny bit too big for a 1024 x 768 screen resolution, which is what most people have. You've got width tags set to 1024 in a few places - maybe change them to about 970.
Just a thought.
|
|
13/08/2004 13:43:58
|
Anonymous
|
Thanks, but where is the codes for images and for the links? In which file are they located?
Also, when I placed the guestbook file in the guestbook folder where all the other stuff is, the links worked BUT I want all the pages to be displayed in the "gjestebok.php" file and not like 3-4 different if you know what I mean? Is there any commands which can allow that?
|
|
13/08/2004 15:14:03
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
All the images are in the folder called img (the smilies are in a sub-folder called smilies).
Not sure how you've got your pages set up, but if you're using an include tag to pull in files from the guestbook, to a page outside the guestbook folder, this could be what's causing the problems with base_url.
Try this: Open each file in the templates folder one by one, do a search for base_url and change the img src path. In other words, when you come across something like this...
<img src="$GB_PG[base_url]/img/return.gif" width="10" height="10">
Replace it with something like this...
<img src="http://www.nullproblem.com/gjestebok/img/return.gif" width="10" height="10">
That way it doesn't matter where your guestbook pages are (they could be in a different folder / sub-folder / site / server etc) and the images will still be included.
That should do it.
Trevor
|
|
13/08/2004 16:39:34
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Open up the admin/config.php and look for where it asks you to input a BASE_URL or something similar. It is not getting the correct url so you will have to put the guestbooks url in this variable.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
14/08/2004 03:01:24
|
Anonymous
|
I tried what you said first Carbonize, but that didn't work... So now I'm working on what you said Trevor It works atleast. But now the problem is more this:
www.nullproblem.com/gjestebok.php
When I press on Sign the guestbook it goes to a new page and doesn't stay in the layout I wish all of that could stay in the layout
|
|
14/08/2004 04:02:47
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
I don't know much about this, but look at the source code for the two documents, specifically in the script near the bottom:
Guestbook index.php:
addentry.php:
I'm wondering if it's the path that was placed in the file. Since you are already in the guestbook directory when you are at the index page, when you go to addentry, do you need the "gjestebok/" in the path...?
|
|
14/08/2004 06:36:19
|
Anonymous
|
Where are those located? I couldn't find them
|
|
|