11
ghia
Re: Your email visible in Profile module
  • 2009/1/5 12:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Nice!
But I recommend to add a captcha to your mailform, otherwise some spammers will be gratefull for this open channel to your members.
Is it not more logical to heve the source language column before the target language column?
Is the senders mail address and username prefilled if you are logged on?
When a user registrates on the site can he choose more than one language pair or must he have multiple usernames?

12
trabis
Re: Your email visible in Profile module
  • 2009/1/5 13:41

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

deka87 wrote:
so now nobody can see users' email address and the only way to contact them is via the website. privacy is ok now =)


Ahah, well not really!
You just have to enter link directly in the url:
http://freelancersupport.com/modules/profile/contact.php?uid=1

Now take a good look at the html source

You should use the email as hidden, you better pass the user id and then get the user email on the contact.php.

13
trabis
Re: Your email visible in Profile module
  • 2009/1/5 13:57

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


just delete this part you added in case:form and add it in case:post

$member_handler =& xoops_gethandler('member');
    
$thisUser =& $member_handler->getUser($uid);
    
$email_author $thisUser->getVar('email''E');


then delete from the form
$form_contact->addElement(new XoopsFormHidden('email_author'$email_author));

14
deka87
Re: Your email visible in Profile module
  • 2009/1/5 14:06

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Quote:

ghia wrote:
Nice!
But I recommend to add a captcha to your mailform, otherwise some spammers will be gratefull for this open channel to your members.


unfortunately i don't know how to do this =( i've heard there is some captcha module maybe i'll have luck to implement it there.

Quote:

Is it not more logical to heve the source language column before the target language column?


yes, i know that but for some reason it goes first (although it goes 2nd in the registration form..)

Quote:

Is the senders mail address and username prefilled if you are logged on?

yes, it is.

Quote:

When a user registrates on the site can he choose more than one language pair or must he have multiple usernames?

unfortunately yes. i know i can add more lines like source_langauge2 and tartget_language2. but then it'd be such a mess on the user profile page. i'd be awesome if I could display the language pairs on the userinfo like:

Discplay name: ######
Email: ######
1st language pair: English(source_language1) - Dutch (target_language1)

2st language pair: English(source_language2) - Dutch (target_language2)

but I don't think it is possible.

Quote:


Ahah, well not really!
You just have to enter link directly in the url:
http://freelancersupport.com/modules/profile/contact.php?uid=1

Now take a good look at the html source

You should use the email as hidden, you better pass the user id and then get the user email on the contact.php.


i don't get it. it doesn't show the email when you put it directly in the url.
Mind anchors

15
ghia
Re: Your email visible in Profile module
  • 2009/1/5 15:37

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
i don't get it. it doesn't show the email when you put it directly in the url.
It is not in the visible text but if you look into the html source code of the popup window, it is possible to lookup the target email address, because it is encoded in a hidden field of the html form. And that is what spam harvesters and crawlers do, they read the html source!
Change your code as Trabis explained to encode only the user id in an hidden field and not the full email address.

16
deka87
Re: Your email visible in Profile module
  • 2009/1/6 6:46

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


nooow the privacy is ok =)
Mind anchors

Login

Who's Online

190 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 190


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits