Invitation System

Started by hadesflames, July 21, 2010, 10:50:15 PM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

Quote from: PLAYBOY on July 27, 2011, 01:13:12 PM
QuoteB - No because one invitation can only work once. Sending the same invite to different people would be useless.

No. I meant sending more than one invitation at once. Like a form you just put the email addresses and it will create and send the invitations automatically. I think that would be very useful.

Adding many email address into the form would send just the one invitation code to all those email addresses, rephrased, you should be asking about batch invites.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

PLAYBOY

Quote from: ɔɔɔɔɔɔuɥoɾ on July 28, 2011, 02:43:53 PM
Quote from: PLAYBOY on July 27, 2011, 01:13:12 PM
QuoteB - No because one invitation can only work once. Sending the same invite to different people would be useless.

No. I meant sending more than one invitation at once. Like a form you just put the email addresses and it will create and send the invitations automatically. I think that would be very useful.

Adding many email address into the form would send just the one invitation code to all those email addresses, rephrased, you should be asking about batch invites.

Sorry about the english. you are right. Batch invites feature.



Also does anybody have any idea about this japanese problem?
QuoteC- Why invitation email shows turkish characters as JAPANESE characters?

PLAYBOY

QuoteA - You would have to go to Subs.php and look for the invite button, then in visible or something like that, put instead of "true" something  that returns whether or not the user can view the area.

I have put 'show' => allowedTo('invite'), but it didint work. Tab didint show to anybody except the admin.

I need to hide this tab only from some membergroups. How can i do it?

ɔɔɔɔɔɔuɥoɾ

#83
You can either code up some permission based value to use instead of straight out true or false. (looks like you tried that already, but you need to add the permission as well, looks like you simply called out the permission, but it actually does not exist because you didn't add it to ManagePermissions.php

looks something like
ManagePermissions.php
'invitemod_permission' => array(false, 'allow_invite_button', 'allow_invite_button'),

Subs.php
$context['allow_invite_button'] = allowedTo('enable_invite_button');

'show' => $context['allow_invite_button'] && !empty ($modSettings['enable_invite_button']) ? true : false,

Then add the text in modifications.english.php and whatever other languages you use.

The above are not actually valid, you will have to look into the mod code yourself to get the proper values, this is just an example.


Or...

manually add the code, figure out the membergroup ID numbers then use "if" function to make true appear if a certain member id is viewing the page and false appear otherwise.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

PLAYBOY

Quote from: ɔɔɔɔɔɔuɥoɾ on August 07, 2011, 07:03:12 PM
You can either code up some permission based value to use instead of straight out true or false. (looks like you tried that already, but you need to add the permission as well, looks like you simply called out the permission, but it actually does not exist because you didn't add it to ManagePermissions.php

looks something like
ManagePermissions.php
'invitemod_permission' => array(false, 'allow_invite_button', 'allow_invite_button'),

Subs.php
$context['allow_invite_button'] = allowedTo('enable_invite_button');

'show' => $context['allow_invite_button'] && !empty ($modSettings['enable_invite_button']) ? true : false,

Then add the text in modifications.english.php and whatever other languages you use.

The above are not actually valid, you will have to look into the mod code yourself to get the proper values, this is just an example.


Or...

manually add the code, figure out the membergroup ID numbers then use "if" function to make true appear if a certain member id is viewing the page and false appear otherwise.


I wish this was included in the mod. Its just a pain.
But thank you very much for the solution though.

PLAYBOY

Is there anyway to know who sent the invitation to the "Newly registered member" ?
Like Invite mod used to have the "Invitation Sender" posted on the members profile which only permitted membergroups could see.

I would love tu use a feature like this. Its very beneficial.

PLAYBOY

Is there anyway to add a feature to this mod?
I dont want people to be able to register from with a different email address than the one the invitation has been sent to.

Account Abandoned

Are there plans to update this for 2.0.1? If so, this addon is perfect for the big secret forum competition I have planned for my admin forum :)

CraftyLion

This mod looks very interesting. However, every time I click on the download link, I end up with what appears to be an application document of 14KB instead of a zip folder. Should this be happening???

Southernpaw

Really would love 2.0.1 Compatibility...

Or is it already?

PLAYBOY

I cant send invitations to the emails which has a dash (-) in it. Ex;   [email protected]
It says "The Email address you entered is invalid."

Can somebody fix this bug please?

hadesflames

The mod has been updated to version 1.0.6

Changelog has been updated with the changes in the new version.

@PLAYBOY there are some new txt strings. If you wish to translate them, post them here. They are

$txt['invite_success'] = 'Success';
$txt['invite_email_separate'] = 'Separate multiple emails and names with a comma';
$txt['invite_key_batch_sent'] = 'An invite key was sent to';
$txt['invite_key_batch_not_sent'] = 'An invite key was not sent to';
$txt['invite_email_not_sent_reason'] = array(
   'because that email was invalid.',
   'because there was a problem sending your key, please contact your administrator.',
   'becuase you can not generate anymore keys for now.<br />' . $txt['invite_email_not_sent_spaces'] . 'Please contact your administrator to find out when you can generate more keys.',
);

For whatever reason, the download gives you a random file instead of the zip file. This seems to be a bug with the mod site for files with spaces in the name, as I JUST uploaded the new version file, and the same thing happens. You can just save the file, and add ".zip" to the end of it and it should work just fine, alternatively I have attached the mod to the original post, and you can download it from there as well.

PLAYBOY

$txt['invite_success'] = 'Basarili';
$txt['invite_email_separate'] = 'Birden cok emaillari virgul ile ayiriniz';
$txt['invite_key_batch_sent'] = 'Davetiye bu email adresine gonderildi';
$txt['invite_key_batch_not_sent'] = 'Davetiye bu adrese gonderileMEdi';
$txt['invite_email_not_sent_reason'] = array(
   'cunku email adresi gecerli degil.',
   'davetiyeyi gonderirken bir sorun cikti. Lutfen Admini haberdar ediniz..',
   'Cunku suan icin daha fazla davetiye gonderilemez.<br />' . $txt['invite_email_not_sent_spaces'] . 'Ne zaman daha cok davetiye gonderebileceginizi ogrenmek icin Admine danisiniz.',
);

Done.
Thx :)

PLAYBOY

#93
1- All Turkish language files gives error during uninstalling of 1.0.5
It says it cant find ?>

2- Uploaded file in smf site is not a zip file. It doesnt have a format.

3- How will they send multiple invitations at once?

NAME, NAME2, NAME3, NAME4
[email protected], [email protected], [email protected], [email protected]

So for the NAME3 [email protected] will be used right?

It would be lot more helpful if there were fields for each invitation just like the attachments. You can add more fields if you want to.

4- Message box is too wide, it goes off the frame.

5- It would be nice if the invitation keys were shorter.

hadesflames

Quote from: PLAYBOY on November 18, 2011, 04:39:11 PM
1- All Turkish language files gives error during uninstalling of 1.0.5
It says it cant find ?>

2- Uploaded file in smf site is not a zip file. It doesnt have a format.

3- How will they send multiple invitations at once?

NAME, NAME2, NAME3, NAME4
[email protected], [email protected], [email protected], [email protected]

So for the NAME3 [email protected] will be used right?

It would be lot more helpful if there were fields for each invitation just like the attachments. You can add more fields if you want to.

4- Message box is too wide, it goes off the frame.

5- It would be nice if the invitation keys were shorter.

1 - no idea.

2 - I posted about that in my last post...

3 - No...Name3 would use [email protected], also they must be separated by a comma, not a comma and a space. name,name2 is right. name, name2 is wrong, unless the second person's name is " name2" same with the emails.

4 - It depends on your screen size, it looks fine for me. It can be resized in any case.

5 - I'm not changing it.

hadesflames

Re-download the mod for the new translations.

krazytim

#96
Thanks for the awesome mod hades.

I do have one issue with it though. When I click on "Modify Member Group Settings" in the mod's settings, I get this error: "Unable to load the 'group_settings' template."

I was also getting the same error message as other before, so I did the chmod 777 trick and it fixed all of the the other pages. Now I just need to be able to view this screen: http://custom.simplemachines.org/mods/index.php?action=download;mod=2567;id=145157;image


*edit: I am also getting this error "Unable to load the 'email' template" when clicking on the "Send Key via Email" button.


Thanks in advanced!
-Tim

:)

hadesflames

That's rather odd. Does it work on the SMF Default theme?

krazytim

#98
That's a great idea, didn't try yet. My custom theme is based off of the default curve theme, and all of the file tests were successful, but it still could be an issue with my theme. I'll try that asap and report back. Thanks for the reply/support, I appreciate it. :)

*Edit - Had time to check this, and it does work for the default theme. I have no clue why it wouldn't work for my custom theme though. I'll try to manually input the parsed code instead of letting the installation handle it.

Until then, any advise or ideas as to the root of the problem could be helpful. Again, thanks a ton for taking the time to help out. :D

hadesflames

Thing is, the "email" template is in the Invite template file, which your custom theme shouldn't have. Since it doesn't have it, SMF should fall back to the default theme for that, so it should work. It works just fine on my custom theme. I would post a support topic to see if there's something wrong with SMF, along with contacting your theme's author to see what's going on with that.

Advertisement: