vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Invitation for Registration (https://vborg.vbsupport.ru/showthread.php?t=81527)

Lizard King 05-15-2005 05:37 PM

Invitation for Registration
 
Currently I disabled registration in my boards but my members are asking if there can a mod for inviting new members. Also I am thinking this I want my members to be able to invite members my sending e-mail to them. Is there a way to make an invitation mod. I still want to keep registration disabled but if someone is invited by a member then he will be able to register.

Skyline_GT 05-16-2005 07:00 AM

yea. I want this add on too.

artonex 05-16-2005 10:08 AM

yeah would be a kool hack, i would love something like this :D

Dark s.s. Trunk 05-16-2005 11:50 AM

i'll get started on it right away

Essamz 05-17-2005 12:10 AM

this idea remainds me by gmail's Invitations :D

Dark s.s. Trunk 05-18-2005 01:02 PM

lol
you should see the installer! I am making JAVA version installers....NO MANUAL CODING AT ALL

JUST upload and click....lol

nexialys 05-18-2005 01:22 PM

same as any Invite System, simple to have. you need a url that activate the permission to register... like register.php?invite=yes?referrerid=XX

so when people visit the register.php, instead of simply hitting the vboptions to activate registration, they activate it by this simple url.

SOOO SIMPLE!

EDIT: here is the code:

in register.php FIND:
PHP Code:

if (empty($_REQUEST['do']) AND empty($_REQUEST['a'])) 

just BEFORE, add:
PHP Code:

if($_REQUEST['invite'] == 'yes'$vboptions['allowregistration'] = 1

now, you simply have to create an invite url like this:
Code:

register.php?invite=yes?referrerid=$bbuserinfo[userid]
that's all...

you can also join with this hack: Refer Friend from Erwin: https://vborg.vbsupport.ru/showthread.php?t=59708 and simply change the URL in the message to the one i just gave here!

Lizard King 05-23-2005 10:38 AM

Thanks nexialys

spooler 05-24-2005 04:50 AM

Just my opinion here..

A url like this
Quote:

register.php?invite=yes?referrerid=$bbuserinfo[userid]
can easily be made by any 1...
Quote:

register.php?invite=yes?referrerid=1
The above url will work and will most prob be invited by admin himself:D (or who so ever has id =1)

So basically any random no. between 1 and total members of board will work.

Just my opinion :p:

So basically u need to have another table named invitee with fields ( random number(unique), timestamp)

When u generate invite url, add new row in the table and your invite url will be register.php?invite=random number

In register.php make a query to see if tht random number exists. If it does allow else kick him away:D

Do remeber to clear the row once used.
Also add to cron to clear rows in invite table with timestamp older than 1 day or whtever

Adrian Schneider 05-24-2005 04:57 AM

Couldn't this be bypassed/abused pretty easily? They can just enter 1 or look at your site and pick a user out. If you are serious about it you should prevent them from seeing your board.


All times are GMT. The time now is 04:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01194 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete