• عزيزي العضو

    إذا كنت تواجه مشكلة في تسجيل الدخول الى عضويتك فضلا قم بطلب تغيير كلمة المرور عبر (نسيت كلمة المرور) أو التواصل معنا عبر أيقونة التواصل في الأسفل او البريد [email protected] او من خلال المحادثات على الواتساب عبر الرابط التالي https://wa.link/bluuun او مسح الباركود في الصوره

    إدارة الموقع

حل مشكلة ظهور ايقونة الاعجاب في الرسائل الخاصة بالمنتدى

الاعضاء الذين تم تكريمهم لهذا الشهر
العضو الاكثر نشراً للمواضيع
العضو الاكثر ردوداً
الموضوع الاكثر زيارة
الموضوع الاكثر تفاعلا

لجنة التطوير

عضوية تقوم بجلب المواضيع من مواقع اخرى
هاك الاعجاب فى المواضيع و المشاركات من الهاكات المحبوبة
لدى الاعضاء فى المنتديات
و فى بعض اصدارات الهاك ظهرت مشكلة ظهور اعجابات
عضو ما أو اكثر من عضو فى الرسائل الخاصة
ممن لا يمكنه اصلا مشاهدة تلك الرسائل ، فكيف أعجب بها ؟!!!
فى الحقيقة و بعد البحث عن المشكلة تم الحل بنجاح
التطبيق كان على المنتديات نسخة vb387
و اصدار الهاك كان الاصدار الثانى

الحل كان كالآتى :
لوحة تحكم المنتدى - المنتجات و الاضافات - التحكم بالاضافات البرمجية - المنتج/Product : هاك الاعجاب و المشاركة 2.0
ثم تعديل
postbit_display_complete
من خلال حذف الكود :

كود PHP:

