Creating an invitation system


March 22nd, 2008 by Sonny Aman

Registered users can invite other to join gopsop. Initially all registered users can send 5 invitations. Invitation cannot be sent to a mail address where somebody already invited.

Invitation

Functional Points:

1. controller- gopsop: sendInvitation : success: mypage, failure: mypage

Entry:

Submitting the send invite form

Exit:

1. already invited
2. quota ends for invitor
3. Mail send fail
4. Invalid email address
5. not logged in
6. not from submitted form, rather direct url call.

Desc:

1.Generate a verification token
2.Send mail to the guest with the link and token i.e. http://gopsop.com/acceptInvitation/C-O-D-E
3.Save the token against the guest email and the user

2. controller- gopsop: acceptInvitation success: registration , failure: self

Entry :

1. Clicked the link from received mail
2. Pasted the link from browser location

Exit condition:

1. Invalid code and not null code

New lang:
$langs['invite_people']=’আমন্ত্রন জানান’;
$langs['email']=’ই-মেইল’;
$langs['send']=’যাও’;
$langs['invite_left']=’আরও %NUM% জনকে আমন্ত্রন করতে পারবেন’;
$langs['invite_sent']=’আমন্ত্রন পাঠানো হয়েছে’;
$langs['invite_fail']=’আমন্ত্রন পাঠানো যায়নি’;
$langs['invite_already']=’ইতোমধ্যে আমন্ত্রিত’;
$langs['invite_noleft']=’আপনার কোটা শেষ’;
$langs['invalid_email']=’ই-মেইল এড্রেসটি সঠিক নয়’;
$langs['sendmail_failed']=’ই-মেইল পাঠানো যায়নি’;
$langs['invite_correctcode']=’আমন্ত্রন গ্রহনের জন্য ধন্যবাদ’;
$langs['invite_incorrectcode']=’ওই মিয়া, আন্দাজে লোকেশন মারেন ক্যান ?!’;

These are the test purpose.. the texts should be changed to some interesting ones.

—————————————————–

This much sofar.. waiting for ur comments.

Cheers !

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • TwitThis

4 Responses to “Creating an invitation system”

  1. Omi Azad on March 23, 2008 3:28 am

    ই-মেইল -> ইমেইল
    আমন্ত্রন -> আমন্ত্রণ (if I’m not wrong)
    ইতোমধ্যে -> ইতিমধ্যে
    মিয়া -> মিঞা

  2. Hasin Hayder on March 23, 2008 4:08 pm

    Omi

    ইতোমধ্যে is correct

  3. arild on March 24, 2008 1:05 pm

    nice blog, good initiative. will follow what you are doing. good luck

  4. Omi Azad on March 24, 2008 1:29 pm

    @arild,
    Good to see you here and we are flattered that you like our ideas and want to follow them too. We are just collecting ideas from here and there and trying to make something good, which people can use. We want to make a one stop network, from people can do lots of things, apart from talking. Will share the ideas with everyone on the run.

    Once again, thanks for being with us.

Trackback URI | Comments RSS

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind