Welcome PM on First Login

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan
Contact:

Re: Welcome PM on First Login

Post by Stitch625 » Mon Dec 28, 2009 3:54 pm

chrisd75 wrote:Yes, I did notice that updating "231295" did set the pop up value to "yes" but it didn't work for the welcome message (which you mentioned is a different issue).

I wonder what is different about the welcome message, to cause it not to pop up????

I will have to test this out..
1) Is the welcome message sent before the user settings is established?
2) Is the welcome Message created before the user activates their account?

There has to be something that is obvious to why the popup message doesn't appear.......

Anyways, thanks for the feedback!!!
Exactly! The same ongoing issue for well over a year now. Even though the value is set for pop-up = "YES" it still does not work....Never has as far as I know.

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Welcome PM on First Login

Post by lefty74 » Mon Dec 28, 2009 9:35 pm

regarding the pop-up, if you want a quick-fix, you can change your code in includes/functions.php to look like this:

Code: Select all

		// The result parameter is always an array, holding the relevant information...
		if ($result['status'] == LOGIN_SUCCESS)
		{
			$redirect = request_var('redirect', "{$phpbb_root_path}index.$phpEx");
			$message = ($l_success) ? $l_success : $user->lang['LOGIN_REDIRECT'];
			$l_redirect = ($admin) ? $user->lang['PROCEED_TO_ACP'] : (($redirect === "{$phpbb_root_path}index.$phpEx" || $redirect === "index.$phpEx") ? $user->lang['RETURN_INDEX'] : $user->lang['RETURN_PAGE']);

			// append/replace SID (may change during the session for AOL users)
			$redirect = reapply_sid($redirect);

			// Special case... the user is effectively banned, but we allow founders to login
			if (defined('IN_CHECK_BAN') && $result['user_row']['user_type'] != USER_FOUNDER)
			{
				return;
			}

			/*
			* Welcome PM on First Login (WPM)
			* By DualFusion /adjusted by ..::Frans::.. for phpbb3 GOLD
			*/
			$sql = 'SELECT wpm_enable FROM '.WPM_TABLE.' WHERE wpm_config_id =1';
			$result = $db->sql_query($sql);
			$row = $db->sql_fetchrow($result);
			$db->sql_freeresult($result);


			if($row['wpm_enable'] && $user->data['user_lastvisit'] == 0)
			{
				include($phpbb_root_path . 'includes/functions_wpm.' . $phpEx);
				$wpm = new welcome_pm();
				$wpm->get_vars();
				$wpm->send_wpm();
				$sql = 'UPDATE ' . USERS_TABLE . '
					SET user_last_privmsg = 0
					WHERE user_id = ' . $user->data['user_id'];
				$db->sql_query($sql);
				
			}
			/* End WPM */
			$redirect = meta_refresh(3, $redirect);
			trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
		}
there is probably a better solution for this but i did not intend to spend too much time on this... ;)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

chrisd75
Registered User
Posts: 12
Joined: Sat Dec 26, 2009 1:28 pm

Re: Welcome PM on First Login

Post by chrisd75 » Tue Dec 29, 2009 2:27 am

Thanks!!! Works now...

chrisd75
Registered User
Posts: 12
Joined: Sat Dec 26, 2009 1:28 pm

Re: Welcome PM on First Login

Post by chrisd75 » Tue Dec 29, 2009 4:18 am

To make things easier

find

Code: Select all


         if($row['wpm_enable'] && $user->data['user_lastvisit'] == 0)
         {
            include($phpbb_root_path . 'includes/functions_wpm.' . $phpEx);
            $wpm = new welcome_pm();
            $wpm->get_vars();
            $wpm->send_wpm();
            
         }

Replace with

Code: Select all


         if($row['wpm_enable'] && $user->data['user_lastvisit'] == 0)
         {
            include($phpbb_root_path . 'includes/functions_wpm.' . $phpEx);
            $wpm = new welcome_pm();
            $wpm->get_vars();
            $wpm->send_wpm();
            $sql = 'UPDATE ' . USERS_TABLE . '
               SET user_last_privmsg = 0
               WHERE user_id = ' . $user->data['user_id'];
            $db->sql_query($sql);
            
         }


bodeekwa
Registered User
Posts: 123
Joined: Sun May 18, 2003 9:07 am

Re: Welcome PM on First Login

Post by bodeekwa » Wed Dec 30, 2009 2:44 am

I am getting this error and have been getting it for sometime. I thought I would see a solution on this bug error I am receiving, but I only saw 1 solution about replacing this code in the functions_wpm.php
pm_notification('post', $this->send_user_data['username'], $recipients, $subject, $pm_data['message'], $msg_id);
and I didn't even find any such code in my file.

When I click on the Welcome PM link My error is:
[phpBB Debug] PHP Notice: in file /adm/index.php on line 344: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'acp_board::variables_wpm' was given
[phpBB Debug] PHP Notice: in file /adm/index.php on line 344: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'acp_board::preview_wpm' was given
[phpBB Debug] PHP Notice: in file /adm/index.php on line 149: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2959)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2959)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2959)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2959)
any suggestions?

dpower_20@hotmai.com
Registered User
Posts: 29
Joined: Fri Sep 25, 2009 11:49 pm

Re: Welcome PM on First Login

Post by dpower_20@hotmai.com » Thu Dec 31, 2009 10:14 pm

Heya,

I'm having an issue with this mod.

Certain members get multiple welcome pms for some reason.

I do have auto-group mod installed but I don't think that is the problem because this is only a problem with some members.

chrisd75
Registered User
Posts: 12
Joined: Sat Dec 26, 2009 1:28 pm

Re: Welcome PM on First Login

Post by chrisd75 » Fri Jan 01, 2010 7:46 pm

FYI...

Adding this causes the new pm counter at the top ( 0 new messages) NOT TO populate..

ndmpatriot
Registered User
Posts: 55
Joined: Wed Oct 27, 2004 10:02 pm

Re: Welcome PM on First Login

Post by ndmpatriot » Tue Jan 05, 2010 3:47 pm

I uploaded the language file to the wrong folder. My bad. Problem solved.

MydnyteSyn
Registered User
Posts: 383
Joined: Sun Oct 07, 2007 10:02 am

Re: Welcome PM on First Login

Post by MydnyteSyn » Wed Jan 06, 2010 4:41 pm

I also had a member report to me that every time he logs in he gets a new Welcome PM message sent to his inbox.

Lamer4o
Registered User
Posts: 98
Joined: Tue Dec 22, 2009 9:29 pm

Re: Welcome PM on First Login

Post by Lamer4o » Thu Jan 14, 2010 10:25 am

Does it work for 3.0.6 ?

User avatar
sevenalive
Translator
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am
Location: Tempe, AZ
Name: Robert

Re: Welcome PM on First Login

Post by sevenalive » Thu Jan 14, 2010 6:09 pm

I wish people would take the time to install it and try it or at least read the last few pages of the thread before posting:

Will it work for 3.x.x

No currently there are breaking issues that still need to be resolved.

bipenett
Registered User
Posts: 90
Joined: Sun Nov 15, 2009 2:01 am

Re: Welcome PM on First Login

Post by bipenett » Tue Jan 19, 2010 1:22 pm

Hi everybody who's reading this! :D

I've just installed this MOD over the "Automod" page but what now?

I can't see any difference in any page of my ACP and the www.mydomain.com/install gives me a "page not found" message.

What am I doing wrong?

jose29
Registered User
Posts: 67
Joined: Fri Jan 08, 2010 1:21 pm
Location: Bretagne France
Contact:

Re: Welcome PM on First Login

Post by jose29 » Tue Jan 19, 2010 8:49 pm

Good evening,
For those who have questioning on the functioning of this mod on PHPBB3 v 3.0.6, I can bring my testimony:
I use the style Ca-Black, based on Prosilver.
I installed the mod v 2.2.5 following the instructions .xml, except, I did not modify the value in / includes / function_user.php which stayed in 230271.

Code: Select all

'user_options'		=> 230271,
I made a test and that works very well: see screenshots below ;) :

Image

Image
Kénavo,
http://www.breizh-oiseaux.fr/forum

net83it
Registered User
Posts: 500
Joined: Sun Jan 15, 2006 2:42 pm
Location: Sicily
Contact:

Re: Welcome PM on First Login

Post by net83it » Tue Jan 19, 2010 9:00 pm

same here, no problem with 3.0.6.
i modify the value on function_user.php file and the welcom pm also opens the popup window

User avatar
kopacko
Registered User
Posts: 254
Joined: Mon Feb 17, 2003 1:39 am

Re: Welcome PM on First Login

Post by kopacko » Tue Jan 19, 2010 9:17 pm

sevenalive wrote:I wish people would take the time to install it and try it or at least read the last few pages of the thread before posting:

Will it work for 3.x.x

No currently there are breaking issues that still need to be resolved.
+1

Locked

Return to “[3.0.x] MOD Database Releases”