1

بابه‌ت: [پێوەکراو] چۆنیەتى دامەزراندنی پەیامى تایبەت.

سەرەتا پێوە کراوەکە لێرە داگرە
http://www.webchinupload.com/files/PMS%20Kurdish.rar

ناوى پێوەکراو          New Private Messaging System (سیستەمى پەیامى تایبەتى نوێ)   

وەشانى پێوەکراو            1.5.0

بەکوردى کردنى پێوەکراو    Pshtiwan Kardoey

کاردەکەین لەسەر پەڕگەکانى :

viewtopic.php
profile.php
header.php
lang/Kurdish/common.php
admin_users.php


هەنگاوەکانى دامەزراندن

١- ئەم پەڕگانە بەرزبکەوە بەم شێوەیە

* img/  ---------------to -----img/
* include/pms_new   -- to ---- include/
* lang/Kurdish/  ----- to ---- lang/Kurdish
* plugins/  ---------- to ---- plugins/
* pmsnew   ----------- to ---- root/
* install_mod.php  --- to ---- root/

==========================================================================================================================================

٢- ئەم کردارە ئەنجام بدە

http://www.nawisaytakat.com/install_mod.php

لەجیاتى http://www.nawisaytakat.com لینکى مەکۆکەت بنووسە.

==========================================================================================================================================

٣- ئەمە پەڕگەیە بسڕەوە .

install_mod.php

==========================================================================================================================================

٤- ئەمە پەڕگەیە بکەوە .

lang/Kurdish/common.php

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


* بگەڕێ بەدوای

'Maintenance mode enabled'            =>    'دۆخی چاككاری چالاك كراوه',

ئەمەى لەدوا زیاد بکە

'PM' => 'پەیامى تایبەت',
'PMsend' => 'ناردنى پەیامى تایبەت',
'PMnew' => 'پەیامى تایبەتێکى نوێ',
'PMmess' => 'تۆ پەیامى تایبەتێکى نوێت هەیە.',
'Show' => 'نیشاندان',

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

==========================================================================================================================================

٥- ئەمە پەڕگەیە بکەوە .

viewtopic.php

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوایی

// Retrieve the posts (and their respective poster/online status)
$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.id IN ('.implode(',', $post_ids).') ORDER BY p.id', true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

بیگۆڕە بە

// Retrieve the posts (and their respective poster/online status)
// add "g.g_pm, u.messages_enable," - New PMS
$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, u.messages_enable, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, g.g_pm, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.id IN ('.implode(',', $post_ids).') ORDER BY p.id', true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

            if ($cur_post['url'] != '')
            {
                if ($pun_config['o_censoring'] == '1')
                    $cur_post['url'] = censor_words($cur_post['url']);
                        
                $user_contacts[] = '<span class="website"><a href="'.pun_htmlspecialchars($cur_post['url']).'">'.$lang_topic['Website'].'</a></span>';
            }
        }

ئەمەى لەدوا زیاد بکە

// New PMS
        if (!$pun_user['is_guest'] && $pun_config['o_pms_enabled'] == '1' && $pun_user['g_pm'] == 1 && $pun_user['messages_enable'] == 1 && $cur_post['poster_id'] != $pun_user['id'])
            if ($pun_user['g_id'] == PUN_ADMIN || ($cur_post['g_pm'] == 1 && $cur_post['messages_enable'] == 1))
            {
                $user_contacts[] = '<span class="pmsnew"><a href="pmsnew.php?mdl=post&amp;uid='.$cur_post['poster_id'].'">'.$lang_common['PM'].'</a></span>';
            }
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

==========================================================================================================================================

٦- ئەمە پەڕگەیە بکەوە .

profile.php

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوایی

