ElkArte Community

Elk Development => Feature Discussion => Topic started by: Jorin on May 07, 2015, 02:13:10 am

Title: message on registration
Post by: Jorin on May 07, 2015, 02:13:10 am
I find it quite useful to inform new registered members of some important threads and posts. Are you planning to add the function to send new registered users a message?
Title: Re: message on registration
Post by: emanuele on May 07, 2015, 05:29:56 am
I have seen that used in several ways.
I'm basically neutral on it, I'm not a fan of PMs at registration, because I tend to think that giving a more engaging environment is better than any standard PM, but at the moment I'm not sure what "engaging" could mean. LOL
Title: Re: message on registration
Post by: radu81 on May 07, 2015, 08:30:11 am
I've been using the mod "PM to new members" in SMF, it was useful to give some information to our new members like:
- ask to introduce in dedicated  board
- ask to vote in our poll "whch car model do you own"
- informing about the member map
- follow us on social networks

In some forums this could be useful.
Title: Re: message on registration
Post by: Jorin on May 07, 2015, 08:35:01 am
Me too. Did use the SMF mod too for such informations.
Title: Re: message on registration
Post by: ahrasis on May 07, 2015, 03:03:22 pm
Agreed it is a good and useful thing to have but I am not so sure it should be part of default function.
Title: Re: message on registration
Post by: radu81 on May 07, 2015, 03:26:08 pm
Quote from: ahrasis – I am not so sure it should be part of default function.

agree, it is useful for some forums, not all forums, imo it's useless in the core, better to have it as addon ;)
Title: Re: message on registration
Post by: Jorin on May 21, 2015, 02:31:32 am
Who can write it?  ;)
Title: Re: message on registration
Post by: emanuele on May 21, 2015, 10:04:58 am
Anyone can write it. :P
It's rather simple, the attached one is a couple of hours work intermixed with chatting and so on.
Honestly is completely untested. And I mean it, I really just wrote it and tried out the admin interface because I hate smc_AutoSuggest, but everything else is just code I wrote, so it may be badly broken.

Test it before using live (unless you are brave enough, then be my guest :P).

ETA: package removed because developed on a wrong codebase (i.e. Elk 1.1)... sorry!
Title: Re: message on registration
Post by: Jorin on May 21, 2015, 04:17:05 pm
I really appreciate your enthusiasm and effort, but please... Don't feel yourself pushed to do all we want in no time! We can wait a few weeks or months  for a function or addon we wished. Would be better to surprise us with a 100 percent working addon then.  ;)

And please take your time for the real life.
Title: Re: message on registration
Post by: emanuele on May 21, 2015, 05:13:45 pm
Don't worry, I'm taking my time with the gallery! :P

Okay, the attached one should be working just fine and is probably 1.1 compatible. O:-)
I actually found some oddities in the sendpm function that I want to remove for 1.1. nods

ETA: you can select a number of members to be the servers or none. If none, then I think "guest" will be the nick of the sender.
If you specify more than one, the selection is at random.

ETA2: a partially technically interesting aspect of the addon (if I may be a little bold :P) is that the "main" hook (i.e. the one on the account activation that actually generates the PM), is not added at installation time, but is toggled on/off when the "master setting" is turned on/off, making the addon basically invisible if disabled.

ETA3: package removed due to a serious bug. O:-)
Title: Re: message on registration
Post by: meetdilip on May 21, 2015, 08:36:43 pm
Thanks @emanuele . Also @Jorin to bring this discussion here.
Title: Re: message on registration
Post by: Jorin on May 22, 2015, 01:39:55 am
Thanks, @emanuele for the fast work!  :)

But, where is the description shown? I don't see it...

Here's the german translation. You don't need it, I know.  ;)
Title: Re: message on registration
Post by: emanuele on May 22, 2015, 11:37:52 am
Here it is a version 0.0.2.
Hopefully working better than the previous. O:-)

And added the German translation from Jorin, thanks! :D
Title: Re: message on registration
Post by: Jorin on May 22, 2015, 01:44:02 pm
Sorry, but {membername} did not work in the message. But {forum_name} works. Does it have to be {member_name}? :-[
Title: Re: message on registration
Post by: emanuele on May 22, 2015, 01:59:43 pm
Yep... I should really stop changing my mind every two seconds... :'(