كود:
[LEFT][CODE][COLOR=#000000] [COLOR=#007700]global [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]; 
if([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_onoff'[/COLOR][COLOR=#007700]]) 
{ 
    [/COLOR][COLOR=#0000BB]$vb_option_always_show_buttons [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_always_show_buttons'[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$vb_option_can_user_like_his_posts [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_can_user_like_his_posts'[/COLOR][COLOR=#007700]]; 

    [/COLOR][COLOR=#0000BB]$var_postid [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$post[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]postid[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$var_post_userid [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$post[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]userid[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$var_userid [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]userinfo[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'userid'[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$var_likes [/COLOR][COLOR=#007700]= array(); 
    [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_more_likes_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_max_likes [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]intval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_max_likes'[/COLOR][COLOR=#007700]])) ? [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_max_likes'[/COLOR][COLOR=#007700]] : [/COLOR][COLOR=#0000BB]3[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_share_url [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]urlencode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"http://"[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$_SERVER[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]HTTP_HOST[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000BB]$_SERVER[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"REQUEST_URI"[/COLOR][COLOR=#007700]]); 
     
    if (![/COLOR][COLOR=#0000BB]$vb_option_always_show_buttons[/COLOR][COLOR=#007700]){ 
        [/COLOR][COLOR=#0000BB]$like_share_style [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'hidden'[/COLOR][COLOR=#007700]; 
    } 
     
    [/COLOR][COLOR=#0000BB]$likes_q_by_ali [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]query_read_slave[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]" 
        SELECT like_id, like_postid, like_userid, like_username, like_time 
        FROM vb_like_share 
        WHERE like_postid IN('[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#DD0000]') 
        ORDER BY like_time DESC 
    "[/COLOR][COLOR=#007700]); 
    [/COLOR][COLOR=#0000BB]$likes_count_by_ali [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]num_rows[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes_q_by_ali[/COLOR][COLOR=#007700]); 
    [/COLOR][COLOR=#0000BB]$x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]; 
    while([/COLOR][COLOR=#0000BB]$likes [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]fetch_array[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes_q_by_ali[/COLOR][COLOR=#007700])) 
    { 
        if ([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_userid"[/COLOR][COLOR=#007700]] == [/COLOR][COLOR=#0000BB]$var_userid[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000BB]$var_in_likes [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]true[/COLOR][COLOR=#007700]; 
        } 
        else 
        { 
            [/COLOR][COLOR=#0000BB]$var_likes[/COLOR][COLOR=#007700][] = array( 
                [/COLOR][COLOR=#DD0000]"userid" [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000BB]intval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_userid"[/COLOR][COLOR=#007700]]), 
                [/COLOR][COLOR=#DD0000]"postid" [/COLOR][COLOR=#007700]=>  [/COLOR][COLOR=#0000BB]intval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_postid"[/COLOR][COLOR=#007700]]), 
                [/COLOR][COLOR=#DD0000]"username" [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_username"[/COLOR][COLOR=#007700]]) 
            ); 
        } 
    } 
     
    [/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]count[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$var_likes[/COLOR][COLOR=#007700]); 
    foreach([/COLOR][COLOR=#0000BB]$var_likes [/COLOR][COLOR=#007700]as [/COLOR][COLOR=#0000BB]$like[/COLOR][COLOR=#007700]){ 

            [/COLOR][COLOR=#0000BB]$likes_username [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<a href="member.php?u='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$like[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]userid[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#DD0000]'">'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$like[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]username[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#DD0000]'</a> '[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]","[/COLOR][COLOR=#007700]; 
             
            if ([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]<= [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) 
            { 
                if ( [/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]){ 
                    [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
                } 
                [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$likes_username[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$suffix[/COLOR][COLOR=#007700]; 
            } 
            else 
            { 
                if ([/COLOR][COLOR=#0000BB]$x [/COLOR][COLOR=#007700]<= [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) 
                { 
                    if ( [/COLOR][COLOR=#0000BB]$var_max_likes [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]){ 
                        [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
                    } 
                    [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$likes_username[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$suffix[/COLOR][COLOR=#007700]; 
                    [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]","[/COLOR][COLOR=#007700]; 
                } 
                 
                if ([/COLOR][COLOR=#0000BB]$x [/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) 
                { 
                    if ([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]){ 
                        [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
                    } 
                    [/COLOR][COLOR=#0000BB]$var_more_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$likes_username[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$suffix[/COLOR][COLOR=#007700]; 
                } 
            } 
            [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]++; 
    } 
     
    if ([/COLOR][COLOR=#0000BB]$likes_count_by_ali [/COLOR][COLOR=#007700]>= [/COLOR][COLOR=#0000BB]2[/COLOR][COLOR=#007700]) 
    { 
        [/COLOR][COLOR=#0000BB]$more_link [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]' و <a href="#" onclick="return false" class="show_more_likes">'[/COLOR][COLOR=#007700].([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]' آخرون</a>' [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$more_link[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]' معجبون بهذا'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"أنت و "[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]$var_likes_html[/COLOR][COLOR=#007700]; 
    } 
    elseif([/COLOR][COLOR=#0000BB]$likes_count_by_ali [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]) 
    { 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]' معجب بهذا'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"أنت "[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]$var_likes_html[/COLOR][COLOR=#007700]; 
    } 
     
    [/COLOR][COLOR=#FF8000]// like icons & : 
    [/COLOR][COLOR=#0000BB]$var_seperator [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_seperator'[/COLOR][COLOR=#007700]]); 
    if ([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_only_text'[/COLOR][COLOR=#007700]]) 
    { 
        [/COLOR][COLOR=#0000BB]$var_share_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_share_text'[/COLOR][COLOR=#007700]]); 
        [/COLOR][COLOR=#0000BB]$var_like_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_like_text'[/COLOR][COLOR=#007700]]); 
        [/COLOR][COLOR=#0000BB]$var_dislike_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_dislike_text'[/COLOR][COLOR=#007700]]); 
    } 
    else 
    { 
        [/COLOR][COLOR=#0000BB]$var_share_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<img src="'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_share_url'[/COLOR][COLOR=#007700]]).[/COLOR][COLOR=#DD0000]'" border="0">'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_like_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<img src="'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_like_url'[/COLOR][COLOR=#007700]]).[/COLOR][COLOR=#DD0000]'" border="0">'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_dislike_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<img src="'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_dislike_url'[/COLOR][COLOR=#007700]]).[/COLOR][COLOR=#DD0000]'" border="0">'[/COLOR][COLOR=#007700]; 
    } 
    [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]' 
    <div class="like_share_by_ali" id="like_share_post_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_post_userid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">'[/COLOR][COLOR=#007700]; 
    if([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]userinfo[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'userid'[/COLOR][COLOR=#007700]]) 
    { 
        [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]'<ul class="like_buttons" style="visibility:'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$like_share_style[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]';"> 
            <li class="share_this_by_ali"> 
                <a href="#" onclick="return false" class="like_share_SHARE">'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</a> 
                <div class="share_by_ali"> 
                    <div class="share_header"><strong>مشاركة هذا الرد في</strong></div> 
                    <table cellpadding="0" cellspacing="0" width="270"> 
                        <tr> 
                            <td class="share_td"> 
                                <img src="images/like_share/digg.gif" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://digg.com/submit?phase=2&url='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Digg</a> 
                            </td> 
                            <td class="share_td"> 
                                <img src="images/like_share/delicious.gif" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://del.icio.us/post?url='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Del.icio.us</a> 
                            </td> 
                        </tr> 
                        <tr class="share_seperator"> 
                            <td class="share_td"> 
                                <img src="images/like_share/technorati.gif" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://technorati.com/faves/?add='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Technorati</a> 
                            </td> 
                            <td class="share_td"> 
                                <img src="images/like_share/twitter.png" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://twitter.com/home?status='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Twitter</a> 
                            </td> 
                        </tr> 
                    </table> 
                    <div class="like_share_clear"></div> 
                </div> 
            </li>'[/COLOR][COLOR=#007700]; 
        if ([/COLOR][COLOR=#0000BB]$vb_option_can_user_like_his_posts [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]1 [/COLOR][COLOR=#007700]|| [/COLOR][COLOR=#0000BB]$var_post_userid [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#0000BB]$var_userid[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]' 
                <li class="seperator">  ' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]$var_seperator [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#DD0000]'  </li> 
                <li> 
                    <a href="#" id="btn_like_share_post_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_post_userid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'" onclick="return false" class="like_share_LIKE" '[/COLOR][COLOR=#007700].( ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]'style="display:none"' [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_like_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</a> 
                     
                    <a href="#" id="btn_dis_like_share_post_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_post_userid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'" onclick="return false" class="like_share_DISLIKE" '[/COLOR][COLOR=#007700].( ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"" [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]'style="display:none"'[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_dislike_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</a> 
                </li>'[/COLOR][COLOR=#007700]; 
        } 
    } 
    [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]' 
        </ul><div class="like_share_clear"></div> 
        <div class="ls_likes" '[/COLOR][COLOR=#007700].( ([/COLOR][COLOR=#0000BB]$likes_count_by_ali[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"" [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]'style="display:none"'[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'> 
            '[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_likes_html[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]' 
            <div class="ls_more_likes" style="display:none">'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_more_likes_html[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</div> 
        </div> 
    </div> 
    '[/COLOR][COLOR=#007700]; 
     
      [/COLOR][COLOR=#0000BB]$post[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]message[/COLOR][COLOR=#007700]] .= [/COLOR][COLOR=#0000BB]$var_html[/COLOR][COLOR=#007700];  [/COLOR][/COLOR]
[/LEFT][/CODE]




ووضع الكود التالى مكانه ثم حفظ :
كود PHP:

كود:
[LEFT][CODE][COLOR=#000000] [COLOR=#FF8000]/* 
 * Like & Share product v0.2 (PHP) 
 * Email : [email protected] 
 * (c) Copyright 2012.01.31 
*/ [/COLOR]
[COLOR=#007700]if (([/COLOR][COLOR=#0000BB]THIS_SCRIPT [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#DD0000]'showpost'[/COLOR][COLOR=#007700]) OR ([/COLOR][COLOR=#0000BB]THIS_SCRIPT [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#DD0000]'showthread'[/COLOR][COLOR=#007700])){ 
global [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]; 
if([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_onoff'[/COLOR][COLOR=#007700]]) 
{ 
    [/COLOR][COLOR=#0000BB]$vb_option_always_show_buttons [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_always_show_buttons'[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$vb_option_can_user_like_his_posts [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_can_user_like_his_posts'[/COLOR][COLOR=#007700]]; 

    [/COLOR][COLOR=#0000BB]$var_postid [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$post[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]postid[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$var_post_userid [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$post[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]userid[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$var_userid [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]userinfo[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'userid'[/COLOR][COLOR=#007700]]; 
    [/COLOR][COLOR=#0000BB]$var_likes [/COLOR][COLOR=#007700]= array(); 
    [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_more_likes_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_max_likes [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]intval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_max_likes'[/COLOR][COLOR=#007700]])) ? [/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_max_likes'[/COLOR][COLOR=#007700]] : [/COLOR][COLOR=#0000BB]3[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$var_share_url [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]urlencode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"http://"[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$_SERVER[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]HTTP_HOST[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#0000BB]$_SERVER[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"REQUEST_URI"[/COLOR][COLOR=#007700]]); 
     
    if (![/COLOR][COLOR=#0000BB]$vb_option_always_show_buttons[/COLOR][COLOR=#007700]){ 
        [/COLOR][COLOR=#0000BB]$like_share_style [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'hidden'[/COLOR][COLOR=#007700]; 
    } 
     
    [/COLOR][COLOR=#0000BB]$likes_q_by_ali [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]query_read_slave[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]" 
        SELECT like_id, like_postid, like_userid, like_username, like_time 
        FROM vb_like_share 
        WHERE like_postid IN('[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#DD0000]') 
        ORDER BY like_time DESC 
    "[/COLOR][COLOR=#007700]); 
    [/COLOR][COLOR=#0000BB]$likes_count_by_ali [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]num_rows[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes_q_by_ali[/COLOR][COLOR=#007700]); 
    [/COLOR][COLOR=#0000BB]$x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]; 
    while([/COLOR][COLOR=#0000BB]$likes [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]$db[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]fetch_array[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes_q_by_ali[/COLOR][COLOR=#007700])) 
    { 
        if ([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_userid"[/COLOR][COLOR=#007700]] == [/COLOR][COLOR=#0000BB]$var_userid[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000BB]$var_in_likes [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]true[/COLOR][COLOR=#007700]; 
        } 
        else 
        { 
            [/COLOR][COLOR=#0000BB]$var_likes[/COLOR][COLOR=#007700][] = array( 
                [/COLOR][COLOR=#DD0000]"userid" [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000BB]intval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_userid"[/COLOR][COLOR=#007700]]), 
                [/COLOR][COLOR=#DD0000]"postid" [/COLOR][COLOR=#007700]=>  [/COLOR][COLOR=#0000BB]intval[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_postid"[/COLOR][COLOR=#007700]]), 
                [/COLOR][COLOR=#DD0000]"username" [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$likes[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"like_username"[/COLOR][COLOR=#007700]]) 
            ); 
        } 
    } 
     
    [/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]count[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$var_likes[/COLOR][COLOR=#007700]); 
    foreach([/COLOR][COLOR=#0000BB]$var_likes [/COLOR][COLOR=#007700]as [/COLOR][COLOR=#0000BB]$like[/COLOR][COLOR=#007700]){ 

            [/COLOR][COLOR=#0000BB]$likes_username [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<a href="member.php?u='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$like[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]userid[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#DD0000]'">'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$like[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]username[/COLOR][COLOR=#007700]].[/COLOR][COLOR=#DD0000]'</a> '[/COLOR][COLOR=#007700]; 
            [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]","[/COLOR][COLOR=#007700]; 
             
            if ([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]<= [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) 
            { 
                if ( [/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]){ 
                    [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
                } 
                [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$likes_username[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$suffix[/COLOR][COLOR=#007700]; 
            } 
            else 
            { 
                if ([/COLOR][COLOR=#0000BB]$x [/COLOR][COLOR=#007700]<= [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) 
                { 
                    if ( [/COLOR][COLOR=#0000BB]$var_max_likes [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]){ 
                        [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
                    } 
                    [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$likes_username[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$suffix[/COLOR][COLOR=#007700]; 
                    [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]","[/COLOR][COLOR=#007700]; 
                } 
                 
                if ([/COLOR][COLOR=#0000BB]$x [/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) 
                { 
                    if ([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]){ 
                        [/COLOR][COLOR=#0000BB]$suffix [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]; 
                    } 
                    [/COLOR][COLOR=#0000BB]$var_more_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$likes_username[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$suffix[/COLOR][COLOR=#007700]; 
                } 
            } 
            [/COLOR][COLOR=#0000BB]$x[/COLOR][COLOR=#007700]++; 
    } 
     
    if ([/COLOR][COLOR=#0000BB]$likes_count_by_ali [/COLOR][COLOR=#007700]>= [/COLOR][COLOR=#0000BB]2[/COLOR][COLOR=#007700]) 
    { 
        [/COLOR][COLOR=#0000BB]$more_link [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]> [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]' و <a href="#" onclick="return false" class="show_more_likes">'[/COLOR][COLOR=#007700].([/COLOR][COLOR=#0000BB]$likes_count [/COLOR][COLOR=#007700]- [/COLOR][COLOR=#0000BB]$var_max_likes[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]' آخرون</a>' [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#0000BB]$more_link[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]' معجبون بهذا'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"أنت و "[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]$var_likes_html[/COLOR][COLOR=#007700]; 
    } 
    elseif([/COLOR][COLOR=#0000BB]$likes_count_by_ali [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]1[/COLOR][COLOR=#007700]) 
    { 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]' معجب بهذا'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]= ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"أنت "[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_likes_html [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000BB]$var_likes_html[/COLOR][COLOR=#007700]; 
    } 
     
    [/COLOR][COLOR=#FF8000]// like icons & : 
    [/COLOR][COLOR=#0000BB]$var_seperator [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_seperator'[/COLOR][COLOR=#007700]]); 
    if ([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_only_text'[/COLOR][COLOR=#007700]]) 
    { 
        [/COLOR][COLOR=#0000BB]$var_share_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_share_text'[/COLOR][COLOR=#007700]]); 
        [/COLOR][COLOR=#0000BB]$var_like_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_like_text'[/COLOR][COLOR=#007700]]); 
        [/COLOR][COLOR=#0000BB]$var_dislike_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_dislike_text'[/COLOR][COLOR=#007700]]); 
    } 
    else 
    { 
        [/COLOR][COLOR=#0000BB]$var_share_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<img src="'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_share_url'[/COLOR][COLOR=#007700]]).[/COLOR][COLOR=#DD0000]'" border="0">'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_like_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<img src="'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_like_url'[/COLOR][COLOR=#007700]]).[/COLOR][COLOR=#DD0000]'" border="0">'[/COLOR][COLOR=#007700]; 
        [/COLOR][COLOR=#0000BB]$var_dislike_btn [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]'<img src="'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]htmlspecialchars_uni[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]options[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'ls_dislike_url'[/COLOR][COLOR=#007700]]).[/COLOR][COLOR=#DD0000]'" border="0">'[/COLOR][COLOR=#007700]; 
    } 
    [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#DD0000]' 
    <div class="like_share_by_ali" id="like_share_post_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_post_userid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">'[/COLOR][COLOR=#007700]; 
    if([/COLOR][COLOR=#0000BB]$vbulletin[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000BB]userinfo[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'userid'[/COLOR][COLOR=#007700]]) 
    { 
        [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]'<ul class="like_buttons" style="visibility:'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$like_share_style[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]';"> 
            <li class="share_this_by_ali"> 
                <a href="#" onclick="return false" class="like_share_SHARE">'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</a> 
                <div class="share_by_ali"> 
                    <div class="share_header"><strong>مشاركة هذا الرد في</strong></div> 
                    <table cellpadding="0" cellspacing="0" width="270"> 
                        <tr> 
                            <td class="share_td"> 
                                <img src="images/like_share/digg.gif" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://digg.com/submit?phase=2&url='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Digg</a> 
                            </td> 
                            <td class="share_td"> 
                                <img src="images/like_share/delicious.gif" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://del.icio.us/post?url='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Del.icio.us</a> 
                            </td> 
                        </tr> 
                        <tr class="share_seperator"> 
                            <td class="share_td"> 
                                <img src="images/like_share/technorati.gif" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://technorati.com/faves/?add='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Technorati</a> 
                            </td> 
                            <td class="share_td"> 
                                <img src="images/like_share/twitter.png" width="18px" height="18px" alt="" /><a rel="nofollow" href="http://twitter.com/home?status='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_share_url[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'">Twitter</a> 
                            </td> 
                        </tr> 
                    </table> 
                    <div class="like_share_clear"></div> 
                </div> 
            </li>'[/COLOR][COLOR=#007700]; 
        if ([/COLOR][COLOR=#0000BB]$vb_option_can_user_like_his_posts [/COLOR][COLOR=#007700]== [/COLOR][COLOR=#0000BB]1 [/COLOR][COLOR=#007700]|| [/COLOR][COLOR=#0000BB]$var_post_userid [/COLOR][COLOR=#007700]!= [/COLOR][COLOR=#0000BB]$var_userid[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]' 
                <li class="seperator">  ' [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000BB]$var_seperator [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#DD0000]'  </li> 
                <li> 
                    <a href="#" id="btn_like_share_post_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_post_userid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'" onclick="return false" class="like_share_LIKE" '[/COLOR][COLOR=#007700].( ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]'style="display:none"' [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]""[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_like_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</a> 
                     
                    <a href="#" id="btn_dis_like_share_post_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_postid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'_'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_post_userid[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'" onclick="return false" class="like_share_DISLIKE" '[/COLOR][COLOR=#007700].( ([/COLOR][COLOR=#0000BB]$var_in_likes[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"" [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]'style="display:none"'[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_dislike_btn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</a> 
                </li>'[/COLOR][COLOR=#007700]; 
        } 
    } 
    [/COLOR][COLOR=#0000BB]$var_html [/COLOR][COLOR=#007700].= [/COLOR][COLOR=#DD0000]' 
        </ul><div class="like_share_clear"></div> 
        <div class="ls_likes" '[/COLOR][COLOR=#007700].( ([/COLOR][COLOR=#0000BB]$likes_count_by_ali[/COLOR][COLOR=#007700]) ? [/COLOR][COLOR=#DD0000]"" [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#DD0000]'style="display:none"'[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#DD0000]'> 
            '[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_likes_html[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]' 
            <div class="ls_more_likes" style="display:none">'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]$var_more_likes_html[/COLOR][COLOR=#007700].[/COLOR][COLOR=#DD0000]'</div> 
        </div> 
    </div> 
    '[/COLOR][COLOR=#007700]; 
     
    [/COLOR][COLOR=#0000BB]$post[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]message[/COLOR][COLOR=#007700]] .= [/COLOR][COLOR=#0000BB]$var_html[/COLOR][COLOR=#007700]; 
} 
  }  [/COLOR][/COLOR]
[/LEFT][/CODE]


ومن ثم حفظ العمل
 
عودة
أعلى