Author |
Message |
27/10/2004 22:11:54
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Want to encrypt the email addresses in your guestbook likes this sites guestbook does?
Open templates/header.php
Find:
Before it put
Save and close the file.
Open templates/email.php
replace the entire contents with
Save and close the file.
Open templates/entry.php
Find:
replace it with:
Save and close the file.
Open lib/gb.class.php
Find:
Replace it with
Just after that you will see replace it with
Save and close the file and you're done.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
28/10/2004 17:06:04
|
Anonymous
|
Hey Carbon,
I followed these to the letter (except the last line, where you said to find the line starting with val; it's actually eval). Once I saved and tried to access my guestbook, I got the following error:
Parse error: parse error, unexpected ';' in .../guestbook/lib/gb.class.php on line 133
My website is http://johnnyandrachaelstevens.com/guestbook/
Is this common with this mod? I am certain that I didn't make any other changes to the lib/gb.class.php file outside of the instructions.
Thanks,
Johnny
|
|
28/10/2004 17:20:49
|
Anonymous
|
Hey Carbonize,
Just a note on the last entry: I removed the code from the last instruction and the guestbook is accessible now. I still haven't completed the whole process, but I'm not stuck without a guestbook now.
Can you please help me finish the mod??
Thanks,
Johnny
|
|
28/10/2004 18:15:10
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Whoops I boobooded and missed off the closing )'s from the str_replace functions. Fixed now
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
28/10/2004 23:34:51
|
Anonymous
|
Hey Carbonize,
I am still pretty new to php... I have had a consistent issue with the img's on my guestbook not loading. In particular, the textbar on the bottom of the screen leaves a blank where the source should be (i.e. it should say http://johnnyandrachaelstevens.com/guestbook/img, but it says http:///img)
I was told to change my config.inc.php file, so I did and that worked.. for that session. I made the following change:
$GB_PG["base_url"] = ""; /* e.g htpp://www.johnnyandrachaelstevens.com/guestbook/img */
Now that I have logged out and back in, my pics are gone again... Can you tell me exactly what should be in the config.inc.php file??
Thanks,
Johnny
|
|
28/10/2004 23:36:20
|
Anonymous
|
Correction!! My config file shows:
$GB_PG["base_url"] = ""; /* e.g http://www.johnnyandrachaelstevens.com/guestbook/img */
Still doesn't work...
Thanks
|
|
28/10/2004 23:44:42
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
You are meant to put the path in the "'s
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
01/11/2004 23:05:48
|
Anonymous
|
You lost me on that last entry... what do you mean?
Thanks,
Johnny
|
|
01/11/2004 23:32:47
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
you put
it should be
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
02/11/2004 06:45:36
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
Strange... After adding this, all the entries in my guestbook that did not have an email address have been altered to show the email address of the latest visitor. When I go into the Admin panel, these entries show the email field is blank...
I added a test entry and it is fine with no email address, but now I need to figure out how to remove the address from the other entries.
|
|
02/11/2004 11:45:56
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Thats weird because this code only alters the email addresses as they are being pulled from the database to be added to the output.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
02/11/2004 11:57:21
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
You're not kidding weird... it's a mystery to me!
|
|
07/11/2004 09:55:58
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Just fixed an error in the code I posted. The error was in the code that goes in lib/gb.class.php.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
11/11/2004 11:02:17
|
amber222
Graduate
Joined: 07/05/2004 21:13:07
Messages: 586
Offline
|
Carbonize, I signed John and Rachel's guestbook on November 3 without leaving an email address.
http://johnnyandrachaelstevens.com/guestbook/
Someone else signed their book on November 9 with an email address. It has added their email address to my post.
|
|
11/11/2004 11:09:18
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Just noticed another error after visiting their site. Should be
i forgot as I remove all image link borders in my CSS.
I see what you mean, it's put the email in twice. I think I know whats happened. Slap my wrists I forgot to empty the variables and so it will use the same info again until it finds a new email address. Will fix now
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|