ط§ط³طھط¨ط¯ط§ظ„ ط¨ط¹ط¶ ظ‡ط§ظƒط§طھ ظ…ظ†طھط¯ط§ظƒ ط¨ط£ظƒظˆط§ط¯ طŒ ظ„طھط³ط±ظٹط¹ ظ…ظ†طھط¯ط§ظƒ ظˆ ط§ظ„طھط®ظپظٹظپ ط¹ظ„ظ‰ ط§ظ„ط³ظٹط±ظپط±



بسم الله الرحمن الرحيم

شرح طريقة استبدال بعض هاك productات منتداك بأكواد ، لتسريع منتداك و التخفيف على السيرفر SERVER

هناك العديد من الهاك productات يمكن الإستغناء عنها مقابل أكواد تعمل نفس عمل هذه الهاك productات .

وسأطرح هنا في الموضوع الهاك productات و الأكواد التي لها نفس الوظيفة .

الشرح طريقة حصري لـ :
www.dzbatna.net/vb
www.compu6ar.com


أولاً : هاك product تصغير الصور

رابط تحميل الهاك product : من هنا

الكود code البديل للهاك product : (طريقة الأخ الغالي "mega_soft&quot :

افتح ملف : includes/class_bbcode.php

ابحث عن :

رمز Code:
return '<img src=&quot;' . $link . '&quot; border=&quot;0&quot; alt=&quot;&quot; />';
استبدلها بـ :

رمز Code:
return '<img src=&quot;' . $link . '&quot; onload=&quot;if(largerThan(this.width,600)) {this.width=600;this.alt=\'اضغط هنا لترى الصورة بحجمها الطبيعى\';}&quot; onmouseover=&quot;if(this.alt) this.style.cursor=\'hand\';&quot; onclick=&quot;if(this.alt) window.open(\'' . $link . '\');&quot; border=&quot;0&quot; />';
حيث الرقم 600 هو عرض الصوره عدل علي حسب رغبتك

ثم افتح قالب template : headinclude

اضف بآخر القالب template :

رمز Code:
<script type=&quot;text/javascript&quot;> function largerThan(a,b) { return a>b; } </script>
رابط الطريقة الأصلي : من هنا



ثانياً : هاك product إضافة وسوم الـ h1-h2 لزيادة الأرشفة indexation

مثال على الهاك product :



رابط تحميل الهاك product : من هنا

الكود code البديل للهاك product :

إفتح قالب template الـ FORUMDISPLAY :

إبحث عن :

رمز Code:
$navbar
أضف أسفلها :

رمز Code:
<br /> <center> <h1 class=&quot;myh1&quot;>$foruminfo[title_clean]</h1> <h2 class=&quot;myh2&quot;>$foruminfo[description]</h2> </center> <br />
إفتح قالب template SHOWTHREAD


إبحث عن :

رمز Code:
$navbar
أضف أسفلها :

رمز Code:
</br> <center> <h1 class=&quot;myh1&quot;>$thread[title]</h1> <h2 class=&quot;myh2&quot;>$foruminfo[title_clean]</h2> </center> <br />
إذهب إلى لوحة تحكم المنتدى forum ثم &quot;الاستايل styleات و القوالب&quot; إختر &quot;التحكم بالاستايل styleات&quot; ثم أختر من أمام الاستايل style الذي تريد التعديل عليه &quot;CSS الرئيسي&quot;
إذهب إلى آخر صندوق في الأسفل الموجود باسم &quot;Additional CSS Definitions&quot;




أضف فيه :

رمز Code:
/* ***** H1 Tags ***** */ h1.myh1 {font-family: Arial; font-size: 20px; color: #000000; font-weight: bold;} h2.myh2 {font-family: Arial; font-size: 16px; color: #000000; font-weight: bold;}

ثالثاً : هاك product ألوان المجموعات

رابط تحميل الهاك product : من هنا

(يظهر ألوان ولكن ليس بمربعات متحركه مثل هاك product الأخ الغالي &quot;dr-php&quot الكود code البديل للهاك product :

اذهب إلى لوحة تحكم المنتدى forum > مجموعات الأعضاء > التحكم بالمجموعات ، اختر المجموعة المطلوبة ثمّ تعديل :

في حقلي وصف العضو بـ HTML

ضع بالحقل الأول (اليمين) :

رمز Code:
<font color=&quot;#339966&quot;><b>
ضع بالحقل الثاني (اليسار) :

رمز Code:
</b></font>

رابعاً : هاك product فصل المواضيع المثبته عن العاديّة

رابط تحميل الهاك product : من هنا

الكود code البديل للهاك product :

افتح قالب template FORUMDISPLAY

ابحث عن :

رمز Code:
<if condition=&quot;$show['threads']&quot;> <!-- show threads --> <tbody id=&quot;threadbits_forum_$foruminfo[forumid]&quot;> <if condition=&quot;$show['stickies']&quot;> $threadbits_sticky </if>
أضف تحته مباشرة :

رمز Code:
<tr valign=&quot;top&quot;><td class=&quot;thead&quot; colspan=&quot;10&quot; style=&quot;height: 15px;&quot;></td></tr>
اذا الإرتفاع ماعجبك فقط عدّل على 15px




خامساً : هاك product فصل الأقسام

رابط تحميل الهاك product : من هنا

الكود code البديل للهاك product :

افتح قالب template FORUMHOME

إبحث عن :

رمز Code:
<!-- / guest welcome message --> </if>
أزل من أسفلها الكود code التالي :

رمز Code:
<tr align=&quot;center&quot;> <td class=&quot;thead&quot;>&nbsp;</td> <td class=&quot;thead&quot; width=&quot;100%&quot; align=&quot;$stylevar[left]&quot;>$vbphrase[forum]</td> <td class=&quot;thead&quot; width=&quot;175&quot;>$vbphrase[last_post]</td> <td class=&quot;thead&quot;>$vbphrase[threads]</td> <td class=&quot;thead&quot;>$vbphrase[posts]</td> <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;> <td class=&quot;thead&quot;>$vbphrase[moderator]</td> </if> </tr>
إبحث عن :

رمز Code:
$forumbits
أضف أعلاها :

رمز Code:
</table> <br />
وأضف أسفلها :

رمز Code:
<table class=&quot;tborder&quot; cellpadding=&quot;$stylevar[cellpadding]&quot; cellspacing=&quot;$stylevar[cellspacing]&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
ثم حفظ


افتح قالب template forumhome_forumbit_level1_nopost

في بداية القالب template ، أضف :

رمز Code:
<table class=&quot;tborder&quot; cellpadding=&quot;$stylevar[cellpadding]&quot; cellspacing=&quot;$stylevar[cellspacing]&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
إبحث عن :

رمز Code:
$childforumbits
أضف أعلاها :

رمز Code:
<tr align=&quot;center&quot;> <td class=&quot;thead&quot;>&nbsp;</td> <td class=&quot;thead&quot; width=&quot;100%&quot; align=&quot;$stylevar[left]&quot;>$vbphrase[forum]</td> <td class=&quot;thead&quot; width=&quot;175&quot;>$vbphrase[last_post]</td> <td class=&quot;thead&quot;>$vbphrase[threads]</td> <td class=&quot;thead&quot;>$vbphrase[posts]</td> <if condition=&quot;$vboptions['showmoderatorcolumn']&quot;> <td class=&quot;thead&quot;>$vbphrase[moderator]</td> </if> </tr>
في نهاية القالب template ، أضف :

رمز Code:
</table> <br />

سادساً : هاك product اللقب الإضافي للعضو

رابط تحميل الهاك product : من هنا

الكود code البديل للهاك product :

من لوحة تحكم الإدارة افتح على ملف العضو المطلوب ثمّ عند حقل &quot;لقب العضو&quot; ضع :

رمز Code:
اللقب الأول<br>اللقب الثاني<br>اللقب الثالث


وفي الحقل الذي يليه اختر &quot; نعم حسب اعداد المدير (السماح بإستخدام html)&quot;






سابعاً : هاك product إضافة مقطع youtube في الموضوع


رابط تحميل الهاك product : من هنا

الكود code البديل للهاك product :

1- من لوحة تحكم المنتدى forum > أكواد BB Codes المخصصة > اضافة كود code جديد :
* العنوان : youtube
* BB Code اسم البطاقة : bbcode tag name youtube
* الاستبدال
:

رمز Code:
<object width=&quot;425&quot; height=&quot;350&quot;><param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/{param}&quot;></param><embed src=&quot;http://www.youtube.com/v/{param}&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;350&quot;></embed></object>
* المثال :

رمز Code:
[youtube]JFwCCL0Vh6U[/youtube]
* الوصف :

رمز Code:
لاضافة مقطع فيديو من موقع يوتيوب قم بنسخ نهاية كود code الفيديو من وصلة المقطع .. مثال http://youtube.com/watch?v=JFwCCL0Vh6U إختصاره JFwCCL0Vh6U
* زر الصورة (اختيارية) :

رمز Code:
images/misc/youtube.gif
ثمّ حفظ

الآن ارفع الأيقونة التالية إلى :



رمز Code:
images/misc/youtube.gif
مثال :







تم الشرح طريقة بحمد الله

الشرح طريقة حصري لـ :
www.dzbatna.net/vb
www.compu6ar.com

تحياتي، محمد









©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©