Google+ had a pretty simple invite system where one invite link contained 150 sign ups. As users signed up via the invite link, the number of available seats went down and eventually the invitation link died when 150 sign ups were reached. I am building a service and would like to provide all new users with a link w/ x amount of invites to share. How would one go about replicating this system in its simplest form w/ PHP.
How to create an invite mechanism like Google Plus - links w/ x number of invites
786 Views Asked by Andrew At
1
There are 1 best solutions below
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in GOOGLE-PLUS
- GooglePlus login for android implements on ionic error
- Ionic Angular GooglePlus : Invalid provider for the NgModule
- cordova-plugin-inappbrowser for ios Plugin doesn't support this project's cordova-ios version. cordova-ios: 5.1.1, failed version requirement: >=6.0.0
- Getting "Request had insufficient authentication scopes." 403 error code while importing contact from Gmail using ionic 5 & Angular 11
- Having problem with getting credentials for Google+ API
- Authentication with google plus on Ionic
- How to use google plus into a vuejs ionic project
- What are the WEB_APPLICATION_CLIENT_ID and GOOGLE_IOS_CLIENT_ID in the cordova gigya and cordova googleplus plugins
- Failed to install 'corodova-plugin-googleplus'
- Pass parameter to Identity Provider on Azure Ad B2C
- Not able to get email information from UserProfile info in SSO using Google with Oauth2 in Spring Application
- Unable to pass Email as context using Google Auth
- How to logout from google and facebook from same button in a website?
- Firebase FCM with google plus cordova plugin conflict - IOS
- how to keep google login session alive till user manually logout in ionic 4 + angular mobile app?
Related Questions in INVITE
- Error "cannot be invited" when trying to reinvite someone to a GitHub organisation
- Expected behavior on IP change for SIP when call is ringing
- How to obtain invite link from telegram if I'm already added to the group without asking the admin?
- Discord.py Bot Link returns No Scopes even though I added scopes
- Java Mail invite attachment issue with time zone
- How to set custom property on ics calendar invite
- How can I add No Response Required in an Oulook meeting invite?
- How can i send calendar invitaion and make sure it sit in gmail and outlook calendar using mailgun(node js)?
- Sending invitations to a list of people
- discord.py | I tried to make my discord bot send me a invite to specific servers it is connection to that are in a db but my current code doesn't work
- Why recipient launch a app by black screen?
- Log when an invite is created (discord.js)
- Resource conflicts and AppScript created Google Calendar events
- What is maximum waiting time for SIP INVITE method
- Code to send apps apk and a text messege to WhatsApp
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Create a database table: "invites".
The registeration link will contain the inviter's user_id: www.domain.com/join.php?invited_by=14530
Then ,in the join.php you'll have 2 functions. 1 - decrease the capacity of user_id = 14530 by one. 2 - insert a new row to "invites" with the new user_id and a default of 150 invites.
You'll need to have a condition as well! This condition will check if the inviter's capacity isn't zero. If so , the invited visitor won't be able to join.
The simplest way , I guess.