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 
Email on entries is showing code "javascript:getEmail('  XML
Forum Index » Advanced Guestbook Forum
Author Message
Johnny Stevens
Beginner

Joined: 09/08/2005 23:05:43
Messages: 5
Offline

My template/email.php is showing the following:
<a href="javascript:getEmail('6d61696c746f3a$encemail')"><img src="$GB_PG[base_url]/img/email.gif" width="15" height="15" alt="$LANG[AltEmail]" border="0" /></a>

My lib/gb.class.php is showing the following:
if ($row['email']) {
/* E-mail Hack */
$row['email2'] = str_replace("@", "(at)", $row['email']);
$row['email2'] = str_replace(".", "(dot)", $row['email2']);
$row['email'] = "javascript:getEmail('".$this->db->encryptEmail("mailto:".$row['email'])."')";
$encemail = bin2hex($row['email']);
$hidemail = str_replace('@', '[at]', $row['email']);
$hidemail = str_replace('.', '[dot]', $hidemail);
eval("\$EMAIL = \"".$template['email']."\";");
} else {
$EMAIL = '';
$hidemail = '';

When I make a guestbook entry at http://www.hiddenacreskennel.com/guestbook/ I get the following on my entry:
Johnny Stevens
javascript:getEmail('6d61696c746f3a4a53746576656e734070726f766964656e6365696e7465726e657467726f75702e636f6d'

I was unable to find anything that would have caused this, nor is there a forum posting describing this situation... I'm at the end of my php knowledge and figure someone out there has a quick fix for this.... please send help!!

Thanks,
Johnny
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Looks to me like you've added my email encryption mod to 2.3.3 when 2.3.3 already encrypts the emails.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Johnny Stevens
Beginner

Joined: 09/08/2005 23:05:43
Messages: 5
Offline

Which files do I need to restore to get this working again? Thanks!
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Just add.class.php

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Johnny Stevens
Beginner

Joined: 09/08/2005 23:05:43
Messages: 5
Offline

Hey Carbonize,

I restored my add.class.php file and I'm trying to re-test the guestbook. However, now I see the verification field with 7 characters and I type in all 7 (knowing that there should be 8, right?) and the system gives me the add.entry screen again with the following error:

The Image Verication code you supplied is incorrect.
Please enter the 8 characters that appear in the image.

There are still only 7 characters listed... can you let me know what you would need to see of my coding to help with this, please?

Thanks again,
Johnny
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

When you updated to 2.3.3 did you also update the template files?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Johnny Stevens
Beginner

Joined: 09/08/2005 23:05:43
Messages: 5
Offline

Hey Carbonize,

This was a fresh install, not an upgrade, but I did copy files over from a previously successful installation. After initializing the templates (i.e. moving the templates from the installation files onto my server), I think I'm all set.

Thanks,
Johnny
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum