النتائج 1 إلى 3 من 3

الموضوع: هاك ارسال رسالة خاص للعضو عند التسجيل(3.0.0)

  1. #1
    عضو نشيط
    تاريخ التسجيل
    Nov 2005
    المشاركات
    91

    هاك ارسال رسالة خاص للعضو عند التسجيل(3.0.0)



    السلام

    اسم الهاك:New User Welcome PM v2

    مبرمج الهاك: rob_daemon

    المعرب: XeZoom.com
    يتطلب الهاك اضافة بعض الاوامر


    الاوامر:


    اضف هذي الاوامر في قاعدة بيانات منتداك sql عن طريق phpMyAdmi-----------------

    // ##############################################################################################
    كود PHP:

    INSERT INTO phrase 
    (phraseidlanguageidvarname, `text`, phrasetypeidVALUES (NULL'0''setting_regpmfrom_title''User Who Sends Automatic PM Upon Registration''5000');
    INSERT INTO phrase (phraseidlanguageidvarname, `text`, phrasetypeidVALUES (NULL'0',  'setting_regpmfrom_desc''Enter the user ID of the person whose account you\'d like to be used when sending new users a welcome PM upon registering.''5000');


    INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmtext''register''Hi $username and welcome to $bbtitle!\r\n\r\nWe appreciate you taking the time to register on our site and we hope you enjoy your stay.\r\n\r\nIf you have any questions, you can ask an administrator for assistance.\r\n\r\nWe hope to see you around.\r\n\r\nSincerely,\r\nThe $bbtitle staff''Hi $username and welcome to $bbtitle!\r\n\r\nWe appreciate you taking the time to register on our site and we hope you enjoy your stay.\r\n\r\nIf you have any questions, you can ask an administrator for assistance.\r\n\r\nWe hope to see you around.\r\n\r\nSincerely,\r\nThe $bbtitle staff''textarea'15000);
    INSERT INTO phrase (phraseidlanguageidvarname, `text`, phrasetypeidVALUES (NULL'0''setting_regpmtext_title''Welcome PM Text''5000');
    INSERT INTO phrase (phraseidlanguageidvarname, `text`, phrasetypeidVALUES (NULL'0',  'setting_regpmtext_desc''Set the text of the PM sent to all new users.<br />\r<br />\rNote: You can use the following variables to specify the <b>user\'s</b> information: $username, $userid, $email. And you can use the $bbtitle to specify the board\'s name.''5000');


    INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('regpmtitle''register''Welcome to $bbtitle!''Welcome to $bbtitle!'''16000);
    INSERT INTO phrase (phraseidlanguageidvarname, `text`, phrasetypeidVALUES (NULL'0''setting_regpmtitle_title''Title Of the PM That is Automatically Sent to New Users''5000');
    INSERT INTO phrase (phraseidlanguageidvarname, `text`, phrasetypeidVALUES (NULL'0',  'setting_regpmtitle_desc''Set the title of the PM that is sent to all new users automatically. You can use the same variables as the ones that you can use for the PM text (see above).''5000');

    // ############################################################################################## 

    // ##############################################################################################

    ---------------- الان / افتح ملف register.php (إذا أنت تَستعملُ vB 3.0.2 أَو vB 3.0.3 اذهب الى"to do.txt") وابْحثُ عن (سطر 775):

    تجده في المرفقات. .
    // ##############################################################################################
    كود PHP:
        if ($vboptions['newuseremail'] != '')
            {
                if (
    $havefields)
                {
                     
    $DB_site->data_seek(0$profilefields);
                     while (
    $profilefield $DB_site->fetch_array($profilefields))
                     {
                        
    $varname "field$profilefield[profilefieldid]";
                        
    $cfield = $$varname;
                        
    $customfields .= "$profilefield[title] : $cfield\n";
                     }
                }

                
    $username $_POST['username'];
                
    $email $_POST['email'];
                eval(
    fetch_email_phrases('newuser'0));

                
    vbmail($vboptions['newuseremail'], $subject$message);
            } 
    ####################################################################
    --------------------------------- ا و -------------------------------
    ####################################################################

    كود PHP:
    if ($vboptions['newuseremail'] != '')
            {
                if (
    $havefields)
                {
                     
    $DB_site->data_seek(0$profilefields);
                     while (
    $profilefield $DB_site->fetch_array($profilefields))
                     {
                        
    $varname "field$profilefield[profilefieldid]";
                        
    $cfield = $$varname;
                        
    $customfields .= "$profilefield[title] : $cfield\n";
                     }
                }

                
    $username $_POST['username'];
                
    $email $_POST['email'];
                eval(
    fetch_email_phrases('newuser'0));

                
    $newemails explode(' '$vboptions['newuseremail']);
                foreach (
    $newemails AS $toemail)
                {
                    if (
    trim($toemail))
                    {
                        
    vbmail($toemail$subject$message);
                    }
                }
            } 
    // ##############################################################################################

    ------------ بعداضف:

    // ##############################################################################################

    كود PHP:
            // ###################################################################
            // # WELCOME PM HACK BY rob_daemon
            // ###################################################################
            
            
    $username $_POST['username'];
            
            
    // Process each one of the replacement vars
            
    $vars = array(
                
    '$bbtitle' => $vboptions['bbtitle'], 
                
    '$username' => $username
                
    '$email' => $email
                
    '$userid' => $userid
            
    );
            
            
    $pmoptions['regpmtext'] = $vboptions['regpmtext'];
            
    $pmoptions['regpmtitle'] = $vboptions['regpmtitle'];
            
    $pmoptions['regpmfrom'] = $vboptions['regpmfrom'];
            
            
    // Now that we have the options, we need to process eaach of the 
            // vars we can use
            
    foreach($vars AS $_key => $_value)
            {
                
    $pmoptions['regpmtext'] = str_replace($_key$_value$pmoptions['regpmtext']);
                
    $pmoptions['regpmtitle'] = str_replace($_key$_value$pmoptions['regpmtitle']);
            }

            
    $get_pm_from $DB_site->query_first("SELECT username,userid FROM " TABLE_PREFIX "user WHERE userid=$pmoptions[regpmfrom]");
            
            
    // Send the new owner a PM
            
    $DB_site->query(
                
    "INSERT INTO " TABLE_PREFIX "pmtext
                (
                    fromuserid,
                    fromusername,
                    title,
                    message,
                    touserarray,
                    iconid,
                    dateline,
                    showsignature,
                    allowsmilie
                )
                VALUES
                (
                    
    $get_pm_from[userid],
                    '" 
    addslashes($get_pm_from['username']) . "',
                    '" 
    addslashes($pmoptions['regpmtitle']) . "',
                    '" 
    addslashes($pmoptions['regpmtext']) . "',
                    '" 
    addslashes(serialize(array($userid => $username))) . "',
                    0,
                    " 
    TIMENOW ",
                    1,
                    1
                )"
            
    );
            
            
    $pmtextid $DB_site->insert_id();
            
            
    $DB_site->query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid=$userid");
            
    $DB_site->query(
            
    "INSERT INTO " TABLE_PREFIX "pm 
                (
                    pmtextid, 
                    userid, 
                    folderid, 
                    messageread
                ) 
                VALUES 
                (
                    '
    $pmtextid', 
                    '
    $userid', 
                    '0', 
                    '0'
                )"
            
    );
            
    // ###################################################################
            // # END WELCOME PM HACK
            // ################################################################### 
    // ##############################################################################################


    --------------------------------------------------------------------------------------
    الا ن اذهب الى لوحة التجكم المنتدى. .

    لوحة تحكم باللغة الانجلزية


    // ############################################################################################## \\

    T go: Admin CP --> Options --> vBulletin Options --> User Registration Options --> Save


    يجب وضع الخيار نعم السماح لللاعضاء بدون تفعيل بالبريد عندما تريد وصول الرسائل الى العضو المسجل




    شوف المرفقات الصور
    ---------------------
    لوحة تحكم عربية

    اذهب الى خيارت المنتد ى -->> خيارات التّسجيل -->>>


    تلاقي التعديل بالصور





    الصور المرفقة الصور المرفقة  


  2. #2
    عضو نشيط
    تاريخ التسجيل
    Nov 2005
    المشاركات
    91

    تابع



    هلا

    يمكنك تغيير الرسالة عن طريق هذا
    كود PHP:
    Hi $username and welcome to $bbtitle!

    We appreciate you taking the time to register on our site and we hope you enjoy your stay.

    If 
    you have any questionsyou can ask an administrator for assistance.

    We hope to see you around.

    Sincerely,
    The $bbtitle staff 



    1- نصالرسالة

    2- عنوان الرسالة







  3. #3


    سلمت يمينك وبالتوفيق شكرا لك





    __________________
    حسابي فيسبوك
    https://www.facebook.com/ahmedo.vip/

    المبرمج
    http://www.almprmg.com/

    شركة اوريكو لتكنولوجيا المعلومات - استضافة وبرمجة المواقع | خدمات السوشيال ميديا
    http://www.orico.com.eg





ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض