Little Problem with the Welcome PM on First Login Mod


  -----  
Author Message

mariocaz
Member

Sun Apr 02, 2006 2:24 pm   Post subject: Little Problem with the Welcome PM on First Login Mod
Hi Thoul!! Smile

First congratulations for your great useful "Welcome PM on First Login Mod". Cool

Well I have installed this Mod in my forum, I also have the WPM 1.0.8 and the Mod is working very well the problem is that all the titles of the WPM for my new users are the same than the messages of the WPM and I put another title for all WPMs, so the original title of the WPM is not show it. Sad

That is the problem and I don't know why this happens, because this not happens before to install the Welcome PM on First Login Mod. Confused

I put here some images about all of this. Shocked




And also here are my files with the Mod if u want to take a look. Idea

http://www.all-reefs.com/inicio/Otros/login.zip

http://www.all-reefs.com/inicio/Otros/usercp_register.zip

I will wait all ur preciate help and thanx.

Cheers, Wink

Mario from Mexico
 

Thoul
Administrator

Sun Apr 02, 2006 7:19 pm   Post subject: re: Little Problem with the Welcome PM on First Login Mod
Hi,

Thanks for bringing this up. It's a little bug in my mod that I thought was fixed, but it seems to have come back. To fix it, find this line in mods/wpm/login_wpm.php:

Code:

      $wpm_subject = str_replace($subjects, $replaces, $wpm_message);


Replace it with:

Code:

      $wpm_message = str_replace($subjects, $replaces, $wpm_message);
 

mariocaz
Member

Sun Apr 02, 2006 11:05 pm   Post subject:
Thanx a lot my friend, I did that. Cool

Anything else I will tell you in the moment. Smile
 

deepswing
Member

Sat May 13, 2006 5:34 pm   Post subject:
I have i litte problem Very Happy

I've installed this mod, but at every login of the new user, the mod send the welcome pm.

excuse me for my bad english Smile

i have phpbb 2.0.20 and this mod installed:

Admin Flood Limit 1.0.0
Admin Voting 1.1.8
Advanced Report Hack 3.0.1
CrackerTracker Professional 2nd Edition 4.1.3
Simple Admin Userlist 2.0.4
Show IP Forum Index MOD 1.0
WPM 1.0.10
eXtreme Styles mod 2 2.3.1
File Attachment Mod v2 2.4.3
Birthday 1.5.9
Capitalise Confirmation Code 1.0.1
50 characters in message 1.4.4
Gender 1.2.8
Global announcement 1.2.9
phpBB Menu Manager 2.2.11
Quick Post ES (Expansion Set) 1.1.2c
Simple Subforums MOD 1.0.1
Small ShoutBox 1.4
Spam warning 1.3.1
Mobile Online phpBB (mophpbb) 1.6.1
 

Thoul
Administrator

Sat May 13, 2006 10:59 pm   Post subject: re: Little Problem with the Welcome PM on First Login Mod
Did you run the SQL queries and/or hack_files/install.php? If not, that could cause this and you should complete that step of the install.

If you've already done that, then one of the other hacks you've installed must be causing a conflict of some kind. It would have to be one that edits login.php or includes/sessions.php, so that should eliminate some of those. If you could post links to the hacks, I'll try to take a look at them and see if I can find the cause. That might take a while, though.
 

deepswing
Member

Sun May 14, 2006 10:48 am   Post subject:
I've download this hacks from www.phpbbhacks.com

Attachment Mod from www.opentools.de
eXtreme Styles from www.phpbbstyles.com

but i don't edit includes/session.php and i have run install.php
 

Thoul
Administrator

Mon May 15, 2006 12:30 pm   Post subject: re: Little Problem with the Welcome PM on First Login Mod
I looked at a few of the most likely mods that could conflict and didn't find anything. So let's try this approach. Find this line in your mods/wpm/login_wpm.php file:

Code:

if( !$session_id['user_welpm'] )


Before it, add this:

Code:

$sql = 'SELECT user_welpm FROM ' . USERS_TABLE . ' WHERE user_id = ' . intval($session_id['user_id']);
if( !$result = $db->sql_query($sql) )
{
   message_die(GENERAL_ERROR, 'Could not check welcome PM status', __LINE__, __FILE__, $sql);
}
if( $row = $db->sql_fetchrow($result) )
{
   $session_id['user_welpm'] = $row['user_welpm'];
}


Let me know if that fixes the issue for you.
 

deepswing
Member

Tue May 23, 2006 5:40 pm   Post subject:
no Sad
 

Thoul
Administrator

Thu May 25, 2006 3:54 pm   Post subject: re: Little Problem with the Welcome PM on First Login Mod
Try finding this line in login_wpm.php:

Code:

      $sql = 'UPDATE ' . USERS_TABLE . ' SET user_welpm = 1';


Change it to:

Code:

      $sql = 'UPDATE ' . USERS_TABLE . ' SET user_welpm = 1 WHERE user_id=' . intval($session_id['user_id']);
 

deepswing
Member

Sun May 28, 2006 1:14 pm   Post subject:

deepswing wrote:

no Sad
 

Page 1 of 2
Go to page 1, 2  Next
Display posts from previous: