Advertisement:

Author Topic: Invitation System  (Read 83478 times)

Offline ɔɔɔɔɔɔuɥoɾ

  • SMF Hero
  • ******
  • Posts: 2,742
  • Gender: Male
  • Community Support Helper SMF forums ftw!
Re: Invitation System
« Reply #80 on: July 28, 2011, 02:43:53 PM »
Quote
B - 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

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #81 on: July 28, 2011, 10:03:16 PM »
Quote
B - 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?
Quote
C- Why invitation email shows turkish characters as JAPANESE characters?

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #82 on: August 06, 2011, 09:55:23 PM »
Quote
A - 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?

Offline ɔɔɔɔɔɔuɥoɾ

  • SMF Hero
  • ******
  • Posts: 2,742
  • Gender: Male
  • Community Support Helper SMF forums ftw!
Re: Invitation System
« Reply #83 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.
« Last Edit: August 07, 2011, 07:09:49 PM by ɔɔɔɔɔɔuɥoɾ »

SMF 2.0 RC5

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

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #84 on: August 07, 2011, 07:44:33 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.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #85 on: August 12, 2011, 10:39:55 PM »
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.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #86 on: September 30, 2011, 01:32:27 AM »
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.

Offline Account Abandoned

  • Full Member
  • ***
  • Posts: 512
Re: Invitation System
« Reply #87 on: October 21, 2011, 11:41:42 PM »
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 :)

Offline CraftyLion

  • Jr. Member
  • **
  • Posts: 222
Re: Invitation System
« Reply #88 on: October 22, 2011, 07:52:48 AM »
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???

Offline Southernpaw

  • Newbie
  • *
  • Posts: 1
Re: Invitation System
« Reply #89 on: October 27, 2011, 04:57:35 AM »
Really would love 2.0.1 Compatibility...

Or is it already?

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #90 on: November 14, 2011, 03:04:33 PM »
I cant send invitations to the emails which has a dash (-) in it. Ex;   blabla-123214@hotmail.com
It says "The Email address you entered is invalid."

Can somebody fix this bug please?

Offline hadesflames

  • SMF Hero
  • ******
  • Posts: 2,773
  • Gender: Male
  • C++ Coder
Re: Invitation System
« Reply #91 on: November 18, 2011, 03:41:46 PM »
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.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #92 on: November 18, 2011, 04:18:35 PM »
$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 :)

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,073
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: Invitation System
« Reply #93 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@domain.com, email2@domain2.com, email3@domain3.com, email4@domain4.com

So for the NAME3 email2@domain2.com 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.
« Last Edit: November 18, 2011, 04:58:08 PM by PLAYBOY »

Offline hadesflames

  • SMF Hero
  • ******
  • Posts: 2,773
  • Gender: Male
  • C++ Coder
Re: Invitation System
« Reply #94 on: November 18, 2011, 09:39:43 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@domain.com, email2@domain2.com, email3@domain3.com, email4@domain4.com

So for the NAME3 email2@domain2.com 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 email3@domain3.com, 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.

Offline hadesflames

  • SMF Hero
  • ******
  • Posts: 2,773
  • Gender: Male
  • C++ Coder
Re: Invitation System
« Reply #95 on: November 18, 2011, 10:07:13 PM »
Re-download the mod for the new translations.

Offline krazytim

  • Semi-Newbie
  • *
  • Posts: 22
    • Tim Silva
Re: Invitation System
« Reply #96 on: November 25, 2011, 08:36:29 PM »
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

:)
« Last Edit: November 25, 2011, 08:51:30 PM by krazytim »

Offline hadesflames

  • SMF Hero
  • ******
  • Posts: 2,773
  • Gender: Male
  • C++ Coder
Re: Invitation System
« Reply #97 on: November 28, 2011, 03:29:31 PM »
That's rather odd. Does it work on the SMF Default theme?

Offline krazytim

  • Semi-Newbie
  • *
  • Posts: 22
    • Tim Silva
Re: Invitation System
« Reply #98 on: November 30, 2011, 02:09:02 PM »
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
« Last Edit: November 30, 2011, 02:21:25 PM by krazytim »

Offline hadesflames

  • SMF Hero
  • ******
  • Posts: 2,773
  • Gender: Male
  • C++ Coder
Re: Invitation System
« Reply #99 on: December 01, 2011, 04:01:07 AM »
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.