اتوقع ان النص موجود في البرودكت نفسه product
البرودكت الخاص بالهاك :عنوانه
Send PM on Thread Move
الوصف
Sends the thread starter a PM letting them know that their thread has been moved
المحتوى
كود PHP:
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="cit_pm_on_threadmove" active="1">
<title>Send PM on Thread Move</title>
<description>Sends the thread starter a PM letting them know that their thread has been moved</description>
<version>1.0</version>
<codes>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title><![CDATA[PM's the user when their thread is moved to a different forum]]></title>
<hookname>inlinemod_domovethread</hookname>
<phpcode><![CDATA[// Check if we're moving without a redirect
if ($vbulletin->GPC['method'] == 'move')
{
// Loop through each entry in $threadarray...
foreach($threadarray AS $threadinfo)
{
// Fetch the recipients username
$username_a = $vbulletin->db->query_first("SELECT `username`
FROM `" . TABLE_PREFIX . "user`
WHERE `userid` = " . $threadinfo['postuserid']);
// Construct the message subject
$subject = $vbphrase['q_pm_on_move_message_subject'];
// Construct the message text
$message = construct_phrase($vbphrase['q_pm_on_move_message_text'],
$username_a['username'],
$vbulletin->options['bburl'] . '/showthread.php?t=' . $threadinfo['threadid'],
$threadinfo['title'],
$vbulletin->options['bburl'] . '/forumdisplay.php?f=' . $destforuminfo['forumid'],
$destforuminfo['title_clean'],
$vbulletin->userinfo['username']
);
// Init the PM datamanager
$pm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmperms['adminpermissions'] = 2;
// Fill in the blanks
$pm->set('fromuserid', $vbulletin->userinfo['userid']);
$pm->set('fromusername', $vbulletin->userinfo['username']);
$pm->set('title', $subject);
$pm->set('message', $message);
$pm->set_recipients($username_a['username'], $pmperms);
$pm->set('dateline', time());
// Send the PM
if (empty($pm->errors))
{
// There are no errors, so send the PM
$pm->save();
}
}
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[PM's the user when their thread is moved to a different forum]]></title>
<hookname>threadmanage_move_simple</hookname>
<phpcode><![CDATA[// Construct the message subject
$subject = $vbphrase['q_pm_on_move_message_subject'];
// Construct the message text
$message = construct_phrase($vbphrase['q_pm_on_move_message_text'],
$threadinfo['postusername'],
$vbulletin->options['bburl'] . '/showthread.php?t=' . $threadinfo['threadid'],
$threadinfo['title'],
$vbulletin->options['bburl'] . '/forumdisplay.php?f=' . $destforuminfo['forumid'],
$destforuminfo['title_clean'],
$vbulletin->userinfo['username']
);
// Init the PM datamanager
$pm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmperms['adminpermissions'] = 2;
// Fill in the blanks
$pm->set('fromuserid', $vbulletin->userinfo['userid']);
$pm->set('fromusername', $vbulletin->userinfo['username']);
$pm->set('title', $subject);
$pm->set('message', $message);
$pm->set_recipients($threadinfo['postusername'], $pmperms);
$pm->set('dateline', time());
// Send the PM
if (empty($pm->errors))
{
// There are no errors, so send the PM
$pm->save();
}]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="GLOBAL" fieldname="global">
<phrase name="q_pm_on_move_message_subject"><![CDATA[تـم نـقـل مـوضـوعـك !]]></phrase>
<phrase name="q_pm_on_move_message_text"><![CDATA[السلام عليكم يـا {1},
الموضوع الذي انشأته في الأسفل تـم نقله إلى قسم آخر, ونعتقد بأنه سيكون أكثر ملائماً في القسم المنقول إليه .
----------
الموضوع: [url={2}]{3}[/url]
القسم المنقول إليه: [url={4}]{5}[/url]
----------
و شــكــراً ,
{6}]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
</product>