News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PM to New Registered Users

Started by Midgard, December 17, 2004, 07:00:24 AM

Previous topic - Next topic

LuminaRS

Quote from: Oldiesmann on May 30, 2006, 09:37:13 AM
Are there any errors in your forum error log relating to this?

No, there isn't anything in the logs

ghostfreak

Would be interesting to see it for 1.1 RC2 :)

http://www.xfilesforum.net - Dare To Believe?
http://www.idealforum.co.uk - The Green Blitz!

LuminaRS

Quote from: ghostfreak on June 07, 2006, 10:08:38 PM
Would be interesting to see it for 1.1 RC2 :)

Eh, I still haven't gotten it to work on 1.0.7...

sbarnes


snakize

Works great in SMF 1.1RC2 thanks a lot!

Vinspire

Quote from: MJJOS on May 27, 2006, 09:19:19 AM
Yes it can be made work with 1.1RC2, what he is saying is, take the original code given by Kirby, and put it into Subs-Members.php

So, for 1.1RC2, in Subs-Members.php, find:
// Admin gets informed here...
adminNotify('approval', $memberID, $regOptions['username']);
}


AFTER that, insert:
    // 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);


Remember to replace Subject Here with the PM subject, and Message Here with the pm's message.
Thats it, it works perfectly, and that way you wont get that error message that was coming up. I tried it, so it should be fine for most people.

Great idea by the way! Hope that helps.

Thanks for the codes MJJOS.

I have 1 question here. The msg that is send to the members come from who ? The admin of the site ?

husmen73 (Gulhin)

#106
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


tozzie

Quote from: husmen73 on June 14, 2006, 08:52:33 AM
Thanks MJJOS


Only SMF 1.1RC2

Mod ;)
Download links -->

thanx, but it doesnt work and i dont think its in english....
but thanx


and i cant figure it out manually, it says theres an error on line 852...

KMKM

Quote from: husmen73 on June 14, 2006, 08:52:33 AM
Thanks MJJOS


Only SMF 1.1RC2

Mod ;)
Download links -->
  • hxxp:www.alemshare.net/download.php?id=uWRjI8CmPWYUcitk3zT0 [nonactive]
  • hxxp:www.alemshare.net/download.php?id=CPDcdtrgMZlbnx2LptEV [nonactive]
er... problem
u have given links of BOTH turkish downloads.. please give the english one :)

husmen73 (Gulhin)

#110
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

PrizeLive.com

Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

L.G.S

The code isn't that helpful actually.

All it does it enter the code from this topic into your files, it doesn't give you options to change the message etc, you have to do it manually.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


tarkhorani

Get a Free SMForum on http://www.myboards.com (Ver 1.1.1)



husmen73 (Gulhin)

-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

tarkhorani

Quote from: husmen73 on July 04, 2006, 09:56:02 AM
Quote from: SurfExcelerator.com on June 29, 2006, 09:12:39 AM
What's the code for 1.1 RC2?
This is Mod for 1.1 RC2
Download Here

I download and installed it but where can I set the propeties and how can Use it
Get a Free SMForum on http://www.myboards.com (Ver 1.1.1)



husmen73 (Gulhin)

#116
Quote from: tarkhorani on July 04, 2006, 09:56:02 AM
This is Mod for 1.1 RC2
I download and installed it but where can I set the propeties and how can Use it

Sub-members.php look for
// welcomemessage options:)
sendpm($pmto, 'Welcome!!!', 'WE THANK MEMBER YOU FOR ISING...', 0, $pmfrom);

Subject='Welcome'
Messaje='WE THANK MEMBER YOU FOR ISING...'         ;)

Edit mod: download here
-Kurumsal Kimlik Web Tasarım Hizmeti.
Gülhin Portal Sistemi hakkında yorumlarınızı bekliyorum.
SMF
Referanslar --> http://www.gulhin.com/referanslar-portfoy/
-Web Tasarımı ve Tema Tasarımı Sitesi www.gulhin.com
-TOPLU MAİL GÖNDERİMİ --> http://www.toplumailsms.com
E-Ticaret Sistemi yaptırmak mı istiyorsunuz?

Vinspire

Is it possible to manually install this mods ?

And i think the mod creator should develop this mod and make it a real mod as in the admin can choose who to send this specific PM & What is the message and subject not modifying the subs-members ourself. Thanks :)

L.G.S

The manual mod can be found at the first post of this page
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Vinspire

Quote from: Kirby on December 17, 2004, 07:54:02 PM
Open Register.php
Look for:
// Admin gets informed here...
adminNotify('approval', $memberID, $_POST['user']);
}


Add after:

// 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);


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

This one ? This code had been posted 2 yrs ago .... Are you sure it would work in SMF 1.1 RC 2 ?

Advertisement: