Author |
Message |
14/08/2004 08:17:47
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
You were saying you followed Trevor's instructions. I read through the posts, and it doesn't appear that his posts had anything to do with that javascript.
I tried what you said first Carbonize, but that didn't work... So now I'm working on what you said Trevor Smile It works atleast. But now the problem is more this:
I was just pointing out that when I look at the source code, there is a javascript in both the guestbook/index.php and guestbook/addentry.php files. But the code is not quite the same in each one. Since both of these files are in the same directory, and the script is calling the same thing, I would think they would be identical. But now that I think about it, you are trying to do something entirely different, and I am not the person to advise you on this. You should just disregard my previous post.
Perhaps Trevor will be able to help you when he returns.
|
|
14/08/2004 08:44:03
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
OK the problem is that you have used an include call to place the guestbook outside of it's own directory and the image paths are coded to be correct when the page that is calling them is in the guestbook directory. Baiscally you have 2 choices.
1 - Do as I do and leave the guestbook in it's own directory and call a header and footer file from the guestbooks index.php.
2 - Open admin/config.inc.php and look for
Change this to
and if that doesn't work it's going to be a case of going through all the files and hardcoding in the correct image paths.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
14/08/2004 08:45:05
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
On an off topic note 800x600 is still the most common screen size and I hate sites that go off the side of the screen.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
14/08/2004 11:39:34
|
Anonymous
|
Would that be those in the template directory?
|
|
14/08/2004 11:44:00
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
as it says it is admin / config.inc.php meaning it is the file called config.inc.php in the directory called admin.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
14/08/2004 13:11:23
|
Anonymous
|
No, I was thinking more of the header and footer files which was going to be in the include... I understood the admin / config.inc.php thing.
But when I added the templates/header.php and templates/footer.php to the page it looked like this:
www.nullproblem.com/gjestebok.php
|
|
14/08/2004 13:27:27
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
If you're going to put your guestbook within another page you are best of deleting the contents of the templates/header.php and templates/footer.php files. Back them up first and then replace the contents in both with a space or .
In your example though I see the header and footer I see no content.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
14/08/2004 13:43:48
|
Trevor
Student
Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline
|
Hi Christoffer,
I'll go into a bit more detail about what Carbonize and me were on about earlier...
Your guestbook uses a thing called base_url - which, as the name suggests, is the base url.
When the guestbook runs it effectively replaces instances of base_url with a predetermined value. In your gesutbook this should be www.nullproblem.com/gjestebok
So, written into your guestbook are lines such as this...
<img src="$GB_PG[base_url]/img/return.gif" width="10" height="10">
When you run the guestbook and it replaces base_url what it then reads is this...
<img src="http://www.nullproblem.com/gjestebok/img/return.gif" width="10" height="10">.
When I looked at your guestbook the other day it didn't seem to have any value for base_url so instead of assigning www.nullproblem.com/gjestebok/ it was assigning nothing with the result it was trying to find images loctaed at http://img/return.gif.
I'm not sure how you've managed to unassign a value to base_url but somehow it's happened.
I guess you've got 3 options...
1) Assign a value to base_url as explained earlier
2) Reinstall and start again
3) Hard code it.
Personally I'd go for the hard coding option. That way you don't have any problems with moving files and folders and using include tags to pull in files and images to pages outside the guestbook.
You need to replace every instance of base_url and an easy way to make sure you don't miss any is to FTP guestbook to your computer and do a string search in all the files for base_url. Then just open the files in your script editor, make whatever change,s and away you go.
That should do it. Right, it's the weekend, the rains stopped and I'm off out for the day so nothing more from me for a while. Besides, you've got Carbonize on the case so you're in good hands.
Have fun.
Trevor
|
|
14/08/2004 14:06:16
|
Anonymous
|
I understand what you mean But it's not working as it should... I guess
I did upload all the templates again (after doing the hardcoding thing to change all the base_url stuff) and now tried with addind a include header, include index and and include footer. Now the images work as they should, BUT not the links...
Why is that? I thought it was wierd, since the images are linked to the right places, then so should the links aswell... shouldn't they?
I really appreciate the help from you 2
|
|
14/08/2004 14:27:56
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
ok to fix the links open up the config.inc.php file and look for
Now replace it with
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
14/08/2004 14:39:44
|
Anonymous
|
Thanks alot Now it works as it should
|
|
|