1
deka87
Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/7 9:20

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Is there a way to replace the users email in the user profile by an email link like CONTACT THIS USER or an envelop icon. Or even add there some email sending form? The last one would be just awesome.
Mind anchors

2
deka87
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/9 7:29

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


any help?
Mind anchors

3
deka87
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/9 18:09

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


no really any help?
Mind anchors

4
deka87
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/10 11:20

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


c'mon guys. im sure there something to do with it
Mind anchors

5
trabis
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/10 13:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


You just have to edit the template for userinfo and add 'mailto:' just before the email and/or add an image link.

6
deka87
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/10 16:18

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


yeah i came up with this idea but i haven't foudn any mention of email in the template. it's just a table with one variable for all the field names.
Mind anchors

7
trabis
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/10 19:14

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


So, are you using userinfo.php or the profile module?

8
deka87
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/10 19:36

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


the profile module
Mind anchors

9
trabis
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/10 20:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Close to the end off 'userinfo.php' you have:
$xoopsTpl->assign('email'$email);


Replace by
if ($email != '') {
    
$email '.$email.'">'.$email.'';
}
$xoopsTpl->assign('email'$email);

10
deka87
Re: Is there a way to replace the users email in the user profile by an email link (or envelop icon)
  • 2008/11/11 5:41

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


No, I don't have that line, I have this:

$categories[0]['fields'][] = array('title' => _PROFILE_MA_RANK'value' => $user_rankimage.$userrank['title']); $weights[0][] = 0; if ($thisUser->getVar('user_viewemail') == 1) { $email $thisUser->getVar('email''E'); } else { $email ""; if (is_object($xoopsUser)) { // All admins will be allowed to see emails, even those that are not allowed to edit users (I think it's ok like this) if ($xoopsUserIsAdmin || ($xoopsUser->getVar("uid") == $thisUser->getVar("uid"))) { $email = $thisUser->getVar('email', 'E'); } } } if ($email != "") { $categories[0]['fields'][] = array('title' => _PROFILE_MA_EMAIL, 'value' => $email); $weights[0][] = 0; } foreach (array_keys($cats) as $i) { $categories[$i] = $cats[$i];


i run XOOPS 2.2 and the default profile that goes for it
Mind anchors

Login

Who's Online

446 user(s) are online (317 user(s) are browsing Support Forums)


Members: 0


Guests: 446


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