[cpg1.4.x]: Advanced Guestbook integrated with Coppermine - Page 3 [cpg1.4.x]: Advanced Guestbook integrated with Coppermine - Page 3
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[cpg1.4.x]: Advanced Guestbook integrated with Coppermine

Started by Ludo, November 14, 2008, 12:32:09 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

calvinite

Well, I finally figured it out, without loosing too much hair. I reinstalled as you suggested, to upgrade to the new version, but it was still giving the same error. After much frustration, I finally came to realize I was pointing the Guestbook link to index.php when it was supposed to be pointed to guestbook.php, which calls index.php (Such a simple blunder to wreck an afternoon). Once I figured that out, the guestbook started working again and looks great.

But that wasn't the last of it. The Guestbook link took me to the admin login page, but when I logged in, it inserted the extra guestbook in the URL. I tried many combinations of URLs in both $GB_PG["base_url"] and $GB_PG["admin"] and ended up puting the full web URL in both, and it now works.

I kept the Guestbook link in the CPG code as I did in my original post, Integrating Advanced Guestbook into CPG, which you replied to and posted your integration. By putting it in the code, it isn't visible without logging in; which is my preference. Others may like it visible, which your method does and redirects to the login if a user is not logged in.

So, I truly appreciate your suggestions and help and I really like your integration. I don't think I'd have been able to figure out these issues without your help.

Ciao!
I started with nothing, and have most of it left.

Ludo

#41
I'm glad you solved your issues, but...would you like to help me finding a generally suitable solution?
In guestbook/admin/config.inc.php, please replace $GB_PG["base_url"] and $GB_PG["admin"] lines with these:
$GB_PG["base_url"] = $CONFIG['ecards_more_pic_target']."guestbook";
$GB_PG["admin"]    = "guestbook/admin.php";


Then, open guestbook/templates/admin_enter.php and change
<form method="post" action="$GB_PG[admin]">
to
<form method="post" action="$_SERVER[PHP_SELF]">

Now check if admin login (and of course the other admin functions) work fine.

calvinite

LUDO RULES!

Your solution works, now we are both happy campers. I posted a message, logged in to the admin section and deleted it, all with no problems. I'd say this issue is resolved!

'preciate ya!

calvinite
I started with nothing, and have most of it left.

Ludo

Thank you very much, I will upgrade the integration package to v. 1.0.2 ASAP with the new settings

calvinite

You are very welcome. Am I correct in assuming that these updates to the package will now allow the new version of the integration to be installed in the root, or a subdirectory, of a CPG installation and function properly from either location?
I started with nothing, and have most of it left.

Ludo

#45
Yes, it will...better, it should  ;D
Maybe even Cath22 issues could get solved (they were admin login-related too)

calvinite

Great. I can't say enough how much I appreciate your help and if I can be of help to you again in the future, let me know.
I started with nothing, and have most of it left.

Fabricio Ferrero

@Ludo: I just try to see the themo and it shows:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /membri2/vanrokken/lang/spanish.php on line 1276 What version of spanish language file are you using?
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Ludo

Fixed.
It wasn't matter of version, but of a comma missing after a definition added by me  :-\ :-[
Next upgrade will be guestbook language following automatically the one chosen in Coppermine...

Ludo

Done!
Released version 1.0.2 of integration package, with following updates:
- fixed credits text in admin footer
- now guestbook language follows selection (or default one) in Coppermine
- fixed a bug with admin login (thanks to calvinite)

Fabricio Ferrero

Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

Ludo


Cath22

Quote from: Ludo on March 27, 2009, 01:44:39 AM
Yes, it will...better, it should  ;D
Maybe even Cath22 issues could get solved (they were admin login-related too)
I'm sure going to try it when I find the time. Let you know the results

Greetz
Cath
qui custodiet ipsos custodes

Heroe

Thanks for the mod Ludo can you tell me how to update my existing guestbook with the new version ?

Ludo


Heroe


Cath22

Well I have removed all previous guestbook stuff and installed the new one, but guess what...... after succesfull installing, logging in is the same, it accepts my name and password and as soon I click one of the menuoptions i get the login screen again,  >:( so it didnt work for me sorry to say.

Cath
qui custodiet ipsos custodes

tjiepie

I added the Advance Guestbook.Type: 2.4.4


After i running the install process, I get these code on the index page:



Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'hide addresses'@'srv77.one.com' (using password: NO) in

[hide-addresses]bl/guestbook/lib/mysql.class.php on line 45
Connection Error


--------------------------------------------------------------------------------

MySQL Error : Connection Error

Error Number: 1045 Access denied

Ludo

Is /bl your CPG root directory?
Guestbook gathers database connection parameters by including /include/config.inc.php, so the only reason to get a db connection error is a wrong guestbook directory placement, if CPG works.

tjiepie