Hello,
I searched a solution for PM folders titles on registering member.
Solution for 1.1.x ONLY
REMEMBER!! FIRST BACKUP FILES !!
OK let's go
Open private.php
Find and delete:
Find:
Save and upload
Open member.php
Find:
Add Below:
Translate it,save and upload.
Registration READY!
If you have a members run this query on phpMyAdmin(Tutorial here)
(translate and change prefix if you not using a default [mybb_])
Good Luck
,Xniver
I searched a solution for PM folders titles on registering member.
Solution for 1.1.x ONLY
REMEMBER!! FIRST BACKUP FILES !!
OK let's go
Open private.php
Find and delete:
if(!$mybb->user['pmfolders'])
{
$mybb->user['pmfolders'] = "1**Inbox$%%$2**Sent Items$%%$3**Drafts$%%$4**Trash Can";
$db->query("UPDATE ".TABLE_PREFIX."users SET pmfolders='".$mybb->user[pmfolders]."' WHERE uid='".$mybb->user[uid]."'");
}
Find:
if($key > $highestid)
{
$highestid = $key;
}
if($key == "1" && $val == "")
{
$val = "Inbox";
}
if($key == "2" && $val == "")
{
$val = "Sent Items";
}
if($key == "3" && $val == "")
{
$val = "Drafts";
}
if($key == "4" && $val == "")
{
$val = "Trash Can";
}
And translate (Inbox,Sent Items,Drafts,Trash Can)Save and upload
Open member.php
Find:
"timezone" => addslashes($mybb->input['timezoneoffset']),
Add Below:
"pmfolders" => "1**Inbox$%%$2**Sent Items$%%$3**Drafts$%%$4**Trash Can",
Translate it,save and upload.
Registration READY!
If you have a members run this query on phpMyAdmin(Tutorial here)
(translate and change prefix if you not using a default [mybb_])
UPDATE mybb_users SET pmfolders="1**Inbox$%%$2**Sent Items$%%$3**Drafts$%%$4**Trash Can";
Good Luck
,Xniver