Page Index Toggle Pages: 1
Topic Tools
Normal Topic Email display to administrator (Read 3,088 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Email display to administrator
Reply #6 - Jun 27th, 2009 at 4:49pm
Post Tools
New
Display.pl
MemberList.pl

in CVS.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Email display to administrator
Reply #5 - Jun 27th, 2009 at 9:46am
Post Tools
Jet Li wrote on Jun 27th, 2009 at 9:00am:
he is not only dev here

Eh... yeah, sorry. Cheesy
  
Back to top
WWW  
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Email display to administrator
Reply #4 - Jun 27th, 2009 at 9:00am
Post Tools
cepheid wrote on Jun 26th, 2009 at 9:34pm:
@ deti, if you happen to see this thread:

he is not only dev here. Grin I can do it too. Tongue Tongue
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Email display to administrator
Reply #3 - Jun 26th, 2009 at 9:34pm
Post Tools
Oops, it's not Profile.pl that handles this.  If you only care about having this occur in the MemberList, then you need to change only MemberList.pl...

In MemberList.pl, find:
Code
Select All
                                <td align="center" class="windowbg2">~ . &enc_eMail(qq~<img src="$imagesdir/email.gif" border="0" alt="$img_txt{'69'}" title="$img_txt{'69'}" />~,${$uid.$user}{'email'},'','') . qq~</td> 


And replace with:
Code
Select All
                                <td align="center" class="windowbg2">~ . &enc_eMail(qq~<img src="$imagesdir/email.gif" border="0" alt="$img_txt{'69'}" title="~ . ($iamadmin ? ${$uid.$user}{'email'} : $img_txt{'69'}) . qq~" />~,${$uid.$user}{'email'},'','') . qq~</td> 



If you also want this changed in the threadview (i.e. the email buttons you see under people's posts, like the one under your own post), then you have to also change Display.pl...

In Display.pl, find:
Code
Select All
                        $template_email = $menusep . &enc_eMail($img{'email_sm'},$memail,'',''); 


And AFTER it, insert:
Code
Select All
                        if ($iamadmin) { $template_email =~ s~title=\\"$img_txt{'69'}\\"~title=\\"$memail\\"~; } 



These code changes only affect Admins, so regular users will not see the email address when hovering... only admins will.

@ deti, if you happen to see this thread: would you consider making these changes in SVN?  I think it actually is useful for admins to be able to quickly see email addresses, and these changes only affect admins, so there is no security risk.
« Last Edit: Jun 26th, 2009 at 9:36pm by cepheid »  
Back to top
WWW  
IP Logged
 
shooter56
Full Member
***
Offline



Posts: 104
Re: Email display to administrator
Reply #2 - Jun 26th, 2009 at 8:08pm
Post Tools
Thanks for your reply. I have used domain filters. Just seems like I'm always discovering new ones. Hovering over the email address is a nice quick way to check, since I usually get them in batches from the latest spam domain on the day.

How would I modify Profile.pl so that I can get my hover email back? Is it a single line modification, or something more complicated? Anything much more than a line or two I usually shy away from, since with my inexperience, I'm likely to do more harm than good!

Scott
  
Back to top
 
IP Logged
 
cepheid
Senior Member
****
Offline



Posts: 516
Re: Email display to administrator
Reply #1 - Jun 26th, 2009 at 7:17pm
Post Tools
There is no setting for this; you would have to modify Profile.pl.

Did you know you can ban signups from .ru?  It's in the Antispam Settings -> Email Domain Filter
  
Back to top
WWW  
IP Logged
 
shooter56
Full Member
***
Offline



Posts: 104
Email display to administrator
Jun 26th, 2009 at 4:04pm
Post Tools
I have a YaBB 2.1 forum. As the administrator, when I go to the Member List in the forum and hover my mouse over the email icon, a pop-up comes up that shows me the person's email address.

In my new YaBB 2.4 forum, when I hover over the email icon in the Member List, all I see is the word "EMAIL" - not the person's actually email address.

Is there a setting that would change this in YaBB 2.4, so that I could see the person's email address while hovering over the icon? This helps me spot those bogus signups from .ru and other nuisance domains.

Thanks for your help.

Scott


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top