SMFHacks.com

Modifications/Themes => Modifications Talk => Latest Mods => Topic started by: Sarke on January 31, 2007, 12:09:50 am

Title: [Mod] Invite (registration through invitation)
Post by: Sarke on January 31, 2007, 12:09:50 am
Invite (registration through invitation)
SMF Version: 1.1.1, 1.1.2

Description: This MOD adds an invite system to SMF.  Users get invite credits which they can use to invite people to the forum, and showing who invited whom.  The forum can also be set to only accept registrations through invitations, meaning that you need to be invited to join.

Admin options are in "Features and Options" -> "Invite", and "Manage Permissions".

As always, I'm open to feedback and improvement ideas.

Link to Mod (http://www.smfhacks.com/hacks/Invite-registration-through-invitation.html)

Screenshots here (http://custom.simplemachines.org/mods/index.php?mod=653)
Title: Re: [Mod] Invite (registration through invitation)
Post by: Jump1979man on February 01, 2007, 05:03:33 pm
I will give it a try.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Jump1979man on February 01, 2007, 05:06:49 pm
seems to install fine but get this error when clicking the invite link in the admin area...

ModSettings.php on line 312
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 02, 2007, 01:34:44 am
Can you send me a copy of your ModSettings.php?
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 02, 2007, 02:06:04 am
It might have been a packaging error, try downloading it again.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 02, 2007, 03:33:31 am
It was a packaging error that's caused by a bug in SMF (when using folders in the package).  I've uploaded the package zipped in a different way so it will work, and I've reported the error (and a fix :P) to SMF.
Title: Re: [Mod] Invite (registration through invitation)
Post by: RWL on February 02, 2007, 12:16:06 pm
Hi guys,

Installed like a dream!

Neat mod but find the concept of cutting and pasting the link into the email a little clunky.

How about 10x2  fields for names/email addresses. Once completed and submitted it emails out the ten (or less, dependent on how many fields are completed) regsitration keys?

I would simply call the mod 'Invite a Friend' ;)

....now that would be a cool mod ...and possibly one of the most popular mods of all time  8) The invite link needs to be on the main menu though as well.

Thanks,

Wilsy.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Jump1979man on February 02, 2007, 02:21:25 pm
installs good now....and yes to integrate the email function into the mod itself would be very nice!
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 02, 2007, 02:32:00 pm
Yeah, I always had email in mind, I just wanted to get it working first.  And then there's the whole idea of "wasting" an invite because it ends up in spam folders, and people who want to send links over MSN etc.. 

The main purpose of the MOD is to only allow invited people into the forum, but it can be used as a "tell a friend" MOD as well.  An email option will be in the works.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Jump1979man on February 02, 2007, 02:57:11 pm
this mod actually doesnt work.....when I email myself the link and click it goes to the registration screen...

when I enter all the info it then says registration is by invite only.....

somethings not right.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 02, 2007, 03:01:41 pm
Strange, I'm getting the same thing.  I must have changed something after I tested it because it was working fine.  Give me a moment...
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 02, 2007, 03:25:05 pm
Ok, 1.01 up now with a couple of bug fixes.  Should work ok now.  * knock on wood * :P

The bug you mention Jump1979man was a copy+paste error. ;)  Thanks for letting me know.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Jump1979man on February 02, 2007, 04:29:58 pm
ok, it works now.  Integrating an automatic email like the smfhacks contact page would be awesome for this.
Title: Re: [Mod] Invite (registration through invitation)
Post by: gilipter on February 20, 2007, 09:09:53 am
Are you still updating this mod? Is this mod working with 1.1.2? Please post some screenshots if you can.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 20, 2007, 08:03:49 pm
Yes, but I haven't really had a need to update it.  It works with 1.1.2.

