News:

Wondering if this will always be free?  See why free is better.

Main Menu

Invite (registration through invitation)

Started by Sarke, March 03, 2007, 02:47:51 PM

Previous topic - Next topic

Sarke

Link to Mod

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.



If you're installing this on a custom theme, go to http://server.daniel15.com/smf/package.php, upload it there, and select "Only Theme edits".  It will show you what to do.


A few useful posts in this topic:

How to install the menu button manually on a custom theme

How to show top inviters in a TinyPortal block

My MODs          Please don't PM me for support, post in the appropriate topic.

Bigguy

I just installed this on a very heavily modified SMF 1.1.1 and it worked like a charm. We will see how it works for others. Thanks for this.

RoarinRow

No problems with installation, just when invitee accepted and clicked on link I found this in error log:

8: Undefined variable: invite_key
File: /forum/Sources/Register.php
Line: 340

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Bigguy

Was he able to register and all that without a problem. ??? Did the link do what it was supposed to. ???

trenchteam

sweet.  I'll be looking out for this thread.  Once the kinks are ironed out, I'll be sure to install.

RoarinRow

Quote from: Bigguy on March 03, 2007, 04:24:07 PM
Was he able to register and all that without a problem. ??? Did the link do what it was supposed to. ???

Yup, everything worked as it should, but that error in the log.

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Sarke

Quote from: RoarinRow on March 03, 2007, 04:06:00 PM
No problems with installation, just when invitee accepted and clicked on link I found this in error log:

8: Undefined variable: invite_key
File: /forum/Sources/Register.php
Line: 340

This should be fixed in 1.04, and it was caused when I renamed a variable and good ol' copy+paste.  It also made it not register who invited the member.

Thanks for letting me know.

My MODs          Please don't PM me for support, post in the appropriate topic.

littleone

I have over 50 mods and some supplement ones too (so 59 total) and this one installed like a charm and havent noticed a problem.  I even did a bit of tinkering with it to fit a bit better and all worked fantastically.  Everyone is pretty excited about this new forum feature.  Great Job!

Sarke

Quote from: littleone on March 04, 2007, 02:19:37 AM
Everyone is pretty excited about this new forum feature.  Great Job!

Thanks! :D


Quote from: littleone on March 04, 2007, 02:19:37 AM
I even did a bit of tinkering with it to fit a bit better

I'd be interested in what this was, and any ideas on how to improve the mod.

My MODs          Please don't PM me for support, post in the appropriate topic.

spiritanime

I installed this mod and I have found a problem. Even if the mod is not set on 'invite only' the message in the invite box says: 'This forum is set to only accept new registrations through invitations. You can invite someone new if you have invite credits by making a new key and sending them the link.' However you can register as normal anyway... Can I change this text, and if so how?

RoarinRow

Quote from: Sarke on March 04, 2007, 01:25:48 AM
Quote from: RoarinRow on March 03, 2007, 04:06:00 PM
No problems with installation, just when invitee accepted and clicked on link I found this in error log:

8: Undefined variable: invite_key
File: /forum/Sources/Register.php
Line: 340

This should be fixed in 1.04, and it was caused when I renamed a variable and good ol' copy+paste.  It also made it not register who invited the member.

Thanks for letting me know.

Great, thanks!  Looking forward to the upgrade   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

littleone

Quote from: Sarke on March 04, 2007, 04:36:56 AM
Quote from: littleone on March 04, 2007, 02:19:37 AM
Everyone is pretty excited about this new forum feature.  Great Job!

Thanks! :D


Quote from: littleone on March 04, 2007, 02:19:37 AM
I even did a bit of tinkering with it to fit a bit better

I'd be interested in what this was, and any ideas on how to improve the mod.

Oh I just change some of the modification.english txt.  You had it read that the forum was ONLY  invite only even if it wasnt.  So I just changed it to ready.  This forum ACCEPTS invites....blah blah. (make it more general, cause thats the first thing I was ask was if people could only join via invite because of the way it was written).

Then I also removed the column where it printed out the key next to the link.  I didnt see need to have it on the Inviters page, so that shrunk it up cause it made the page really long to scroll.  Thats all :P

Skipdawg

This is looking and sounding like a very cool Mod and great idea. Will watch a bit longer to see if there are any other issues to arise.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

Sarke

I missed something in 1.04 but it's now fixed and I uploaded it as 1.04b.  I suggest everyone updates it.  It still wasn't showing the inviter properly because I forgot to update the query with the correct variable.  I've tested it all again and it's fully functional.

My MODs          Please don't PM me for support, post in the appropriate topic.

Metal_GunBlade

Dude, I got an installation error... (SMF 1.1.2)

1.     Extract File     ./Sources/Invite.php     
2.    Extract File    ./Themes/default/Invite.template.php    
3.    Execute Code    db.php    
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
6.    Execute Modification    ./Sources/Register.php    Test successful
7.    Execute Modification    ./Sources/Profile.php    Test successful
8.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
9.    Execute Modification    ./Themes/default/Register.template.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

Could you please check it out for me?!
Life is ours to be spent, not to be saved

Sarke

Could you send me a copy of your Profile.template.php?

My MODs          Please don't PM me for support, post in the appropriate topic.

RoarinRow

Thanks Sarke!  If fixed my other reported issue.  I had a new one with a failed modification.english.php, but that was an easy fix   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Metal_GunBlade

Life is ours to be spent, not to be saved

Sarke

#18
Looks like you have the "Show Topics" mod installed, and it also changes the "Additional Information" area.  I'm changing the code so it'll work for the next version of my mod.

If you want to make it work now the simplest way would be to uninstall the "Show Topics" mod, install "Invite", and then install "Show Topics" again.  Looking at the code this should work.  The bad thing about doing it this way though is that if you want to do it this way and want to uninstall "Invite" you have to remember to uninstall "Show Topics" before uninstalling "Invite".


My MODs          Please don't PM me for support, post in the appropriate topic.

Metal_GunBlade

I think I'll wait for the next version...

Thanks
Life is ours to be spent, not to be saved

Advertisement: