Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2010-01-27 03:12:30

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Welcome e-Mail / PM

Is there anyway to have a welcome message be sent of PM (or maybe e-Mail) to a new member?

Offline

#2 2010-01-30 16:12:33

Koos
Member
Registered: 2008-05-09
Posts: 106
Website

Offline

#3 2010-01-30 19:29:46

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Re: Welcome e-Mail / PM

Hey Koos,

Thanks for the link.

The mod, however, sends a PM with the user/sender field blank. And, is there anyway to have those values editable via a plug-in?

Thank! smile

Offline

#4 2010-01-30 20:48:58

François
Member
From: Lyon (France)
Registered: 2009-09-01
Posts: 197
Website

Re: Welcome e-Mail / PM

In register.php, find

$message = 'Welcome to forum message.';

Add after

$admin_username = 'xSDMx';

Sorry for my English, I'm French

Offline

#5 2010-01-30 21:09:01

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Re: Welcome e-Mail / PM

Hello François,

Thanks for the help! I'll look into the editable values, I assume it's the same as with any other plug-in.

Offline

#6 2010-01-31 03:25:49

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Re: Welcome e-Mail / PM

Is sending a Mass PM possible via a plug-in?

Offline

#7 2010-01-31 20:16:19

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Re: Welcome e-Mail / PM

Sorry for the triple post, but, François, that did not work.

Offline

#8 2010-02-01 14:22:14

Koos
Member
Registered: 2008-05-09
Posts: 106
Website

Re: Welcome e-Mail / PM

Do this instead:

In register.php, find:

    // Get admin username
    $db->query('SELECT username FROM '.$db->prefix.'users WHERE id=2') or error('Unable to get username', __FILE__, __LINE__, $db->error());
    $admin_username = $db->result($result);

Replace with:

    $admin_username = 'xSDMx';
xSDMx wrote:

Is sending a Mass PM possible via a plug-in?

This might work for you:
http://punbb.informer.com/forums/post/87006/#p87006

Then just save the file AP_Mass_PM.php in the 'plugins' directory. You would then be able to access the 'Mass PM' plugin under the plugins menu in the admin control panel.

Offline

#9 2010-02-03 23:54:02

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Re: Welcome e-Mail / PM

Hmm, thanks.

Is there anyway to make all three fields editable via a plug-in, through the db? I see that I need to add an option to the database, but what after then?

Okay, quick question.

How do I use "htmlspecialchars" on these fields? The text I entered won't parse with quotation marks or apostrophes (of course).

And, how do I link this all to a language file?

Thanks!

Last edited by xSDMx (2010-02-07 23:42:47)

Offline

#10 2010-02-07 23:30:05

xSDMx
Member
Registered: 2008-06-24
Posts: 129

Re: Welcome e-Mail / PM

I did not figure out how to link the fields to a plug-in, but I figured everything else out.

For anyone wanting to know:

Use these:

$subject = $lang_register['WelcomePM subject'];
etc.

Then put each item in the language files.

The language files parse html correctly.

For apostrophes use "\'"
Quotation marks are fine as is

How did you get the admin name to correctly parse from the database without me having to name it?

If anyone could lead me in a solid direction for a plug-in, I would be eternally grateful. All my attempts seem to not work right.

Last edited by xSDMx (2010-02-07 23:42:24)

Offline

Board footer

Powered by FluxBB