romaissa
10-31-2013, بتوقيت غرينيتش 03:27 AM
http://www.dzbatna.com/images/icons/icon26.gif ط§ط³طھط¨ط¯ط§ظ„ ط¨ط¹ط¶ ظ‡ط§ظƒط§طھ ظ…ظ†طھط¯ط§ظƒ ط¨ط£ظƒظˆط§ط¯ طŒ ظ„طھط³ط±ظٹط¹ ط§ظٹ ظ…ظ†طھط¯ظٹ ظˆ ط§ظ„طھط®ظپظٹظپ ط¹ظ„ظ‰ ط§ظ„ط³ظٹط±ظپط± (http://www.dzbatna.com/t1548358/)
شرح طريقة استبدال بعض هاك productات منتداك بأكواد ، لتسريع منتداك و التخفيف على السيرفر SERVER
هناك العديد من الهاك productات يمكن الإستغناء عنها مقابل أكواد تعمل نفس عمل هذه الهاك productات .
وسأطرح هنا في الموضوع الهاك productات و الأكواد التي لها نفس الوظيفة .
أولاً : هاك product تصغير الصور
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/340943d1233246461-anmm.zip)
الكود code البديل للهاك product : (طريقة الأخ الغالي "mega_soft (http://www.dzbatna.com/u17118/)") :
افتح ملف : includes/class_bbcode.php
ابحث عن :
رمز Code:
return '<img src="' . $link . '" border="0" alt="" />';
استبدلها بـ :
رمز Code:
return '<img src="' . $link . '" onload="if(largerThan(this.width,600)) {this.width=600;this.alt=\'اضغط هنا لترى الصورة بحجمها الطبيعى\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" onclick="if(this.alt) window.open(\'' . $link . '\');" border="0" />';
حيث الرقم 600 هو عرض الصوره عدل علي حسب رغبتك
ثم افتح قالب template : headinclude
اضف بآخر القالب template :
رمز Code:
<script type="text/javascript">
function largerThan(a,b)
{
return a>b;
}
</script>
رابط الطريقة الأصلي : من هنا (http://www.dzbatna.com/t1292550/)
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
ثانياً : هاك product إضافة وسوم الـ h1-h2 لزيادة الأرشفة indexation
مثال على الهاك product :
http://upload.dzbatna.net/upfiles/Jmf32404.png
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/435009d1260534281-منتج plugin-أضافة-وسوم-h1-h2.zip)
الكود code البديل للهاك product :
إفتح قالب template الـ FORUMDISPLAY :
إبحث عن :
رمز Code:
$navbar
أضف أسفلها :
رمز Code:
<br />
<center>
<h1 class="myh1">$foruminfo[title_clean]</h1>
<h2 class="myh2">$foruminfo[description]</h2>
</center>
<br />
إفتح قالب template SHOWTHREAD
إبحث عن :
رمز Code:
$navbar
أضف أسفلها :
رمز Code:
</br>
<center>
<h1 class="myh1">$thread[title]</h1>
<h2 class="myh2">$foruminfo[title_clean]</h2>
</center>
<br />
إذهب إلى لوحة تحكم المنتدى forum ثم "الاستايل styleات و القوالب" إختر "التحكم بالاستايل styleات" ثم أختر من أمام الاستايل style الذي تريد التعديل عليه "CSS الرئيسي"
إذهب إلى آخر صندوق في الأسفل الموجود باسم "Additional CSS Definitions"
أضف فيه :
رمز 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;}
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
ثالثاً : هاك product ألوان المجموعات
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/187137d1194426459-الوان-المجموعات-المتقدمه.zip)
(يظهر ألوان ولكن ليس بمربعات متحركه مثل هاك product الأخ الغالي "dr-php") الكود code البديل للهاك product :
اذهب إلى لوحة تحكم المنتدى forum > مجموعات الأعضاء > التحكم بالمجموعات ، اختر المجموعة المطلوبة ثمّ تعديل :
في حقلي وصف العضو بـ HTML
ضع بالحقل الأول (اليمين) :
رمز Code:
<font color="#339966"><b>
ضع بالحقل الثاني (اليسار) :
رمز Code:
</b></font>
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
رابعاً : هاك product فصل المواضيع المثبته عن العاديّة
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/363484d1239706453-marco1-separate.zip)
الكود code البديل للهاك product :
افتح قالب template FORUMDISPLAY
ابحث عن :
رمز Code:
<if condition="$show['threads']">
<!-- show threads -->
<tbody id="threadbits_forum_$foruminfo[forumid]">
<if condition="$show['stickies']">
$threadbits_sticky
</if>
أضف تحته مباشرة :
رمز Code:
<tr valign="top"><td class="thead" colspan="10" style="height: 15px;"></td></tr>
اذا الإرتفاع ماعجبك فقط عدّل على 15px
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
خامساً : هاك product فصل الأقسام
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/239771d1208189314-هاك product-فصل-الأقسام.zip)
الكود code البديل للهاك product :
افتح قالب template FORUMHOME
إبحث عن :
رمز Code:
<!-- / guest welcome message -->
</if>
أزل من أسفلها الكود code التالي :
رمز Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
إبحث عن :
رمز Code:
$forumbits
أضف أعلاها :
رمز Code:
</table>
<br />
وأضف أسفلها :
رمز Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
ثم حفظ
افتح قالب template forumhome_forumbit_level1_nopost
في بداية القالب template ، أضف :
رمز Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
إبحث عن :
رمز Code:
$childforumbits
أضف أعلاها :
رمز Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
في نهاية القالب template ، أضف :
رمز Code:
</table>
<br />
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
سادساً : هاك product اللقب الإضافي للعضو
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/94846d1166312926-اللقب-الاضافي.zip)
الكود code البديل للهاك product :
من لوحة تحكم الإدارة افتح على ملف العضو المطلوب ثمّ عند حقل "لقب العضو" ضع :
رمز Code:
اللقب الأول<br>اللقب الثاني<br>اللقب الثالث
وفي الحقل الذي يليه اختر " نعم حسب اعداد المدير (السماح بإستخدام html)"
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
سابعاً : هاك product إضافة مقطع youtube في الموضوع
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/94846d1166312926-اللقب-الاضافي.zip)
الكود code البديل للهاك product :
1- من لوحة تحكم المنتدى forum > أكواد BB Codes المخصصة > اضافة كود code جديد :
* العنوان : youtube
* BB Code اسم البطاقة : bbcode tag name youtube
* الاستبدال :
رمز Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
* المثال :
رمز Code:
JFwCCL0Vh6U
* الوصف :
رمز Code:
لاضافة مقطع فيديو من موقع يوتيوب قم بنسخ نهاية كود code الفيديو من وصلة المقطع .. مثال http://* زر الصورة (اختيارية) :
رمز Code:
images/misc/youtube.gif
ثمّ حفظ
الآن ارفع الأيقونة التالية إلى :
http://www.gulfson.com/vb/attachment.php?attachmentid=14657&d=1223004503
رمز Code:
images/misc/youtube.gif
مثال :
http://upload.dzbatna.net/upfiles/LZK41797.png
http://www.zerovb.com/Naruto/Images/bro.gif
تم الشرح طريقة بحمد الله
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
شرح طريقة استبدال بعض هاك productات منتداك بأكواد ، لتسريع منتداك و التخفيف على السيرفر SERVER
هناك العديد من الهاك productات يمكن الإستغناء عنها مقابل أكواد تعمل نفس عمل هذه الهاك productات .
وسأطرح هنا في الموضوع الهاك productات و الأكواد التي لها نفس الوظيفة .
أولاً : هاك product تصغير الصور
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/340943d1233246461-anmm.zip)
الكود code البديل للهاك product : (طريقة الأخ الغالي "mega_soft (http://www.dzbatna.com/u17118/)") :
افتح ملف : includes/class_bbcode.php
ابحث عن :
رمز Code:
return '<img src="' . $link . '" border="0" alt="" />';
استبدلها بـ :
رمز Code:
return '<img src="' . $link . '" onload="if(largerThan(this.width,600)) {this.width=600;this.alt=\'اضغط هنا لترى الصورة بحجمها الطبيعى\';}" onmouseover="if(this.alt) this.style.cursor=\'hand\';" onclick="if(this.alt) window.open(\'' . $link . '\');" border="0" />';
حيث الرقم 600 هو عرض الصوره عدل علي حسب رغبتك
ثم افتح قالب template : headinclude
اضف بآخر القالب template :
رمز Code:
<script type="text/javascript">
function largerThan(a,b)
{
return a>b;
}
</script>
رابط الطريقة الأصلي : من هنا (http://www.dzbatna.com/t1292550/)
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
ثانياً : هاك product إضافة وسوم الـ h1-h2 لزيادة الأرشفة indexation
مثال على الهاك product :
http://upload.dzbatna.net/upfiles/Jmf32404.png
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/435009d1260534281-منتج plugin-أضافة-وسوم-h1-h2.zip)
الكود code البديل للهاك product :
إفتح قالب template الـ FORUMDISPLAY :
إبحث عن :
رمز Code:
$navbar
أضف أسفلها :
رمز Code:
<br />
<center>
<h1 class="myh1">$foruminfo[title_clean]</h1>
<h2 class="myh2">$foruminfo[description]</h2>
</center>
<br />
إفتح قالب template SHOWTHREAD
إبحث عن :
رمز Code:
$navbar
أضف أسفلها :
رمز Code:
</br>
<center>
<h1 class="myh1">$thread[title]</h1>
<h2 class="myh2">$foruminfo[title_clean]</h2>
</center>
<br />
إذهب إلى لوحة تحكم المنتدى forum ثم "الاستايل styleات و القوالب" إختر "التحكم بالاستايل styleات" ثم أختر من أمام الاستايل style الذي تريد التعديل عليه "CSS الرئيسي"
إذهب إلى آخر صندوق في الأسفل الموجود باسم "Additional CSS Definitions"
أضف فيه :
رمز 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;}
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
ثالثاً : هاك product ألوان المجموعات
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/187137d1194426459-الوان-المجموعات-المتقدمه.zip)
(يظهر ألوان ولكن ليس بمربعات متحركه مثل هاك product الأخ الغالي "dr-php") الكود code البديل للهاك product :
اذهب إلى لوحة تحكم المنتدى forum > مجموعات الأعضاء > التحكم بالمجموعات ، اختر المجموعة المطلوبة ثمّ تعديل :
في حقلي وصف العضو بـ HTML
ضع بالحقل الأول (اليمين) :
رمز Code:
<font color="#339966"><b>
ضع بالحقل الثاني (اليسار) :
رمز Code:
</b></font>
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
رابعاً : هاك product فصل المواضيع المثبته عن العاديّة
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/363484d1239706453-marco1-separate.zip)
الكود code البديل للهاك product :
افتح قالب template FORUMDISPLAY
ابحث عن :
رمز Code:
<if condition="$show['threads']">
<!-- show threads -->
<tbody id="threadbits_forum_$foruminfo[forumid]">
<if condition="$show['stickies']">
$threadbits_sticky
</if>
أضف تحته مباشرة :
رمز Code:
<tr valign="top"><td class="thead" colspan="10" style="height: 15px;"></td></tr>
اذا الإرتفاع ماعجبك فقط عدّل على 15px
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
خامساً : هاك product فصل الأقسام
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/239771d1208189314-هاك product-فصل-الأقسام.zip)
الكود code البديل للهاك product :
افتح قالب template FORUMHOME
إبحث عن :
رمز Code:
<!-- / guest welcome message -->
</if>
أزل من أسفلها الكود code التالي :
رمز Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
إبحث عن :
رمز Code:
$forumbits
أضف أعلاها :
رمز Code:
</table>
<br />
وأضف أسفلها :
رمز Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
ثم حفظ
افتح قالب template forumhome_forumbit_level1_nopost
في بداية القالب template ، أضف :
رمز Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
إبحث عن :
رمز Code:
$childforumbits
أضف أعلاها :
رمز Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
في نهاية القالب template ، أضف :
رمز Code:
</table>
<br />
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
سادساً : هاك product اللقب الإضافي للعضو
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/94846d1166312926-اللقب-الاضافي.zip)
الكود code البديل للهاك product :
من لوحة تحكم الإدارة افتح على ملف العضو المطلوب ثمّ عند حقل "لقب العضو" ضع :
رمز Code:
اللقب الأول<br>اللقب الثاني<br>اللقب الثالث
وفي الحقل الذي يليه اختر " نعم حسب اعداد المدير (السماح بإستخدام html)"
http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)
سابعاً : هاك product إضافة مقطع youtube في الموضوع
رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/94846d1166312926-اللقب-الاضافي.zip)
الكود code البديل للهاك product :
1- من لوحة تحكم المنتدى forum > أكواد BB Codes المخصصة > اضافة كود code جديد :
* العنوان : youtube
* BB Code اسم البطاقة : bbcode tag name youtube
* الاستبدال :
رمز Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
* المثال :
رمز Code:
JFwCCL0Vh6U
* الوصف :
رمز Code:
لاضافة مقطع فيديو من موقع يوتيوب قم بنسخ نهاية كود code الفيديو من وصلة المقطع .. مثال http://* زر الصورة (اختيارية) :
رمز Code:
images/misc/youtube.gif
ثمّ حفظ
الآن ارفع الأيقونة التالية إلى :
http://www.gulfson.com/vb/attachment.php?attachmentid=14657&d=1223004503
رمز Code:
images/misc/youtube.gif
مثال :
http://upload.dzbatna.net/upfiles/LZK41797.png
http://www.zerovb.com/Naruto/Images/bro.gif
تم الشرح طريقة بحمد الله
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©