Sorry Music Pirate, but there is a mistake in your compilation.
you wrote:
PHP Code:
OPEN PRIVATE.php
FIND:
if ($bbuserinfo[pmfolders]) {
$allfolders = split("\n", trim($bbuserinfo[pmfolders]));
$foldercount = 0;
while (list($key,$val)=each($allfolders)) {
$folder = split("\|\|\|", $val);
$foldercount++;
$highestnum = $folder[0];
$folder[folderid]=$folder[0]+1;
$folder[title]=$folder[1];
BELOW THAT ADD
//////////////////////////////////////hack////////////////////////////////////////
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$msginfolder = $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=$folder[folderid] $ignoreusers");
$foldermsgtotal = $msginfolder[foldermsgtotal];
///////////////////////////////////////hack///////////////////////////////////////
FIND
///////////////////////////////////////hack///////////////////////////////////////
eval("\$folderboxeshack .= \"".gettemplate("priv_showfolders_folderbit_hack",1,0)."\";");
}
}
///////////////////////////////////////hack///////////////////////////////////////
ABOVE THAT ADD
///////////////////////////////////////hack//////////////////////////////////////
$msginfolder = $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage
WHERE userid=$bbuserinfo[userid] AND folderid=$folder[folderid]");
$foldermsgtotal = $msginfolder[foldermsgtotal];
///////////////////////////////////////hack///////////////////////////////////////
But correct is:
PHP Code:
OPEN PRIVATE.php
FIND:
if ($bbuserinfo[pmfolders]) {
$allfolders = split("\n", trim($bbuserinfo[pmfolders]));
$foldercount = 0;
while (list($key,$val)=each($allfolders)) {
$folder = split("\|\|\|", $val);
$foldercount++;
$highestnum = $folder[0];
$folder[folderid]=$folder[0]+1;
$folder[title]=$folder[1];
BELOW THAT ADD
/////////////////////////////////////////hack////////////////////////////////////
$ignoreusers="";
if (trim($bbuserinfo['ignorelist'])!="") {
$ignoreusers='AND fromuserid<>'.implode(' AND fromuserid<>',explode(' ', trim($bbuserinfo['ignorelist'])));
}
$msginfolder = $DB_site->query_first("SELECT COUNT(*) AS foldermsgtotal FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=$folder[folderid] $ignoreusers");
$foldermsgtotal = $msginfolder[foldermsgtotal];
/////////////////////////////////////////hack/////////////////////////////////////
The second part you wrote in your instruction is duplicate with the first part !
@ all
How can I delete custom Folders from PM System ?
I didn't find a solution how to delete the added own folders. Am I blind ?