Jump to content
Sign in to follow this  
elari

Advanced Guestbook for Osc

Recommended Posts

Upon moving my shop up to the root level of couse the images REFUSED to show. After hours of head scatching "I think" I have it working properly.

 

Edit admin/gbook.php:

 

Line 74:

 

$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PHP_SELF"]);

 

Change to:

 

$GB_PG["base_url"] = '';

 

So far it works. I have not fully tested uploading etc... but at least it is a start.

 

I do not understand the point of lines 64 to 76, I guess it has something to do with identifying where the request is coming from. It does not properly figure out that the request is coming from root level and not from a subdirectory. I hope this helps.


A brick wall is the only thing standing between me and my sanity!

Share this post


Link to post
Share on other sites

yes it seems guestbook is not ok when running catalog from the root instead of /www_root/catalog/....

 

in fact i must change this to use also the value included in configure.php to use dir_ws_catalog and so....

Share this post


Link to post
Share on other sites
You can see the above working at:

 

http://www.propheticlife.com/gbook.php

 

Nice site :)

I noticed you are using the calendar mod.. How on earth did you manage to change the width on it?

I'm having real trouble with that, It is too wide for the left column.

 

Sorry if this is a bit off topic

 

Tracy


If life begins at 40..... What ends at 39????

Share this post


Link to post
Share on other sites

This guset book can support multi-language.

That's major reason why I select this one but not phpBB.

 

I got a problem.

When I trying to change language insterface.

all images were gone.

I check the link it changes like this :

 

root/gbaddentry.php/language/img/email.gif

 

How come ?

 

And another serious problem

I can login in with admin priority.

Even I change the User Name/password in book_Auth table.

Why ?!

 

My site:

http://www.chris.com.tw/strap/

 

Guest Book

http://www.chris.com.tw/strap/gbook.php

Share this post


Link to post
Share on other sites

I was looking for a guestbook module that would work.. I ended up incorporating my own...

 

The only problem I ran into was if the person signing the book doesnt write anything.. then the layout on the following page is snafu. I'm sure I can fix it, but I just haven't had time.

I didnt write the code for the guestbook, I just added it.

You can see it here

http://www.welshdragon.net/index.php

Its still in test phase so oyu can post messages if you like :)

 

Tracy


If life begins at 40..... What ends at 39????

Share this post


Link to post
Share on other sites

i have recheck your page

seems to be a language select problem

 

you have link like

default.php/language/en

instead of

default.php?language=en

 

this same problem occur then in guestbook, this is not a gbook problem

 

ps i have tried to write this on your gbook but it seems you you have set too many bad word censored... ?????

 

try .....gbaddentry.php?language=en or ....=tw and you'll see it works

Share this post


Link to post
Share on other sites

maybe is a problem of your osc version ?

which one do you use ?

 

my demo page is using a 2.2 cvs ~dec and some part of pre ms1

Share this post


Link to post
Share on other sites

I exhaust a lot of time to trace the AGB, although

I reinstall it, it still can't let me login no administrator.

 

elari, could you help me to solve it ?

 

This my admin page

 

http://www.chris.com.tw/strap/gbadmin.php

 

nothing change at all

(default password)

 

btw, When I trace the code, I found it maybe the session problem...

 

I use Win2000 Server + Apache 1.2.37 + php 4

Share this post


Link to post
Share on other sites

Warning: Cannot modify header information - headers already sent by (output started at /home/s/sensuell/www/butik/catalog/gbcomment.php:20) in /home/s/sensuell/www/butik/catalog/includes/classes_gb/comment.class.php on line 176

Share this post


Link to post
Share on other sites

maybe some info like a web page to see that problem should be needed in your request

Share this post


Link to post
Share on other sites

Sorry

http://www.sensuellt.com/butik/catalog/gbook.php

 

The message appear when i replay to a message.

 

______________________________________-

 

When I write a new comment I get this message before the script load the guestbook again.

 

Warning: main(includes/boxes/shopping_cart.php) [function.main]: failed to create stream: No such file or directory in /home/s/sensuell/www/butik/catalog/includes/column_right.php on line 13

 

Warning: main(includes/boxes/shopping_cart.php) [function.main]: failed to create stream: No such file or directory in /home/s/sensuell/www/butik/catalog/includes/column_right.php on line 13

 

Fatal error: main() [function.main]: Failed opening required 'includes/boxes/shopping_cart.php' (include_path='./:/usr/local/share/pear') in /home/s/sensuell/www/butik/catalog/includes/column_right.php on line 13

 

 

//Thanks

Share this post


Link to post
Share on other sites

I gotta problem, after trying to install this guestbook I cant load my shop...

 

I made everything as it worte in readme file, and launched gb-install.to.be.removed.after.install.php, that wrote some errors on lines 2.3.4.10 and I decided to remove it, aftr that i try to load shop and see:

 

Fatal error: Failed opening required './includes/application_top.php' (include_path='/usr/lib/php') in /var/www/html/shop/catalog/default.php on line 13

 

Admin works, and other php on server works too. what wrong?

Share this post


Link to post
Share on other sites

Are you sure that you did not delete catalog/includes/application_top.php on your server side? Try uploading the file again. If that dopesn't work check your permissions.


A brick wall is the only thing standing between me and my sanity!

Share this post


Link to post
Share on other sites

yeas i'm sure! cuz i've restored all back up including application_top.php, and checked permission... and that doesn't solve my problem :(

Share this post


Link to post
Share on other sites

I get this mistake, when send the commentary and there is mistake of the formatting the page.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/....../www/..../catalog/gbcomment.php:20) in /home/....../www/...../catalog/includes/classes_gb/comment.class.php on line 176

 

What reason of this defect? However, commentary is written orderly in the guestbook...


Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Share this post


Link to post
Share on other sites
The message appear when i replay to a message.

 

______________________________________-

 

When I write a new comment I get this message before the script load the guestbook again.

 

Warning: main(includes/boxes/shopping_cart.php) [function.main]: failed to create stream: No such file or directory in /home/s/sensuell/www/butik/catalog/includes/column_right.php on line 13

 

Warning: main(includes/boxes/shopping_cart.php) [function.main]: failed to create stream: No such file or directory in /home/s/sensuell/www/butik/catalog/includes/column_right.php on line 13

 

Fatal error: main() [function.main]: Failed opening required 'includes/boxes/shopping_cart.php' (include_path='./:/usr/local/share/pear') in /home/s/sensuell/www/butik/catalog/includes/column_right.php on line 13

 

 

//Thanks

Did anybody fix this problem? :(

Share this post


Link to post
Share on other sites

No one uses this guestbook?

The same error occurs on the demo page of the author and all other pages with this addon installed.

Seems like a path problem.

Can anybody help?

Share this post


Link to post
Share on other sites

Warning: Cannot modify header information - headers already sent by (output started at /opt/guide/www.HELP.nl/HTML/shop/gbcomment.php:20) in /opt/guide/www.HELP.nl/HTML/shop/includes/classes_gb/comment.class.php on line 176

HELP HELP HELP

Edited by The Floor

Share this post


Link to post
Share on other sites
Warning: Cannot modify header information - headers already sent by (output started at xxxxx../catalog/gbcomment.php:20) in xxxxx../catalog/includes/classes_gb/comment.class.php on line 176

 

 

quick hack:

 

look in comment.class.php

 

at line 176

 

replace

header("Location: $GB_PG[gbook]");

with

?>
<meta http-equiv="refresh" content="0;URL=<?php echo $GB_PG[gbook] ?>">
<?php

 

 

that should do it.

but what bothers me is if a customer is loged in, if he adds a comment, he will be automatically logged out...

hmm

Share this post


Link to post
Share on other sites
No one uses this guestbook?

The same error occurs on the demo page of the author and all other pages with this addon installed.

Seems like a path problem.

Can anybody help?

You can comment out the <!-- right_navigation //--> code like this

<?php //require(DIR_WS_INCLUDES . 'column_right.php'); ?>

Edited by SunYe

Fan of OSC system.................

Comming From China.............

Share this post


Link to post
Share on other sites

Anyone tried this guestbook on MS2?

 

And does it keep the session info somehow? Or do you need to use cookies?


Please do not PM me for support, I will not respond anyway.

Share this post


Link to post
Share on other sites

I have been using the advance guestbook on my site for years and now have added oscommerce to my site. I would like to add the guestbook contribution to oscommerce. Is it the same database? B)

 

www.needlepointbackbay.com/catalog/


Live free or die

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×