Customizing SMF > Now Available

PM to New Registered Users

<< < (2/29) > >>

ryanbsoftware:

--- Quote from: nviceversa on December 19, 2004, 02:31:56 PM ---Out of the blue :P is there anyway you can add a sound to the pm?..

so that when you have a new pm it'll play a sound?.. then once read it stops??.

--- End quote ---

I would think so if you use the [dohtml] tag and used html code to play the music. ;)

RGSMDNR:
how would i go about adding something like

Welcome 'user',

please go here .

thanks

?

mytreo:

--- Quote from: Kirby on December 17, 2004, 07:54:02 PM ---Open Register.php
Look for:

--- Code: --- // Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}

--- End code ---

Add after:

--- Code: --- // Set up the message arrays
$pmfrom = array(
'id' => 1,
'name' => 'name or variable',
'username' => 'name or variable'
);
$pmto = array(
'to' => array($memberID),
'bcc' => array()
);

// Give them a warm welcome via PM :)
sendpm($pmto, 'Subject Here', 'Message Here', 0, $pmfrom);

--- End code ---

Something along those lines... SMF has a built in PM function to make things easy :D
You will probably have to adjust some of that stuff... who knows if this works out I might even make it a mod o.O

--- End quote ---

That is awesome kirby, thank you much.

RGSMDNR:
yes, but what do i type in the 'Message' field so it will show up like in my post...

Welcome "user name"

blah blah 'link'

Kirby:
Just an FYI, please download the mod version of this. It is available at my package server (http://www.zfgc.com/kirby/smf). It is a more recent version and allows you to do it with the ease of your admin panel. Please do NOT download other mods, I have to double check them to make sure they are 1.0 compatible, and I have to fix the Topic Descriptions one. Thanks for the good comments :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version