If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Encode emails in Guestbook like this site does!  XML
Forum Index » Support Forum
Author Message
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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
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
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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
Anonymous



Correction!! My config file shows:

$GB_PG["base_url"] = ""; /* e.g http://www.johnnyandrachaelstevens.com/guestbook/img */

Still doesn't work...

Thanks
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



You lost me on that last entry... what do you mean?

Thanks,
Johnny
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

You're not kidding weird... it's a mystery to me!
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum