Welcome Personal Message (PM) - Define New Sender


Subject: Welcome Personal Message (PM) - Define New Sender
Hello,

I have a litte problem with the welcome personal message (not email).
How can I edit the sender of it. By default it is the main site admin.
I tried to solve the problem by defining a new group leader of the admin group, but this didn't help for solving the problem.

It would last, if someone can tell me datebasetable and the entry of the user id to change. If there is a smarter way - its better :wink:

thx for help.

Profile PM  
Inactive User
Subject: Re: Welcome Personal Message (PM) - Define New Sender
I think you'll find that, that is language dependant. ;)

Open: lang_main_settings.php

Look for: $lang['register_pm']

Subject: Re: Welcome Personal Message (PM) - Define New Sender
and how can i change the userid of the sender?

Profile PM  
Inactive User
Subject: Re: Welcome Personal Message (PM) - Define New Sender
You can play with this in /includes/usercp_register.php ;)

Spoiler: [ Show ]

Subject: Re: Welcome Personal Message (PM) - Define New Sender
With this information i should be able to modify my board.

thank u all very mutch! thx

Profile PM  
Inactive User
Subject: Re: Welcome Personal Message (PM) - Define New Sender
It would be nice of you to post your modifications for the "Admin Welcome PM changes", here in this thread when you have it all working. ;)

Subject: Re: Welcome Personal Message (PM) - Define New Sender
It was not mutch work, I only had to modify the text in lang_main_settings.php how you allready said.

Then, to change the sender, there are two ways:

1. to change the main_admin_id in the ip_config table

2. or to directly insert it into that sql statement:

OPEN /includes/usercp_register.php line 1199
FIND
Code: [Download] [Hide] [Select]
$sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("'", "''", addslashes(sprintf($register_pm_subject, $board_config['sitename']))) . "', '" . $main_admin_id . "', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";

REPLACE WITH
Code: [Download] [Hide] [Select]
$sql = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES ('0', '" . str_replace("'", "''", addslashes(sprintf($register_pm_subject, $board_config['sitename']))) . "', '" . 8 . "', " . $user_id . ", " . $privmsgs_date . ", '0', '1', '1', '0')";


In this case the user with the id 8 is the sender.

That's it.

Profile PM  
Inactive User
Subject: Re: Welcome Personal Message (PM) - Define New Sender
Thanks Dragon for "Your" effort, and for explaining it in the way that you have.

Now anyone should be able to understand what you did, should they wish to apply those changes themselves. ;)

Moved to Documentation.

Subject: Re: Welcome Personal Message (PM) - Define New Sender
This SQL alter the main admin id:

Code: [Download] [Hide] [Select]
UPDATE phpbb_config SET config_value = '2' WHERE config_name = 'main_admin_id';


There is no way to change it via ACP because it's dangerous to allow other admins to change that value. :wink:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1239s (PHP: 15% SQL: 85%)
SQL queries: 13 - Debug Off - GZIP Enabled