Forumlar / Cotonti / Extensions / Automatic Welcome PM after registration

123>>>

SunChase
#1 2009-12-30 18:12
I was wandering.Is there a plugin,that would send a PM with "Welcome.Please read the rules .." or ect. to newly registered users?
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
pieter
#2 2009-12-30 18:35
I thought there was a plugin like that for Seditio.

I looked it up: http://www.neocrome.net/page.php?id=2082
... can we help you ...
SunChase
#3 2009-12-30 19:11
hm.Strange.The plugin works,the data is sent to the user,but the PM_reminder function doesnt see that there is a new PM

Добавлено 16 Минут спустя:

solved it
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity

Bu konu SunChase tarafından düzenlendi(2009-12-30 19:27, 14 yıllar önce)
rayblo
#4 2009-12-30 20:36
Wondering in the lang file you have this

$L['plu_pmtext'] = "Hi [username],\n\nWelcome to my website...\n\nSee ya\nwebmaster";

Can this be set in a freetext slot? And call this up in the lang file?
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
SunChase
#5 2009-12-30 21:06
what do mean by "freetext slot" ?
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
5uper Mario
#6 2009-12-30 21:49
# SunChase : what do mean by "freetext slot" ?
In the config menu with the slots, down near the bottom there are open free text slots.
{PHP.cfg.freetext1 through 9}
SunChase
#7 2009-12-30 21:59
hm.You mean you want to edit the message from the admin pannel directly.
I think that this can be done.But it would be better to make its own slot for this.
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
Hataz
#8 2009-12-30 23:13
Hmm how do you edit what the welcome PM sends?
SunChase
#9 2009-12-30 23:18
/plugins/welcomepm/lang/welcomepm.en.lang.php
line 38:
$L['plu_pmtext']  = "Hi [username],\n\nWelcome to my website...\n\nSee ya\nwebmaster";
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
rayblo
#10 2009-12-31 04:48
# SunChase : hm.You mean you want to edit the message from the admin pannel directly.
I think that this can be done.But it would be better to make its own slot for this.

How can this be done quickly then?
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
SunChase
#11 2009-12-31 05:31
hm.Add a input field in the setup file.Something like:
[BEGIN_SED_EXTPLUGIN_CONFIG]
Message=08:string:::Additional pages fields for search, separated by commas. Example "page_extra1,page_extra2,page_key"
[END_SED_EXTPLUGIN_CONFIG]

and then in welcomepm.en.lang.php add something like this:
$L['plu_pmtext']  =  $Message

I really cant remember how exactly to do this.Coders please correct me
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
rayblo
#12 2010-01-01 03:19
almost workinig but shows only $Message
[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
5uper Mario
#13 2010-01-01 04:06
Done

I don't know what you did, but I finished it caused I had it planned in my head
Once I see how it could work, I never stop

Anywayz it works, sends a PM, the message is editable via the config of the plugin.
Pretty simple actually

Actually I ran into a problem:
The user gets the PM, but there is no notification.
Like normally it would say "1 New PM"
But it doesn't

$sql = sed_sql_query("INSERT INTO $db_pm ( pm_state) values ('0');

0 or 1 nither does the trick...
(ran into this problem with seditio too...)

Added 17 minutes later:

oh
Would you want to keep the way it is?
When the user gets the PM, due to Cotonti
if you set the name as webmaster(or any other name not the same as user id 1)
they get an error if they click it.

Cause Cotonti is looking for the username webmaster with the id # 1
unless that's your name you get a error.

So I could change that too....

Bu konu 5uper Mario tarafından düzenlendi(2010-01-01 04:36, 14 yıllar önce)
SunChase
#14 2010-01-01 19:12
there is another problem,which i think needs fixing.
Even if you set the 0 user id and Webmaster as referent,the user which will open this PM will still see the "Quick reply form" in which he would like to ask something or ect.

I think this could be done by a hack of the pm.inc.php where this form is formed by adding something like If "$row['fromusedid'] !=0" {...} ... cant look at the cotonti distibutive now,but i think the plot is understood
[url=http://ka13.orgfree.com]KA13[/url] - The essence of creativity
5uper Mario
#15 2010-01-01 19:44
Indeed

I (believe so) fixed this.

However, after the new user sends the message, the name (ex. webmaster) that you sent turns to your name. :p XD

I don't think its a big deal though

EDIT:
nvm
The sent box shows the true name :p
But other then that it shows webmaster and works


Just waiting on a solution for the PM notify

123>>>