Author |
Message |
|
Nice one Carbonize. If I remember I'll change my GB and let you know if there's any problems.
|
|
|
It's working fine now. Just those first few entries wouldn't show up - no idea why.
You can delete all those test entries now.
Hope it keeps working OK.
Trevor
|
|
|
Chris,
Can you supply more info. You say it doesn't work - what's it do or not do? What error messages do you get etc
|
|
|
From memory I think the default password is test and the username is 123. Try that, if it doesn't work post another message with more info...
Is this a brand new installation?
Did the password and username work before?
What's The URL of the guestbook...blah blah blah
Regards,
Trevor
|
|
|
Above post is me - forgot to login
|
|
|
Hi,
1) <<<>>>
2) Registered users? If you mean number of people who can sign the guestbook - then either there's no limit of if there is (can't see why there should be) then it's very large, I've seen guestbooks with thousands of entries in
3) Did you change the width and height tags?
Trrevor
|
|
|
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
|
|
|
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
|
|
|
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.
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
Go here...
http://proxy2.de/forum/viewtopic.php?t=3460
|
|
|
Thanks Jam'n - that site's a handy resource
|
|
|
Password and username reset - check your e-mails.
|
|
|