Page Index Toggle Pages: 1 [2] 3 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Distilled Email Domains beta 4 Y2 (Read 9038 times)
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Allowed Email Domains beta 1.0 Y2
Reply #15 - Nov 8th, 2005 at 8:16pm
Print Post  
Im in no hurry, as I am still testing Y2
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Distilled Email Domains beta 2.0 Y2
Reply #16 - Nov 9th, 2005 at 8:11pm
Print Post  
New name, new features, new beta.  See original post.
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Allowed Email Domains beta 1.0 Y2
Reply #17 - Nov 9th, 2005 at 8:34pm
Print Post  
CasRas wrote on Nov 8th, 2005 at 6:35pm:
Thanks, here a german language file
Code
Select All
#-----------------------------------------------------------------#
# Allowed_Email_Domains.lng (Allowed_Email_Domain txt definitions)#
# for YaBB 2									    #
# by Shawn Flynn								  #
#-----------------------------------------------------------------#
# Copyright: 2005 'Shawn Flynn' - All Rights Reserved			#
# Released: November 6, 2005							#
# e-mail:	  shawnflynn@louisville.edu				  #
#-----------------------------------------------------------------#
# Any redistribution of this script without the expressed written #
# consent of 'cd-profil as' is strictly prohibited. Copying any	    #
# of the code contained within this script and claiming it as	    #
# your own is also prohibited.							#
#-----------------------------------------------------------------#
# By using this script you agree to indemnify 'Shawn Flynn'		#
# from any liability that might arise from its use.			#
#-----------------------------------------------------------------#
# You may not remove any of these header notices.			#
#-----------------------------------------------------------------#

%Allowed_Email_Domains_txt = (
'1' => "Wer darf sich registrieren",
'2' => "Email Domains",
'3' => "Geben Sie die Domains ein, unter denen man sich registrieren darf. Lassen Sie das Feld leer um die Funktion abzuschalten. <br />Nur eine Domain pro Zeile. (z.B. yahoo.com)",
'4' => "erlaubte Email Domains",
'5' => "erlaubte Email Domains bearbeiten",
);

1; 



Would have added your lang pack but I added a few more entries this time.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 2.0 Y2
Reply #18 - Nov 10th, 2005 at 12:10am
Print Post  
GDay AP,

Just tried installing it using BoardMod - got an error - Step 9.

Tracked it down to an issue with Profile.pl

Its searching for the following

     $menucolors[1] = "titlebg";
     &ProfileMenu;

And yet I compare it with mine and it shows

     $menucolors[0] = "titlebg";
     &ProfileMenu;

I should point out Im now running Y2.1 with the latest from CVS - and I have installed 3 mods, one of which is yamms4

What does the above $menucolors variable do and can I safely change it ??

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 2.0 Y2
Reply #19 - Nov 10th, 2005 at 1:48am
Print Post  
Just tried this mod.

The logic works great and I can see it does ban domain names but it did something screwy to the user profile page. - added and extra column.
  

emaildom.jpg ( 63 KB | Downloads )
emaildom.jpg

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Distilled Email Domains beta 2.0 Y2
Reply #20 - Nov 10th, 2005 at 4:42am
Print Post  
tompocz wrote on Nov 10th, 2005 at 12:10am:
GDay AP,

Just tried installing it using BoardMod - got an error - Step 9.

Tracked it down to an issue with Profile.pl

Its searching for the following

     $menucolors[1] = "titlebg";
     &ProfileMenu;

And yet I compare it with mine and it shows

     $menucolors[0] = "titlebg";
     &ProfileMenu;

I should point out Im now running Y2.1 with the latest from CVS - and I have installed 3 mods, one of which is yamms4

What does the above $menucolors variable do and can I safely change it ??

cheers
Tom


Tom, first off, you found line 241 for the sub ModifyProfile in an stock version of Y2.1
(this mod modifies the sub ModifyProfileContacts).  I also updated this AM and developed everything else with it in mind.  So, it must be something with another mod.  It really doesn't matter, I was just using that line as a reference to place the code.

I went ahead and created a new mod file so maybe you won't catch that error again.  I also made a oops in the mod file (beta 2) and forgot to replace one more line.  THat's why the extra colum was there.

Anyway, beta 3 is up.  Just those little fixes and no new functionality.

Thanks for testing.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 3.0 Y2
Reply #21 - Nov 10th, 2005 at 4:58am
Print Post  
Thanks for that - will test it soon - its looking good - well done

Will let you know how it goes.

I have also modified it slight to include a more verbose error message to the user - I will post it  and show you the code onve I have tested beta 3

cheers and thanks
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 3.0 Y2
Reply #22 - Nov 10th, 2005 at 7:42am
Print Post  
Have come across only one prob

When you type in hotmail.com as a banned domain, it blocks the registration as it should.

If you type in hot555mail.com is still blocks it and its NOT in the banned list.
If you block email.com, it works - its in the banned list
If you then register with ozemail.com.au, it still blocks it and this is a valid isp email domain. - its not in the banned list.

Also, as per the image, I made it more user friendlt inresponse where the following was done. It also shows that it has "hotmail.com" in it, but wwasshotmail.com is NOT in the banned list.

in Register.pl

replaced :

Quote:
&fatal_error("$Distilled_Email_Domains_txt{'8'} $_.") if $member{'email'} =~ m/$_/i;


with:

Quote:
                 ($dummy, $memmaildom) = split(/\@/, $member{'email'},2);

                 &fatal_error_banned_email_domain_register("&nbsp;&nbsp;&nbsp;&nbsp;<b>UserID :</b> $member{'username'}<br>&nbsp;&nbsp;&nbsp;&nbsp;<b>Email Address :</b> $member{'email'}<p><center><b><span style=\"font-size:8pt ; weight:bold ; font-family:Arial,Helvetica,sans-serif ; color:#006600\">Sorry, Your Email Domain Address <font color=\"#ff0000\"><b>$memmaildom</b></font> is not permitted at <b><font color=\"#800000\">fish</font><font color=\"#0000ff\">SA</font><font color=\"#000000\">.com</font></b>.</span></b></center>") if $member{'email'} =~ m/$_/i;


Added to Subs.pl

Quote:
sub fatal_error_banned_email_domain_register {
     my $e = $_[0];
     my $v = $_[1];    # Verbose puts . $! with the error message
     $e .= "\n";
     if ($v) { $e .= $! . "\n"; }

     if ($elenable) {
           &fatal_error_logging($e);
     }
     &LoadIMs;
     $yymain .= qq~
<table border="0" width="80%" cellspacing="1" class="bordercolor" align="center" cellpadding="4">
 <tr>
   <td class="titlebg"><span class="text1"><b>$maintxt{'106'}</b></span></td>
 </tr><tr>
   <td class="windowbg"><br /><span style="font-size:8pt ; weight:bold ; font-family:Arial,Helvetica,sans-serif ; color:#000000">$e</span><br /><br /></td>
 </tr><tr>
     <td bgcolor="#eeeeee">
<span style="font-size:9pt ; font-family:Arial,Helvetica,sans-serif ; color:#ff0000"><b>Important Note :</b></span>
<br><span style="font-size:8pt ; font-family:Arial,Helvetica,sans-serif ; color:#000000">Please note that new users who wish to join <b><font color="#800000">F</font><font color="#0000ff">SA</font> Forum</b> using a free email address, <b>will not be allowed to succesfully register</b>, due to such email domains being classed as <b>Problematic Domains</b> to this site.</span>

<p><center><b><span style="font-size:8pt ; weight:bold ; font-family:Arial,Helvetica,sans-serif ; color:#006600">Sorry, Your Email Domain Address <font color="#ff0000"><b>$memmaildom</b></font> is not permitted at <b><font color="#800000">fish</font><font color="#0000ff">SA</font><font color="#000000">.com</font></b>.</span></b></center>

<p><span style="font-size:8pt ; font-family:Arial,Helvetica,sans-serif ; color:#000000">If however you believe this to be in error regarding <font color="#ff0000"><b>$memmaildom</b></font> at <b><font color="#800000">fish</font><font color="#0000ff">SA</font>.com</b>, then please contact the Forum Administrator by <a href="/email.php">using this Contact Form</a>, outlining the problem.</span>

</td></tr>
</table>
<center><br /><a class="text2aa" href="javascript:history.go(-1)">$maintxt{'193'}</a></center>
~;
     $yytitle = "$maintxt{'106'}";
     &template;
     exit;

}


I also did a similiar thing to Profile.pl, but with a slightly different message for users who are already registered.

Hope the above helps

cheers
Tom
  

12345.jpg ( 47 KB | Downloads )
12345.jpg

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
CasRas
Junior Member
**
Offline



Posts: 98
Location: Terra, the blue planet
Joined: Jun 7th, 2005
Gender: Male
Re: Allowed Email Domains beta 1.0 Y2
Reply #23 - Nov 10th, 2005 at 7:43am
Print Post  
astropilot wrote on Nov 9th, 2005 at 8:34pm:
Would have added your lang pack but I added a few more entries this time.

ap


First Post is updated, Thanks
  

See Ya CasRas
aka RasCas
aka Vip2002
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 3.0 Y2
Reply #24 - Nov 10th, 2005 at 8:07am
Print Post  
Found some old Y1.3 code from my site.

if($memmaildom =~ m/\Q$chkmaildom\E/ig) { $domcheck = 1; } --------> problem as same as here

if($memmaildom =~ m/^\Q$chkmaildom\E$/ig) { $domcheck = 1; } --------> the fix to it

Came across a solution some time ago with Y1.3 where I had a similiar prob with the above code.

The difference I found is the "carrot" symbol of "^"

Is this correct ?

PS Im no perl expert . !!

cheers
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Distilled Email Domains beta 3.0 Y2
Reply #25 - Nov 10th, 2005 at 2:33pm
Print Post  
Tom,

First off,, your a great tester.  I really appreciate all your time.  Anyway, I can make it more specifc no problem, but once again the biggest problem I face is time.  I will be away a couple of days, but if the hotel has wifi, I will post beta 4.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Distilled Email Domains beta 3.0 Y2
Reply #26 - Nov 10th, 2005 at 2:58pm
Print Post  
CasRas thanks.

Tom, I couldn't replicate the hot555mail.com thing.  The other issue, I ddn't try, but know that it probably does it as you say.  Hotel has wifi so tonight hopefully  beta 4.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 3.0 Y2
Reply #27 - Nov 10th, 2005 at 3:30pm
Print Post  
what about qwertyhotmail.com ?? I await your Beta4, but take your time, as Im working on CVS stuff - have an issue in deleting posts and has something to do with HiRes.pm

enjoy your hotel !!  Grin and thanks for the compliments

Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Distilled Email Domains beta 4 Y2
Reply #28 - Nov 10th, 2005 at 11:30pm
Print Post  
beta 4 up.
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
tompocz
Full Member
***
Offline


The WORST day fishing
is better than the BEST
day

Posts: 124
Location: Adelaide
Joined: Dec 27th, 2002
Gender: Male
Re: Distilled Email Domains beta 4 Y2
Reply #29 - Nov 18th, 2005 at 11:04am
Print Post  
Just finsihed testing this and it works great - will be implementing it on my prod board this saturday, as I migrate !!

cheers and many thanks
Tom
  

The WORST day fishing is better than the BEST day working !
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 
Send TopicPrint