$result = $db->query('SELECT u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.notify_with_post, u.auto_notify, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.dst, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, u.date_format, u.time_format, u.last_visit, g.g_id, g.g_user_title, g.g_moderator FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
_img_sig, u.show_avatars, u.show_sig, u.timezone, u.dst, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, u.date_format, u.time_format, u.last_visit, g.g_id, g.g_user_title, g.g_moderator FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

بیگۆڕە بە

// add "g.g_pm, u.messages_enable," - New PMS
$result = $db->query('SELECT u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.notify_with_post, u.auto_notify, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.dst, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, u.date_format, u.time_format, u.last_visit, u.messages_enable, g.g_id, g.g_user_title, g.g_moderator, g.g_pm FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

    if ($email_field != '')
    {
        $user_personal[] = '<dt>'.$lang_common['Email'].'</dt>';
        $user_personal[] = '<dd><span class="email">'.$email_field.'</span></dd>';
    }

ئەمەى لەدوا زیاد بکە

// New PMS
    if (!$pun_user['is_guest'] && $pun_config['o_pms_enabled'] == '1' && $pun_user['g_pm'] == 1 && $pun_user['messages_enable'] == 1)
        if ($user['g_pm'] == 1 && $user['messages_enable'] == 1)
        {
            $user_personal[] = '<dt>'.$lang_common['PM'].'</dt>';
            $user_personal[] = '<dd><span class="pmsnew"><a href="pmsnew.php?mdl=post&amp;uid='.$id.'">'.$lang_common['PMsend'].'</a></span></dd>';
        }
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

            if ($pun_config['o_regs_verify'] == '1')
                $email_field = '<p>'.sprintf($lang_profile['Email info'], $user['email'].' - <a href="profile.php?action=change_email&amp;id='.$id.'">'.$lang_profile['Change email'].'</a>').'</p>'."\n";
            else
                $email_field = '<label class="required"><strong>'.$lang_common['Email'].' <span>'.$lang_common['Required'].'</span></strong><br /><input type="text" name="req_email" value="'.$user['email'].'" size="40" maxlength="80" /><br /></label>'."\n";
        }

ئەمەى لەدوا زیاد بکە

// New PMS
        if ($pun_config['o_pms_enabled'] == '1' && $pun_user['g_pm'] == 1 && $pun_user['messages_enable'] == 1 && $pun_user['id'] != $id)
            if ($pun_user['g_id'] == PUN_ADMIN || ($user['g_pm'] == 1 && $user['messages_enable'] == 1))
                $email_field .= "\t\t\t\t\t\t\t".'<p><span class="pmsnew"><a href="pmsnew.php?mdl=post&amp;uid='.$id.'">'.$lang_common['PMsend'].'</a></span></p>'."\n";
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

        // Delete the user
        $db->query('DELETE FROM '.$db->prefix.'users WHERE id='.$id) or error('Unable to delete user', __FILE__, __LINE__, $db->error());

ئەمەى لەدوا زیاد بکە

// New PMS
        require PUN_ROOT.'include/pms_new/common_pmsn.php';

        pmsn_user_delete($id, 2);

        $db->query('DELETE FROM '.$db->prefix.'pms_new_block WHERE bl_id='.$id.' OR bl_user_id='.$id) or error('Unable to delete user in pms_new_block', __FILE__, __LINE__, $db->error());
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

    // If we changed the username we have to update some stuff
    if ($username_updated)
    {

ئەمەى لەدوا زیاد بکە

// New PMS
        $db->query('UPDATE '.$db->prefix.'pms_new_topics SET starter=\''.$db->escape($form['username']).'\' WHERE starter_id='.$id) or error('Unable to update pms_new_topics', __FILE__, __LINE__, $db->error());
        $db->query('UPDATE '.$db->prefix.'pms_new_topics SET to_user=\''.$db->escape($form['username']).'\' WHERE to_id='.$id) or error('Unable to update pms_new_topics', __FILE__, __LINE__, $db->error());
        $db->query('UPDATE '.$db->prefix.'pms_new_posts SET poster=\''.$db->escape($form['username']).'\' WHERE poster_id='.$id) or error('Unable to update pms_new_posts', __FILE__, __LINE__, $db->error());
        $db->query('UPDATE '.$db->prefix.'pms_new_block SET bl_user=\''.$db->escape($form['username']).'\' WHERE bl_user_id='.$id) or error('Unable to update ms_new_block', __FILE__, __LINE__, $db->error());
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

==========================================================================================================================================

٧- ئەمە پەڕگەیە بکەوە .

header.php

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

echo implode("\n", $page_head)."\n";

ئەمەى لە پێش زیاد بکە

// New PMS
require PUN_ROOT.'include/pms_new/pmsnheader.php';

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوایی

    $links[] = '<li id="navprofile"'.((PUN_ACTIVE_PAGE == 'profile') ? ' class="isactive"' : '').'><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a></li>';

بیگۆڕە بە

    $links[] = '<li id="navprofile"'.((PUN_ACTIVE_PAGE == 'profile') ? ' class="isactive"' : '').'><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a></li>';
// New PMS
    if ($pun_config['o_pms_enabled'] == '1' && ($pun_user['g_pm'] == 1 || $pun_user['messages_new'] > 0))
        $links[] = '<li id="navpmsnew"'.(((PUN_ACTIVE_PAGE == 'pms_new') || ($pun_user['messages_new'] > 0)) ? ' class="isactive"' : '').'><a href="pmsnew.php">'.$lang_common['PM'].(($pun_user['messages_new'] > 0) ? ' ('.$pun_user['messages_new'].(empty($pun_config['o_pms_flasher']) ? '' : '&nbsp;<img style="border: 0 none; vertical-align: middle;" src="img/flasher.gif" alt="flasher" />' ).')' : '').'</a></li>';
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

==========================================================================================================================================

٨- ئەمە پەڕگەیە بکەوە .

admin_users.php

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

* بگەڕێ بەدوای

        redirect('admin_users.php', $lang_admin_users['Users delete redirect']);

ئەمەى لە پێش زیاد بکە

// New PMS
        require PUN_ROOT.'include/pms_new/common_pmsn.php';
        
        foreach ($user_ids as $user_id)
            pmsn_user_delete($user_id, 2);
// New PMS

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

==========================================================================================================================================

ئەمەش چەند وێنەیەکى پێوەکراوەکە :

  http://www.webchinupload.com/files/pm1.jpg

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  http://www.webchinupload.com/files/pm2.jpg

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  http://www.webchinupload.com/files/pm3.jpg

==========================================================================================================================================

“Be sick of ur sickness! ”  ― Arash Dibazar-

2

وه‌ڵام: [پێوەکراو] چۆنیەتى دامەزراندنی پەیامى تایبەت.

دەست خۆش ...بابەتێکى زۆر بەسوودە.

ڕاستیمان لێ بۆته‌ خه‌ون و خه‌ونیش ڕاستی.
(new_z)

3

وه‌ڵام: [پێوەکراو] چۆنیەتى دامەزراندنی پەیامى تایبەت.

ده‌ست خۆش ماندوو نه‌بیت