There are screenshots here:
http://custom.simplemachines.org/mods/index.php?mod=653
Title: Re: [Mod] Invite (registration through invitation)
Post by: gilipter on February 21, 2007, 05:06:09 pm
There are no screenshots on the SMF site (broken links) and it says Mod not approved. Could you please post some screens here. Thanks.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 21, 2007, 07:22:31 pm
Screenshots posted in first post.
Title: Re: [Mod] Invite (registration through invitation)
Post by: gilipter on February 21, 2007, 09:06:36 pm
Thanks for the efforts Sarke, you're da man. I will give this mod a try one of these days, I will let you know of the results.
Title: Re: [Mod] Invite (registration through invitation)
Post by: benjineer on February 23, 2007, 03:36:34 pm
Hey Sarke,
This is a great mod, but I have one question.

Can we somehow limit the invites to users based on post count groups or something related to registration date?  I'd like to limit invites to more seasoned users.

Thanks
Benji
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on February 23, 2007, 06:31:12 pm
Can we somehow limit the invites to users based on post count groups or something related to registration date?  I'd like to limit invites to more seasoned users.
The permissions are done in the group permissions, so you set which group can invite.  If you don't have your "more seasoned users" in a specific group, you can turn on "Enable permissions for post count based groups" set some of the post groups to allow invitations.
Title: Re: [Mod] Invite (registration through invitation)
Post by: benjineer on February 24, 2007, 12:31:04 am
That should work. 
Thanks
Title: Re: [Mod] Invite (registration through invitation)
Post by: gilipter on March 01, 2007, 07:53:01 am
Hello Sarke,
I am installing this on another theme (not the default) and nothing shows up. What should I do to get this mod installed on other themes?
Thanks
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 01, 2007, 07:56:28 am
Go to http://server.daniel15.com/smf/package.php, upload it there, and select "Only Theme edits".  It will show you what to do.
Title: Re: [Mod] Invite (registration through invitation)
Post by: gilipter on March 01, 2007, 08:25:51 am
Thanks for the link, Sarke. That wasn't the problem, I cleared the cache, and it appeared. Works like a charm.
I found a bug, though.

1. Invite someone
2. Get the invitee to register
3. Do something as the new user
4. Delete the new user
5. Go to the Invitees screen of the original inviter

It displays:

Date registered: 01 January, 1970, 01:00 am
blank username, blank posts

Hope this helps, will do some more testing.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 01, 2007, 08:28:09 am
Ah, I hadn't considered that.  I'll look into it, thanks.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 02, 2007, 12:22:24 am
New version up now.

1.03 (Mar 01, 2007)
- Added input field on the registration "invitation only" page so the invite key can be entered manually.
- Fixed undefined index notice in Register.php when invite_key is not set.
- Fixed bug that displayed deleted members in the invitees list.
Title: Re: [Mod] Invite (registration through invitation)
Post by: MinasC on March 02, 2007, 04:43:05 am
that's cool , thnx man !!!  ;)
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 02, 2007, 04:44:35 am
You're welcome.   :)
Title: Intergration with an email system?
Post by: ChakiChu on March 02, 2007, 03:48:29 pm
Hi, first I'd like to thank you for this mod, its really cool :)

I was looking at this mod, and was wondering, is there any way that you could inergrate this with a default email?

For example...

Hello (name)!

(Inviter) has invited you to join (forum name)! Click (here) to join!

Where name (and email) would be given by the user, and the link, forum name, and the name of the inviter would be put in automatically.

I'd be willing to help out, its just my PHP is really limited so some parts I don't really understand...

Thanks, it'd be really cool if you consider this :)
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 03, 2007, 01:05:35 pm
New version up now.

1.03 (Mar 01, 2007)
- Added input field on the registration "invitation only" page so the invite key can be entered manually.
- Fixed undefined index notice in Register.php when invite_key is not set.
- Fixed bug that displayed deleted members in the invitees list.

Hello!

Where can i download this great mod? I can't to download from simplemachines.org. :(
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 03, 2007, 01:06:48 pm
Hello!

Where can download this great mod? I cant to download from simplemachines.org. :(

Link to Mod (http://www.smfhacks.com/hacks/Invite-registration-through-invitation.html)
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 03, 2007, 01:59:13 pm
Hello!

Where can download this great mod? I cant to download from simplemachines.org. :(

Link to Mod (http://www.smfhacks.com/hacks/Invite-registration-through-invitation.html)

THANK YOU!!!
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 03, 2007, 05:31:26 pm
I have a little problem. I send the invite for somebody. He is write the register page, but if he click to the next, the page is show this:

"An Error Has Occurred!
Sorry, registration is by invitation only.

If you have a valid invite key enter it below:"

What can i do? I reinstalled the smf, but again do this... why?  :-[ :-[
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 04, 2007, 07:36:28 am
I found the first problem. It was in my own templates Register.template.php, i made it. But if i invite somebody, the key what i send for him, dont locked. I dont see him in the invitees, and he doesent see who invited him.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 04, 2007, 10:58:41 pm
I found the first problem. It was in my own templates Register.template.php, i made it. But if i invite somebody, the key what i send for him, dont locked. I dont see him in the invitees, and he doesent see who invited him.

This is now fixed:

1.04 (Mar 03, 2007)
- Fixed bug that didn't set the inviter and caused a undefined variable notice (caused by renaming a variable and good ol' copy+paste).


EDIT:  This wasn't properly fixed, so I uploaded a new package called 1.04b which has it fixed correctly.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 05, 2007, 12:20:45 am
I have a little problem. I send the invite for somebody. He is write the register page, but if he click to the next, the page is show this:

"An Error Has Occurred!
Sorry, registration is by invitation only.

If you have a valid invite key enter it below:"

What can i do? I reinstalled the smf, but again do this... why?  :-[ :-[


Try installing the latest version of the mod (1.04), and if that doesn't help let me know which other mods you have as well as if you've enabled "Only allow registrations through invitation"
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 05, 2007, 01:58:07 am
It is PERFECT now! Thank you SARKE!!!
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 05, 2007, 01:58:49 am
np.   ;)
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 05, 2007, 02:27:34 am
Do you need a hungarian translate for this perfect mod? I translated it.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 05, 2007, 02:34:31 am
Hehe, personally I don't but thanks for the offer.  Someone else might so feel free to post it here if you wish. 
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 05, 2007, 02:52:08 am
Ok! Here is the hungarian translate file, if need for somebody... :D
Title: Re: [Mod] Invite (registration through invitation)
Post by: gilipter on March 05, 2007, 10:10:51 am
One quick question.. I have the older version installed, how do I install the newer?
Thanks
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 05, 2007, 11:18:47 am
Uninstall and delete the old one and then install the new one.  All the keys and settings will still be there.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 05, 2007, 05:58:22 pm
Version 1.06 is up, with a few new features, like having it's own menu link and page, as well as a mailing feature.

It hasn't been fully tested yet so stick with 1.05 (still up on SMF's website) if you must have it working 100%.  Please let me know of any errors in 1.06.
Title: Re: [Mod] Invite (registration through invitation)
Post by: CsabiDuke on March 07, 2007, 07:05:50 am
The 1.07 is perfect! Just dont compatible with some template, but just can to programing a bit, and sometines need to use the Photoshop.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 07, 2007, 01:25:10 pm
1.08 is the latest version, and I suggest everyone upgrade since it has some more bug fixes.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 08, 2007, 05:43:04 am
New update, 1.09.  Basically I just moved the invitees list to the same page as the members list is (so it all looks neat and integrated), and I added a total in the profile page (for those keeping score :P).
Title: Re: [Mod] Invite (registration through invitation)
Post by: GeekIncSupport on March 21, 2007, 12:56:05 am
Sarke I just sent you a private message  in regards to your invitation system works awesome I found a few bugs though several of my users have sent there invitation link out and it has not been showing up as them refering them , Also I would like to reccomend a few suggestions
1. Log all invitations + IP's
2.The ability to tally up points maybe show somthing in a tab that shows how many people referd who? instead of just in the profiles so I dont have to go and look at each profile to see who got the most like
Frog - Has 1 refferal poinit
Bob - has 300 referal points
and lets say you click 300 it goes to a page of all the people they referd
3.Thats all I can think of as of now looks awesome
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on March 21, 2007, 01:18:43 am
Which version of the mod are you using?

About the bug, the most likely thing that's happening is that that people aren't using the link when registering but instead they're just going manually to the website by typing the address, or they might remove the inviter tag from the URL.  There's nothing I or you can really do about preventing this, but some workarounds would be to manually enter the inviters in the MySQL table or setting the forum to invitation only.

1.  Log the IPs when?

2. There are already stats included on the stats page. One table for total invitees, and one for total posts by invitees.

3. You're welcome.  :)
Title: Re: [Mod] Invite (registration through invitation)
Post by: pacobenn on April 18, 2007, 02:34:14 pm
If i install the mod at the latest step i get this error?

Code: [Select]
Database Error
You have an error in your SQL syntax near 'character set utf8 NOT NULL default '1',
PRIMARY KEY (ID_INVITE),
KEY ID_' at line 6
File: /ftp/pub/digital.wz/Packages/temp/db.php
Line: 16 


And failed to install then.

Somebody has a solution?

Thanks
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on April 18, 2007, 02:38:44 pm
Looks like your DB has a problem with the character set being set.  Try using the new one I uploaded.
Title: Re: [Mod] Invite (registration through invitation)
Post by: pacobenn on April 18, 2007, 03:29:59 pm
OK, that did the trick.

But after i manually removed all the files left by the previous install file.

Solved  ;D
Title: Re: [Mod] Invite (registration through invitation)
Post by: mag on April 28, 2007, 02:12:16 pm
hi Sarke. I want make key without choosing "Only allow registrations through invitation". Could you help me?
 ???
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on April 28, 2007, 10:29:28 pm
hi Sarke. I want make key without choosing "Only allow registrations through invitation". Could you help me?
 ???

Why would you want that?
Title: Re: [Mod] Invite (registration through invitation)
Post by: mag on April 29, 2007, 11:13:13 am
because when I send someone invitation link hi can use link more than one and send it to other one.
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on April 29, 2007, 01:42:02 pm
because when I send someone invitation link hi can use link more than one and send it to other one.

Yes, but the registration is open to everyone anyways.  The person who send the link is more or less responsible for all those people being signed up.
Title: Re: [Mod] Invite (registration through invitation)
Post by: mag on April 29, 2007, 02:27:12 pm
no Sarke. registration isn't open to everyone. the user want to register activate by Admin permission. ;)
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on April 30, 2007, 11:33:23 pm
Then just enable "Only allow registrations through invitation".  That's what it sounds like you want.  If not, exaplin what you want to do.
Title: Re: [Mod] Invite (registration through invitation)
Post by: mag on May 02, 2007, 03:04:30 am
 I want make key without choosing "Only allow registrations through invitation". :-\
Title: Re: [Mod] Invite (registration through invitation)
Post by: Sarke on May 02, 2007, 06:41:41 pm
I want make key without choosing "Only allow registrations through invitation". :-\

For what purpose?  If you only want invited people to register then you enable that option, if not then why do you need a key?
Title: Re: [Mod] Invite (registration through invitation)
Post by: Crizzyjae on May 03, 2007, 12:37:20 am
I wish i can download it...but this laptop....isn't mine....hay... :'( :'(
Title: Re: [Mod] Invite (registration through invitation)
Post by: mag on June 29, 2007, 02:24:59 am
Hi. we have a forum for a little school. the student of school have a card with secret word. who one register in our forum must put the secret word in special field and other one must invite by the user of forum.If I chose registration by key the registration from general method disabled and if I chose it without key there is only the one registration link that everyone can send it to other or use it more than one time. but in our forum the inviter is responsible for invited user.
I want make key without choosing "Only allow registrations through invitation". 
could u help me? ;)