Author |
Message |
10/05/2005 16:13:27
|
mcpalmer
Beginner
Joined: 10/05/2005 16:08:06
Messages: 5
Offline
|
Hi, i've just installed guestbook 2.3.2 and its great! excellent code and excelent resource for learning more about php. But I've encountered a problem with displaying emails that users have input when signing the guest book. Emails are coming up like this -
info(at)blah(dot)co(dot)uk
- to the left of a record. How can i replace the bracket info with the actual symbols?
|
blah blah |
|
10/05/2005 16:31:05
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
It outputted like that so e-mail harvesting spam bots can't get your
visitors e-mail addresses. In other words it stop your visitors getting spam.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
12/05/2005 00:37:19
|
mcpalmer
Beginner
Joined: 10/05/2005 16:08:06
Messages: 5
Offline
|
ah ok, i didn't realise this. thats good then. Is this a new feature? An aquaintance has a guestbook set up with full email displayed - so does that mean he's got an old version of the guestbook? i'd better tell him
|
blah blah |
|
12/05/2005 02:59:05
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Yes, it was a new feature.
If you wish to change it back or whatever I think Carbonize knows how.
Also check the stickies in here and the support forum for info on other mods
and updating the guestbook in general.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
05/07/2005 20:26:04
|
wbmster24
Newbie
Joined: 03/07/2005 19:33:55
Messages: 3
Offline
|
it's there any way to make the email appear like with the old version.??
|
|
05/07/2005 21:50:45
|
JTD
Graduate
Joined: 08/05/2004 21:52:50
Messages: 529
Location: Arkansas
Offline
|
wbmster24 wrote:it's there any way to make the email appear like with the old version.??
Why would you want to. This prevents spam bots from getting them.
|
LINK-> Use Lazarus Guestbook |
|
05/07/2005 21:59:58
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Open lib/gb.class.php. Find and delete
open templates/email.php and change $row[email2] with $row[email]
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
08/08/2005 11:41:32
|
DonMaster
Newbie
Joined: 08/08/2005 11:32:59
Messages: 2
Offline
|
Hello Mr. Carbonize
I want to change the (dot) and the (at) for images of a [.] and a [@] this keep the e-mails safe of the spam
I hope you understand the idea (because I dont speak english very well) and make it for the next version. Or make a hack please.
DonMaster
|
|
08/08/2005 14:29:06
|
Tom4us
Beginner
Joined: 02/03/2004 14:30:44
Messages: 12
Location: kenya
Offline
|
Easy just edit the carbonised mod, just change few codes like down below
Open lib/gb.class.php. Find and edit it like down below
Code:
/* E-mail Hack */
$row['email2'] = str_replace("@", "[@]", $row['email']);
$row['email2'] = str_replace(".", "[.]", $row['email2']);
$row['email'] = "javascript:getEmail('".$this->db->encryptEmail("mailto:".$row['email'])."')";
open templates/email.php and change $row[email2] with $row[email]
I hope it worked the way you like it
|
|
08/08/2005 15:41:05
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
if you are using 2.3.2 or 2.3.3 simply open up gb.class.php and use find to locate the text you want to replace. If you mean in my mod then yes the idea is the same. Just replace as you need.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
08/08/2005 23:10:52
|
DonMaster
Newbie
Joined: 08/08/2005 11:32:59
Messages: 2
Offline
|
Wooo thank you I did it! :]
I made a change in the code where you said and it replace the @ for a picture
>> For Black, Brown, etc. backgrouds
and
>> For White, Yellow, Gray, etc. backgrouds
Just search the e-mail hack part in the code of /lib/gb.class.php and make the changes
/* E-mail Hack */
$row['email2'] = str_replace("@", "<img src='http://www.yoursite.com/images/arroba_white.gif'>", $row['email']);
$row['email'] = "javascript:getEmail('".$this->db->encryptEmail("mailto:".$row['email'])."')";
|
|
|