Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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

thx for help.
 



 
DragonSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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']
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Welcome Personal Message (PM) - Define New Sender 
 
and how can i change the userid of the sender?
 



 
DragonSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Welcome Personal Message (PM) - Define New Sender 
 
You can play with this in /includes/usercp_register.php

Spoiler: [ Show ]

 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
DragonSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
DragonSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron