- المشاركات
- 4,550
- الحلول
- 1
- مستوى التفاعل
- 1,120
- النقاط
- 113
هاك تنبيه الرسائل بشكل مميز
هاك تنبيه الرسائل بشكل مميز بتقنية
صاحب الهاك:emoticon-0144-nod: : TheWindows7Site
ربط الهاك الاصلي: http://www.vbulletin.org/forum/showthread.php?t=254231
من تعريب فريق الرحبة Dr.osamA
وصف الهاك:
هذا الهاك يقوم بتعديل جميل على الرسالة المنبثقة التي تبلغ العضو بوجود رسالة خاصة
طبعا الصورة توضح القصد و هي ايضا حاليا موجودة في الرحبة انظر الصورة المرفقة
التركيب:
اولاً تحميل الملف المرفق و رفعه لمجلد منتداك
ثانيا نفتح قالب headinclude و نضيف الى اخرهالكود التالي
كود:
[B][B][SIZE=3][COLOR=#000000][COLOR=#007700]<!-- [/COLOR][COLOR=#0000bb]TW7S [/COLOR][COLOR=#007700]- New [/COLOR][COLOR=#0000bb]Way To Display Notifications [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]jQuery[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]CSS[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]jGrowl[/COLOR][COLOR=#007700]) -->
<[/COLOR][COLOR=#0000bb]script type[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"text/javascript" [/COLOR][COLOR=#0000bb]src[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"jscripts/tw7s_notifications/jquery-1.4.2.js"[/COLOR][COLOR=#007700]>[/COLOR][COLOR=#0000bb]</script>[/COLOR]
<script type="text/javascript" src="jscripts/tw7s_notifications/jquery.jgrowl.js"></script>
<link href="jscripts/tw7s_notifications/jquery.jgrowl.css" rel="stylesheet" type="text/css"/>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) --> [/COLOR][/SIZE][/B][/B]
ثالثا نفتح قالب header و نبحث عن الكود التالي
كود:
[B][B][SIZE=3][COLOR=#000000][COLOR=#007700]<[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:if [/COLOR][COLOR=#0000bb]condition[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"$notifications_total"[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]li [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"popupmenu notifications" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"notifications"[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]a [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"popupctrl" [/COLOR][COLOR=#0000bb]href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"usercp.php{vb:raw session.sessionurl_q}"[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]rawphrase your_notifications[/COLOR][COLOR=#007700]}: <[/COLOR][COLOR=#0000bb]span [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"notifications-number"[/COLOR][COLOR=#007700]><[/COLOR][COLOR=#0000bb]strong[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]raw notifications_total[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]strong[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]span[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]a[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]ul [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"popupbody popuphover"[/COLOR][COLOR=#007700]>
{[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]raw notifications_menubits[/COLOR][COLOR=#007700]}
</[/COLOR][COLOR=#0000bb]ul[/COLOR][COLOR=#007700]>
</[/COLOR][COLOR=#0000bb]li[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:else />
<[/COLOR][COLOR=#0000bb]li [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"popupmenu nonotifications" [/COLOR][COLOR=#0000bb]id[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"nonotifications"[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]a [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"popupctrl" [/COLOR][COLOR=#0000bb]href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"usercp.php{vb:raw session.sessionurl_q}"[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]rawphrase your_notifications[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]a[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]ul [/COLOR][COLOR=#007700]class=[/COLOR][COLOR=#dd0000]"popupbody popuphover"[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]li[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]rawphrase no_new_messages[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]li[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]li[/COLOR][COLOR=#007700]><[/COLOR][COLOR=#0000bb]a href[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"private.php{vb:raw session.sessionurl_q}"[/COLOR][COLOR=#007700]>{[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#0000bb]rawphrase inbox[/COLOR][COLOR=#007700]}</[/COLOR][COLOR=#0000bb]a[/COLOR][COLOR=#007700]></[/COLOR][COLOR=#0000bb]li[/COLOR][COLOR=#007700]>
</[/COLOR][COLOR=#0000bb]ul[/COLOR][COLOR=#007700]>
</[/COLOR][COLOR=#0000bb]li[/COLOR][COLOR=#007700]>
</[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:if>[/COLOR][/COLOR][/SIZE][/B][/B]
كود:
[B][B][SIZE=3][COLOR=#000000][COLOR=#007700]<!-- [/COLOR][COLOR=#0000bb]TW7S [/COLOR][COLOR=#007700]- New [/COLOR][COLOR=#0000bb]Way To Display Notifications [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]jQuery[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]CSS[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]jGrowl[/COLOR][COLOR=#007700]) -->
<[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:if [/COLOR][COLOR=#0000bb]condition[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"$notifications_total"[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]script type[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"text/javascript"[/COLOR][COLOR=#007700]>
$.[/COLOR][COLOR=#0000bb]jGrowl[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'{vb:raw notifications_menubits} <br />You must view your notification(s) before this box will disappear.' [/COLOR][COLOR=#007700], { [/COLOR][COLOR=#0000bb]sticky[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]true[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]header [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#dd0000]'New Notification(s)' [/COLOR][COLOR=#007700]} );
[/COLOR][COLOR=#0000bb]</script>
[/COLOR]</vb:if>
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
[/COLOR]
[/SIZE][/B][/B]
الكود المعرب هو التالي
كود:
[B][B][SIZE=3][COLOR=#000000][COLOR=#007700]<!-- [/COLOR][COLOR=#0000bb]TW7S [/COLOR][COLOR=#007700]- New [/COLOR][COLOR=#0000bb]Way To Display Notifications [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]jQuery[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]CSS[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]jGrowl[/COLOR][COLOR=#007700]) -->
<[/COLOR][COLOR=#0000bb]vb[/COLOR][COLOR=#007700]:if [/COLOR][COLOR=#0000bb]condition[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"$notifications_total"[/COLOR][COLOR=#007700]>
<[/COLOR][COLOR=#0000bb]script type[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#dd0000]"text/javascript"[/COLOR][COLOR=#007700]>
$.[/COLOR][COLOR=#0000bb]jGrowl[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'{vb:raw notifications_menubits} <br />يجــب عليك قـــراءة الرسائل الخاصة لتختفــي هذه النافـذه.' [/COLOR][COLOR=#007700], { [/COLOR][COLOR=#0000bb]sticky[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]true[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]header [/COLOR][COLOR=#007700]: [/COLOR][COLOR=#dd0000]'الرسائل الجديدة' [/COLOR][COLOR=#007700]} );
[/COLOR][COLOR=#0000bb]</script>
[/COLOR]</vb:if>
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
[/COLOR] [/SIZE][/B][/B]