معهد دعم اتش فى اى بى اس لحلول الويب - Powered by vBulletin


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

الموضوع: هاك Songs in profile

  1. #1
    عضو جديد


    تاريخ التسجيل: Jun 2011
    رقم العضوية: 7
    المشاركات: 2,181
    HVIPS5 غير متواجد حالياً

    Arrow هاك Songs in profile


    الهاك من برمجة: JB Lee (RuneCore)
    تطوير الهاك: ZaIeD

    وظيفة الهاك.. تشغيل مقطع صوتي بداخل الملف الشخصي.. ويختاره العضو كما يشاء من خلال لوحة تحكمه..


    الهاك الآن يعمل بكفاءة مع نسخ الجيل الثاني..


    خطوات التركيب:


    الهاك يعتمد على وجود هاك التنصيب الشامل


    بعد تحميل المرفق وفك ضغطه قم برفع الملفات على المسارات الآتية:


    mod_install/ppsong.xml >> mod_install

    playerSingle.swf >> إلى مجلد منتداك الرئيسي
    swfobject.js >> إلى مجلد منتداك الرئيسي

    بعد ذلك توجه للوحة تحكم منتداك وقم بتنصيب الهاك من خلال هاك التنصيب الشامل


    التعديل على الملفات


    افتح الملف الموجود على المسار التالي بداخل مجلد منتداك الرئيسي:


    sources/action_public/profile.php


    ابحث عن:


    كود HTML:
            $info['msn_name']       = $member['msnname']    ? $member['msnname']    : $this->ipsclass->lang['no_info'];


    أضف أسفله:

    كود PHP:
            $info['ppsong']         = $member['ppsong']             ? $member['ppsong']     : $this->ipsclass->lang['no_info'];
            
    $info['ppsong_author']   = $member['ppsong_author']      ? $member['ppsong_author'] : $this->ipsclass->lang['no_info'];
            
    $info['ppsong_title']    = $member['ppsong_title']       ? $member['ppsong_title']      : $this->ipsclass->lang['no_info']; 
    وابحث عن:

    كود PHP:
            $info['msn_name']       = $member['msnname']    ? $member['msnname']    : $this->ipsclass->lang['no_info']; 


    وأضف أسفله:

    كود PHP:
                    $info['ppsong']                          = $member['ppsong']            ? $member['ppsong']             : $this->ipsclass->lang['no_info']; 
                    
    $info['ppsong_author']           = $member['ppsong_author']     ? $member['ppsong_author']      : $this->ipsclass->lang['no_info'];
                    
    $info['ppsong_title']            = $member['ppsong_title']      ? $member['ppsong_title']       : $this->ipsclass->lang['no_info']; 
    وابحث عن:


    كود PHP:
    $member['_msn_name'] = $member['msnname']       ? $this->ipsclass->txt_wordwrap$member['msnname'], '25' )     : $this->ipsclass->lang['no_info']; 


    وأضف أسفله:

    كود PHP:
                    $member['_ppsong']              = $member['ppsong']     ? $member['ppsong']     : $this->ipsclass->lang['no_info'];
                    
    $member['_ppsong_author']        = $member['ppsong_author']     ? $member['ppsong_author']      : $this->ipsclass->lang['no_info'];
                    
    $member['_ppsong_title']         = $member['ppsong_title']      ? $member['ppsong_title']       : $this->ipsclass->lang['no_info']; 
    احفظ تعديلاتك وأعد رفع الملف إلى مكانه مرة أخرى...

    افتح الملف الموجود على المسار التالي:


    sources/lib/func_usercp.php


    ابحث عن:

    كود PHP:
                     $bet = array( 'website'         => $this->ipsclass->input['WebSite'],
                                             
    'icq_number' => intval($this->ipsclass->input['ICQNumber']),
                                             
    'aim_name'     => $this->ipsclass->input['AOLName'],
                                             
    'yahoo'        => $this->ipsclass->input['YahooName'],
                                             
    'msnname'      => $this->ipsclass->input['MSNName'],
                                             
    'location'     => $this->class->parser->bad_words$this->ipsclass->input['Location'] ),
                                             
    'interests' => $this->class->parser->bad_words$this->ipsclass->input['Interests'] ),
                                            ); 
    استبدله بـ:

    كود PHP:
                    $bet = array( 'website'         => $this->ipsclass->input['WebSite'],
                                             
    'icq_number' => intval($this->ipsclass->input['ICQNumber']),
                                             
    'aim_name'     => $this->ipsclass->input['AOLName'],
                                             
    'yahoo'        => $this->ipsclass->input['YahooName'],
                                             
    'ppsong'       => $this->ipsclass->input['ppsong'],
                                             
    'ppsong_author' => $this->ipsclass->input['ppsong_author'],
                                             
    'ppsong_title' => $this->ipsclass->input['ppsong_title'],
                                             
    'msnname'      => $this->ipsclass->input['MSNName'],
                                             
    'location'     => $this->class->parser->bad_words$this->ipsclass->input['Location'] ),
                                             
    'interests' => $this->class->parser->bad_words$this->ipsclass->input['Interests'] ),
                                            ); 
    احفظ الملف وأعد رفعه..

    افتح الملف الموجود على المسار التالي:


    sources/action_admin/member.php


    ابحث عن:

    كود PHP:
            $form['msnname']        = $this->ipsclass->adskin->form_input"msnname" $mem['msnname'] ); 


    أضف أسفله:

    كود PHP:
            $form['ppsong']                 = $this->ipsclass->adskin->form_input"ppsong"         $mem['ppsong'] );
            
    $form['ppsong_author']  = $this->ipsclass->adskin->form_input"ppsong_author"  $mem['ppsong_author'] );
            
    $form['ppsong_title']   = $this->ipsclass->adskin->form_input"ppsong_title"   $mem['ppsong_title'] ); 
    وابحث عن:
    كود PHP:
                    $this->ipsclass->DB->do_update'member_extra', array (
                                                                                                                                    
    'aim_name'      => $this->ipsclass->input['aim_name'],
                                                                                                                                    
    'icq_number'    => intval($this->ipsclass->input['icq_number']),
                                                                                                                                    
    'yahoo'         => $this->ipsclass->input['yahoo'],
                                                                                                                                    
    'msnname'       => $this->ipsclass->input['msnname'],
                                                                                                                                    
    'website'       => $this->ipsclass->input['website'],
                                                                                                                                    
    'avatar_location' => $this->ipsclass->input['avatar'],
                                                                                                                                    
    'avatar_size'   => $this->ipsclass->input['avatar_size'],
                                                                                                                                    
    'avatar_type'   => $avatar_type,
                                                                                                                                    
    'location'      => $this->ipsclass->input['location'],
                                                                                                                                    
    'interests'     => $this->ipsclass->input['interests'],
                                                                                                                                    
    'signature'     => $signature,
                                                                                                                             ), 
    'id='.$this->ipsclass->input['mid'] ); 
    واستبدله بـ:
    كود PHP:
                    $this->ipsclass->DB->do_update'member_extra', array (
                                                                                                                                    
    'aim_name'      => $this->ipsclass->input['aim_name'],
                                                                                                                                    
    'icq_number'    => intval($this->ipsclass->input['icq_number']),
                                                                                                                                    
    'yahoo'         => $this->ipsclass->input['yahoo'],
                                                                                                                                    
    'msnname'       => $this->ipsclass->input['msnname'],
                                                                                                                                    
    'ppsong'        => $this->ipsclass->input['ppsong'],
                                                                                                                                    
    'ppsong_author' => $this->ipsclass->input['ppsong_author'],
                                                                                                                                    
    'ppsong_title'  => $this->ipsclass->input['ppsong_title'],
                                                                                                                                    
    'website'       => $this->ipsclass->input['website'],
                                                                                                                                    
    'avatar_location' => $this->ipsclass->input['avatar'],
                                                                                                                                    
    'avatar_size'   => $this->ipsclass->input['avatar_size'],
                                                                                                                                    
    'avatar_type'   => $avatar_type,
                                                                                                                                    
    'location'      => $this->ipsclass->input['location'],
                                                                                                                                    
    'interests'     => $this->ipsclass->input['interests'],
                                                                                                                                    
    'signature'     => $signature,
                                                                                                                             ), 
    'id='.$this->ipsclass->input['mid'] ); 
    وابحث عن:
    كود PHP:
                            $mem_array = array(
                                                                    
    'title'         => $this->ipsclass->input['title'],
                                                                    
    'aim_name'      => $this->ipsclass->input['aim_name'],
                                                                    
    'icq_number' => $this->ipsclass->input['icq_number'],
                                                                    
    'yahoo'         => $this->ipsclass->input['yahoo'],
                                                                    
    'msnname'       => $this->ipsclass->input['msnname'],
                                                                    
    'website'       => $this->ipsclass->input['website'],
                                                                    
    'location'      => $this->ipsclass->input['location'],
                                                                    
    'interests'     => $this->ipsclass->input['interests'],
                                                                    
    'id'             => $this->ipsclass->input['mid']
                                                             ); 
    واستبدله بـ:
    كود PHP:
                            $mem_array = array(
                                                                    
    'title'         => $this->ipsclass->input['title'],
                                                                    
    'aim_name'      => $this->ipsclass->input['aim_name'],
                                                                    
    'icq_number' => $this->ipsclass->input['icq_number'],
                                                                    
    'yahoo'         => $this->ipsclass->input['yahoo'],
                                                                    
    'msnname'       => $this->ipsclass->input['msnname'],
                                                                    
    'ppsong'        => $this->ipsclass->input['ppsong'],
                                                                    
    'ppsong_author'=> $this->ipsclass->input['ppsong_author'],
                                                                    
    'ppsong_title' => $this->ipsclass->input['ppsong_title'],
                                                                    
    'website'       => $this->ipsclass->input['website'],
                                                                    
    'location'      => $this->ipsclass->input['location'],
                                                                    
    'interests'     => $this->ipsclass->input['interests'],
                                                                    
    'id'             => $this->ipsclass->input['mid']
                                                             ); 
    احفظ الملف وأعد رفعه مرة أخرى..


    افتح الملف الموجود على المسار التالي:


    skin_acp/IPB2_Standard/acp_skin_html/cp_skin_member.php


    ابحث عن:

    كود PHP:
                                    <tr>
                                            <
    td width='40%' class='tablerow1'><strong>MessengerMSN</strong></td>
                                            <
    td width='60%' class='tablerow2'>{$form['msnname']}</td>
                                     </
    tr
    أضف أسفله:

    كود PHP:
            <tr>
                                            <
    td width='40%' class='tablerow1'><strong>Personal Profile Song URL</strong></td>
                                            <
    td width='60%' class='tablerow2'>{$form['ppsong']}</td>
                                     </
    tr>                           
            <
    tr>
                                            <
    td width='40%' class='tablerow1'><strong>Personal Profile Song Author</strong></td>
                                            <
    td width='60%' class='tablerow2'>{$form['ppsong_author']}</td>
                                     </
    tr>                           
            <
    tr>
                                            <
    td width='40%' class='tablerow1'><strong>Personal Profile Song Title</strong></td>
                                            <
    td width='60%' class='tablerow2'>{$form['ppsong_title']}</td>
                                     </
    tr
    احفظ الملف وأعد رفعه..


    تعديلات الاستايلات


    من لوحة تحكم منتداك:


    Look & Feel -> Template HTML -> User Control Panel -> personal_panel


    ابحث عن:

    كود PHP:
             <tr>
                    <
    td width="30%" class="row1" style='padding:6px;'>{$this->ipsclass->lang['msn']}</td>
                    <
    td width="70%" class="row2" style='padding:6px;'><input type="text" size="40" maxlength="30" name="MSNName" value="{$member['msnname']}/></td>
            </
    tr
    أضف أسفله:
    كود PHP:
            <if="$this->ipsclass->vars['ppsong_enable']"><if="in_array( $this->ipsclass->member['mgroup'], explode( ",", $this->ipsclass->vars['ppsong_groups'] ) )"><tr>
                    <
    td width="30%" class="row1" style='padding:6px;'><b>رابط المسار الصوتي</b></td>
                    <
    td width="70%" class="row2" style='padding:6px;'><input type="text" size="40" maxlength="150" name="ppsong" value="{$member['ppsong']}/></td>
            </
    tr>
            <
    tr>
                    <
    td width="30%" class="row1" style='padding:6px;'><b>صاحب المسار الصوتي</b></td>
                    <
    td width="70%" class="row2" style='padding:6px;'><input type="text" size="40" maxlength="40" name="ppsong_author" value="{$member['ppsong_author']}/></td>
            </
    tr>
            <
    tr>
                    <
    td width="30%" class="row1" style='padding:6px;'><b>عنوان المسار الصوتي</b></td>
                    <
    td width="70%" class="row2" style='padding:6px;'><input type="text" size="40" maxlength="40" name="ppsong_title" value="{$member['ppsong_title']}/></td>
            </
    tr></if></if> 
    ثم قم بحفظ القالب


    من لوحة تحكم منتداك أيضاً:


    Look & Feel -> Template HTML -> Profile View -> personal_portal_main


    ابحث عن:


    كود PHP:
                            <!-- / Contact Information --> 


    أضف أسفلها:

    كود PHP:
    <if="$this->ipsclass->vars['ppsong_enable']"><if="$member['ppsong']"><div class='pp-header'>{$this->ipsclass->lang['ppsong_lang']}</div>
    <
    div class='row1' style='padding:6px; margin-bottom:1px; padding-left:10px'>
    <
    div id='pp-entry-contact-wrap-ppsong_author'>
                                            {
    $this->ipsclass->lang['ppsong_author_lang']} <span id='pp-entry-contact-entry-ppsong_author'>{$member['_ppsong_author']}</span>
                                    </
    div>
    <
    div id='pp-entry-contact-wrap-ppsong_title'>
                                            {
    $this->ipsclass->lang['ppsong_title_lang']} <span id='pp-entry-contact-entry-ppsong_title'>{$member['_ppsong_title']}</span>
                                    </
    div><br />
                                    <
    div id='pp-entry-contact-wrap-ppsong'>
    <
    script type="text/javascript" src="swfobject.js"></script>
    <div id="flashPlayer">
     This text will be replaced by the flash music player.
    </div>

    <script type="text/javascript">
     var so = new SWFObject("playerSingle.swf", "mymovie", "192", "67", "7", "#FFFFFF");
     <if="$this->ipsclass->vars['ppsong_autostart']">so.addVariable("autoPlay", "yes");<else />so.addVariable("autoPlay", "no");</if>
     so.addVariable("soundPath", "{$member['_ppsong']}");
     so.write("flashPlayer");
    </script>
                                    </div>
    </div></if></if> 
    التحكم في إعدادات الهاك:

    من لوحة تحكم منتداك ثم: Tools and Settings -> [RC23]Songs in Profiles


    أتمنى عدم إٍستخدام الهاك في ما قد يغضب الله تعالى من أغاني وصوتيات تافهه..


    إنتهى
    نقره لتكبير أو تصغير الصورة ونقرتين لعرض الصورة في صفحة مستقلة بحجمها الطبيعي
    الملفات المرفقة

 

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

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