Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
Thread Tools
  #1  
Old 9th December 2008, 14:03
Hardstylerz Hardstylerz is offline
Member
 
Join Date: Oct 2008
Sweden
Posts: 11
Exclamation Signup Problem =P
Hey..

I have a problem =P

When signup an accout, then your gonna write you wholy email.
But i want a dropdown menu that u can choose what email you have!

Like this: fidde_norberg [Dropdown menu]
|@hotmail.com]
|@spray.se]
|@yahoo.com]
|@live.se]

__________________________________________________ ______________

Here is a screenshot:

Click the image to open in full size.



And my question is: How do i get it to work?


Thanks for helping! =D
Reply With Quote
  #2  
Old 9th December 2008, 14:29
johnake's Avatar
johnake johnake is offline
Senior Member
 
Join Date: Dec 2007
Posts: 52
Default
in your signup.php file near:

PHP Code:
<tr valign=top><td align="right" class="heading">Email address:</td><td align=left><input type="text" size="40" name="email" /> 
append:
PHP Code:
<select name="maildomain"><option value="@gmail.com">@gmail.com</option><option value="@yahoo.com">@yahoo.com</option></select
you can use as many option values as you may.

in takesignup.php:

PHP Code:
if (!mkglobal("wantusername:wantpassword:passagain:email))
die(); 
replace with:
PHP Code:
if (!mkglobal("wantusername:wantpassword:passagain:email:maildomain))
die(); 
PHP Code:
if (!validemail($email))
    
bark("That doesn't look like a valid email address."); 
replace with:

PHP Code:
if (!validemail($email.$maildomain))
    
bark("That doesn't look like a valid email address."); 
replace:
PHP Code:
$a = (@mysql_fetch_row(@mysql_query("select count(*) from users where email='$email'"))) or die(mysql_error()); 
with:
PHP Code:
$a = (@mysql_fetch_row(@mysql_query("select count(*) from users where email='$email.$maildomain'"))) or die(mysql_error()); 
and in the big query:

INSERT INTO users (username, passhash, secret, editsecret, email....

where you see $email

replace it with $email.$domain.

And thats about it!

An alternative solution is to create a table like maildomain where you can put allowed domains.

Note: this is done with tbdev source. Didn't had the time of installing tstrike but the differences are not that great.

Cheers.
__________________
PHP Code:
class mySelf extends World
   
{
       public 
$health;
       private 
$friends;
       protected 
$love;
  
   public function 
__construct()
  {
       
$this->health 100;
       
$this->friends 2;
       
$this->love true;
  }
  protected function 
__love()
  { 
      
//has a bug... for the moment...
      //will fix it later.. until then:
      
sleep(15*365*24*3600);
  }


Last edited by johnake; 9th December 2008 at 14:35.
Reply With Quote
  #3  
Old 9th December 2008, 14:42
Hardstylerz Hardstylerz is offline
Member
 
Join Date: Oct 2008
Sweden
Posts: 11
Default Thanks! =D
Thanks! It worked!

Ps! Sorry for my bad english! Im swedish :/ =P


But in profile i only get "myemail" not "myemail@example.com"?

Last edited by Hardstylerz; 9th December 2008 at 14:51.
Reply With Quote
  #4  
Old 3rd February 2009, 06:47
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
So what would I do If I wanted to sign up on your site due to the fact you probly do not have my mail domain In your list?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
problem , signup


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto download and autor ratio on signup nemos Template Shares 1 9th December 2009 20:53
XzoneSource Signup Problem gbghacker Community Cafe 1 29th August 2009 14:01
[PMBT 2.x] Scroll Box On Signup Subzero Mods & Themes 0 19th February 2009 12:24
signup failed borked error NatashaRhea Torrent Strike 2 13th August 2008 19:09
Anti-double account signup mod ariss1986 Torrent Strike 0 26th June 2008 01:30



All times are GMT +2. The time now is 06:04. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.