Sorry für den Titel, aber da hat die Tartan wohl nicht gedacht
genau daran lag es auch, bloss irgendwie sehe ich da keinen Fehler
Titel: product-pmpostreply
PHP-Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="pmpostreply" title="Reply to Post via PM" description="This Hack places references to the Post into the PM when being send from Postbit." version="1.0.0" active="1">
<codes>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title>Reply to Post via PM</title>
<hookname>private_newpm_blank</hookname>
<phpcode><![CDATA[if ($postinfo['postid'])
{
$forumperms = fetch_permissions($threadinfo['forumid']);
if (
$postinfo['visible']
AND !$postinfo['isdeleted']
AND $threadinfo['visible']
AND !$threadinfo['isdeleted']
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])
AND (($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) OR ($threadinfo['postuserid'] == $vbulletin->userinfo['userid'] AND $vbulletin->userinfo['userid']))
)
{
$pm['title'] = $threadinfo['title'];
$pm['message'] = construct_phrase($vbphrase['in_reply_to_your_post_x'], $postinfo['postid'], ($postinfo['title'] ? $postinfo['title'] : $postinfo['postid']));
}
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="Private Messaging" fieldname="pm">
<phrase name="in_reply_to_your_post_x"><![CDATA[In Reply to your Post [post={1}]{2}[/post]:]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
</product>
Lesezeichen