MyBB.de Forum
Automatische Pm - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html)
+--- Thema: Automatische Pm (/thread-26976.html)

Seiten: Seiten: 1 2 3


RE: Automatische Pm - Jockl - 24.01.2013

Das hat aber nun nichts mehr mit der automatischen PM zu tun, oder?


RE: Automatische Pm - MrRight - 24.01.2013

Doch, klar.
Die PM soll ohne Signatur verschickt werden Wink


RE: Automatische Pm - Jockl - 24.01.2013

PHP-Code:
$pm = array(
    
'subject' => $subject,
    
'message' => $message,
    
'toid' => array($toid),
    
'fromid' => $fromid,
);
$pm['options'] = array(
    
"signature" => "0",
    
"disablesmilies" => "0",
    
"savecopy" => "0"//falls Du das auch brauchst
    
"readreceipt" => "0" //falls Du das auch brauchst
); 



RE: Automatische Pm - Luna - 26.10.2018

Hallo Smile

Ich habe ein ähnliches Vorhaben einer automatisierten PN, allerdings bei einer Antwort in einem Thema, die sollen nicht im Postausgang gespeichert werden, aber dieses $pm['options']-Array da einzufügen hat leider nicht das erwünschte Ergebnis und die pm wird noch immer im Ausgang abgelegt.

mein codeschnipsel
PHP-Code:
$pm = array(
    
"subject"    => $subject,
    
"message"    => $message,
    
"fromid"    => $fromid,
    
"toid"        => $partneruid
);
$pm['options'] = array(
    
"signature" => "checked",
    
"disablesmilies" => "0",
    
"savecopy" => "0"
    
"readreceipt" => "checked" 
); 
if(
$pmcheck == "1") {
    
$pmhandler->set_data($pm);

    
// Now let the pm handler do all the hard work.
    
if (!$pmhandler->validate_pm()) {
        
$pm_errors $pmhandler->get_friendly_errors();
    }
    else {
        
$pminfo $pmhandler->insert_pm();
    }




RE: Automatische Pm - StefanT - 26.10.2018

"savecopy" wird korrekt auf 0 gesetzt, ich sehe da keinen Fehler.