Invitation System

Started by -Rock Lee-, February 24, 2020, 05:42:35 PM

Previous topic - Next topic

Diego Andrés

Then why would they need an invitation?
Sounds like you could use the referral mod instead.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dave J

#41
Quote from: Diego Andrés on September 30, 2022, 11:09:42 AMThen why would they need an invitation?
Sounds like you could use the referral mod instead.

The invitation mod makes it easy for existing members to invite friends and family to sign up.

I will look at the referral mod though, thanks for the pointer

Update: I found the referral mod and put it on my test site to have a look.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

tobyp

I think I was using this mod in a forum I am administering (but didn't actually originally set up).

There was a package there called Invitation System v1.0.6, and in on of the menus there were options to create a new invite where I could add in a name and email address, and it would then email that person with a link to register.

I've had to upgrade the forum to run PHP 8.2, and that mod no longer says its compatible.  I downloaded the new version of Invitation System 1.4.3 which does appear to be compatible, but when I try to install it, I get an error:

Invalid default value for 'member_id'
File: /webroot/s/o/soa1org2uk/primary/www/sm/Packages/temp/install.php
Line: 78

I've looked, and that looks like it is creating a SQL statement to create a table for the invites - that table is already there because the old version installed it.

Is there a way I can get around this, and get back to the functionality I used to have.  I now have some options for formatting emails, and one for generating keys, but don't seem to have a menu option for sending an email.  Where should I be seeing the invite option?

Diego Andrés

You need to manually add a default value for the column, in this case it would be 0.

SMF Tricks - Free & Premium Responsive Themes for SMF.

tobyp

To do that, do I need to unzip the installation package, modify it and then rezip it?  I guess I can't change it in the unzipped file in the temp directory on the server?

Diego Andrés

You can do it directly on your database using phpmyadmin in the smf_invites table.
The other option is the one you propose, but you'd first need to fully uninstall the mod so that the table can be created again.

SMF Tricks - Free & Premium Responsive Themes for SMF.

-Rock Lee-

@tobyp This week I'm a bit complicated with my work, accounts payable :P, but I'm going to look at the package as soon as I can. Also something fast is the solution of Diego.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

BeberGold

After reading the complete thread and the mod description, a point is not clear.
I want to create a forum which is invite only. The following mod exists https://custom.simplemachines.org/index.php?mod=4251 . However, the description does not say if this mod adds the option to enable registrations "by invite only" with a code. Would somebody have the answer to my question please?
For clarity, I am talking about an "invite only" option on the registration configuration of the forum (https://wiki.simplemachines.org/smf/SMF2.0:Registration).
Would somebody know please?
Thank you.

Dave J

Quote from: BeberGold on June 26, 2023, 12:56:59 AMAfter reading the complete thread and the mod description, a point is not clear.
I want to create a forum which is invite only. The following mod exists https://custom.simplemachines.org/index.php?mod=4251 . However, the description does not say if this mod adds the option to enable registrations "by invite only" with a code. Would somebody have the answer to my question please?
For clarity, I am talking about an "invite only" option on the registration configuration of the forum (https://wiki.simplemachines.org/smf/SMF2.0:Registration).
Would somebody know please?
Thank you.

Hi BeberGold,

That mod adds another layer to the SMF registration process.

Once you have that mod installed people can't come along and register unless they have a code to input during the registration process, so therefore only people who are invited by you or your existing members can join, the site is in theory closed to everyone without a code.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

BeberGold

Hi Dave, Thank you for the clarification. It is exactly what I want.

vicente127

Hello. I'm using this mod, but I was wondering if there's a way to block normal users to generate new invites and only receive them by 'X' days?

Advertisement: