http://www.icyphoenix.com/viewtopic.php?f=28&t=5077
-----------------------------------
tiolalu
Thu 27 Nov, 2008 13:26

How To Send PM To All Users?
-----------------------------------
Just that, how to send PM to all users.
I think is a good idea to have a feature in the ACP to do that (just a suggestion ;) ).

Thanks in advance.


-----------------------------------
New Player
Thu 27 Nov, 2008 16:53

Re: How To Send PM To All Users?
-----------------------------------
little modifications to work with ip but not tested! try it!


-----------------------------------
Chaotic
Thu 27 Nov, 2008 20:52

Re: How To Send PM To All Users?
-----------------------------------
That will be awesome if it works.

If it is proven to work, we'll move it to the customizations forum.  :mricy:


-----------------------------------
Limun
Thu 27 Nov, 2008 22:07

Re: How To Send PM To All Users?
-----------------------------------
thank you very much New Player
its working  :wink: 

btw only little thing to do

do not search 
[code linenumbers=false]//
// That's all Folks!
// -------------------------------------------------[/code]

search 
[code linenumbers=false]//$lang[''] = '';[/code]

and than add before lang vars from install.txt 

 [img]http://www.icyphoenix.com/files/images/3336/masspm.png[/img]


-----------------------------------
Chaotic
Thu 27 Nov, 2008 22:59

Re: How To Send PM To All Users?
-----------------------------------
Thanks for testing it out Limun!

Moving to Icy Phoenix Customizations!  :mryellow:


-----------------------------------
SkyOne1982
Fri 28 Nov, 2008 02:31

Re: How To Send PM To All Users?
-----------------------------------
Thank you!


-----------------------------------
Chaotic
Fri 28 Nov, 2008 04:58

Re: How To Send PM To All Users?
-----------------------------------
You know, this has to be one of the most useful MODs!  Thanks tiolalu for bringing this up, New Player for posting the MOD, and Limun for making that code change!


-----------------------------------
tiolalu
Mon 01 Dec, 2008 21:29

Re: How To Send PM To All Users?
-----------------------------------
[b]New Player[/b], thanks for the code.
[b]Chaotic[/b], thanks for moving the thread
[b]Limun[/b], thanks for testing it! :D


-----------------------------------
Mighty Gorgon
Mon 01 Dec, 2008 23:28

Re: How To Send PM To All Users?
-----------------------------------
Even if it works, the template is not perfect, and the php files is not respecting some Icy Phoenix coding standards.

This doesn't mean that the mod is unsecure... this just means that should be improved. :wink:

New Player, do you think you can improve it? I can give you some hints if you wish... :wink:


P.S.: a final note... this script will almost surely hang for boards with thousands of users.


-----------------------------------
tiolalu
Tue 02 Dec, 2008 08:51

Re: How To Send PM To All Users?
-----------------------------------
[b]Mighty Gorgon[/b], is better to do it with a SQL query?
How to do it?

T.I.A.


-----------------------------------
Mighty Gorgon
Tue 02 Dec, 2008 09:53

Re: How To Send PM To All Users?
-----------------------------------
[quote user="tiolalu" post="34319"][b]Mighty Gorgon[/b], is better to do it with a SQL query?
How to do it?

T.I.A.[/quote]
No, you can use this mod, I think it is working fine, but only with small boards... if you have thousands users the system may timeout (unless you are able to set very high timeout value for your server) and all the notification emails may not be sent as well.


-----------------------------------
New Player
Tue 02 Dec, 2008 10:27

Re: How To Send PM To All Users?
-----------------------------------
[quote user="Mighty Gorgon" post="34262"]New Player, do you think you can improve it? I can give you some hints if you wish... :wink:[/quote]

yes when you give me hints i try it :)


-----------------------------------
Mighty Gorgon
Tue 02 Dec, 2008 11:09

Re: How To Send PM To All Users?
-----------------------------------
Try to duplicate the MASS EMAIL feature just by adding the code to send a PM before sending the email... :wink:

That code is already optimized for delayed and subdivided sending. :wink:

Start the job and then I'll help out.


-----------------------------------
HaoAsakura
Sun 28 Dec, 2008 14:04

Re: How To Send PM To All Users?
-----------------------------------
Italian version ^^


** removed **


-----------------------------------
Lopalong
Sat 03 Jan, 2009 11:45

Re: How To Send PM To All Users?
-----------------------------------
@ HaoAsakura

Would you like to explain to me what the "Italian Version" is when it appears all you have changed is this:

[code linenumbers=false]$module['1610_Users']['Massen PM versenden'] = $filename;

To this: $module['1610_Users']['Invio PM di gruppo'] = $filename;[/code]

What you have suggested as the "Italian Version" is as buggy as hell - contains no improvements to make the code compatible or secure with Icy Phoenix (as suggested by MG) and is worthless, dangerous and whatever.


-----------------------------------
fucile
Sat 03 Jan, 2009 16:00

Re: How To Send PM To All Users?
-----------------------------------
A Question 

Because when you create this kind of mod does not even prepare for later?

Example:

[code syntax=php]
<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/*
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
*/

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);[/code]

As you can see from line 11 to line 16 syntax is prepared for new and future versions. 

Tomorrow wants a move to the new version will not do anything else you delete the old routine and uncomment the new 

Hello Fucile


-----------------------------------
Lopalong
Sat 03 Jan, 2009 21:43

Re: How To Send PM To All Users?
-----------------------------------
@ fucile

It is no good to simply prepare the header strings for the future, as the MOD core-file script has to be changed also, else nothing will work.

Better to leave it as a MOD for today - And convert it all to the new code in readiness for when the time comes for the next release of IP. ;)


-----------------------------------
HaoAsakura
Sun 04 Jan, 2009 13:40

Re: How To Send PM To All Users?
-----------------------------------
I've remove italian version!


-----------------------------------
fucile
Sun 04 Jan, 2009 13:50

Re: How To Send PM To All Users?
-----------------------------------
[quote user="Lopalong" post="35340"]@ fucile

It is no good to simply prepare the header strings for the future, as the MOD core-file script has to be changed also, else nothing will work.

Better to leave it as a MOD for today - And convert it all to the new code in readiness for when the time comes for the next release of IP. ;)[/quote]


Thanks Lopalong for the explain
 :wink:


-----------------------------------
Mighty Gorgon
Sat 17 Jan, 2009 12:49

Re: How To Send PM To All Users?
-----------------------------------
I have coded a MASS PM feature for next version...

I will update SVN soon so you can test it. :wink:


-----------------------------------
Chaotic
Sat 17 Jan, 2009 13:25

Re: How To Send PM To All Users?
-----------------------------------
Oh wow!

You really tweaked that feature, MG!  Awesome work!


-----------------------------------
Mighty Gorgon
Sat 17 Jan, 2009 13:48

Re: How To Send PM To All Users?
-----------------------------------
Did you already test it? :lol:


-----------------------------------
Chaotic
Sat 17 Jan, 2009 15:03

Re: How To Send PM To All Users?
-----------------------------------
Limun and I are playing around with it and so far it looks great.


