MyBB Community Forums

Full Version: Require invitation code to register
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
None of the previous versions of the invitation system work or are actually required to register. I wish for admins/moderators to be able to generate invite codes that the people registering need to use to register.
(2020-04-08, 05:04 PM)heavenhvh Wrote: [ -> ]None of the previous versions of the invitation system work or are actually required to register.

How come? Surely fixing or modifying these plugins would be easier that creating new plugins.

Asking for a new plugin is the same as dropping all your options.
The invitation system working fine for me. Also i update the plugin and removed the limit for invitation code. Previous version has ability to change limit of uses and and can be used by multiple members so i changed it default to 1.
invitation plugin fails.


mybb 1.8.22

php 7.2
(2020-06-18, 08:31 PM)Testimo Wrote: [ -> ]invitation plugin fails.


mybb 1.8.22

php 7.2

If that is [Osx] Advanced Invitation System then the following might be what you need to change:

Find:
			$insert = array(
				"code" => $code,
				"creator" => $user['uid'],
				"dateline" => time()
			);

Replace:
			$insert = array(
				"code" => $code,
				"creator" => $user['uid'],
				"dateline" => time(),
				"used" => 0,
				"usedby" => 0,
			);
(2020-06-19, 01:52 PM)JordanMussi Wrote: [ -> ]
(2020-06-18, 08:31 PM)Testimo Wrote: [ -> ]invitation plugin fails.


mybb 1.8.22

php 7.2

If that is [Osx] Advanced Invitation System then the following might be what you need to change:

Find:
 $insert = array(
 "code" => $code,
 "creator" => $user['uid'],
 "dateline" => time()
 );

Replace:
 $insert = array(
 "code" => $code,
 "creator" => $user['uid'],
 "dateline" => time(),
 "used" => 0,
 "usedby" => 0,
 );





Sad not work
Could you be more descriptive?
I solved the problem worked when gzip was disabled. Thank you Smile