المساعد الشخصي الرقمي

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



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=&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>
رابط الطريقة الأصلي : من هنا (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=&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;}

http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)


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

رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/187137d1194426459-الوان-المجموعات-المتقدمه.zip)

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

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

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

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

رمز Code:
<font color=&quot;#339966&quot;><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=&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


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=&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 />

http://www.zerovb.com/Naruto/Images/bro.gif (http://imageshack.us/)


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

رابط تحميل الهاك product : من هنا (http://www.dzbatna.com/attachments/94846d1166312926-اللقب-الاضافي.zip)

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

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

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


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


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=&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:
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)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى