TheSpeeD
2006/10/16, 6:20 AM
السلام عليكم ورحمة الله وبركاته
اقدم لكم هاك تلوين عناوين المواضيع في أقسام المنتديات للإصدرات vb3.5
وصورته:
http://www.vbulletin.ae/upload/vbulletin.ae_1.gif
يتميز:
بإمكانك تلوين عناوين المواضيع بأقسام المنتدى واختيار اللون من قائمة اللون وبامكانك جعل العنوان عريض.
بإمكانك التعديل عليه في اي وقت او حذف اللون.
بإمكانك السماح لمجموعة معينه بإستخدام هاك التلوين ( لابد ان تكون المجموعة تستخدم ادوات الإشراف مثل المشرف على قسم معين-ملاحظة لابد انت تفعل الهاك لمجموعة الأدمن حتى يضهر لك الهاك), وطريقة التعديل مثل بالصورة.
http://www.vbulletin.ae/upload/vbulletin.ae_4.gif
صورة الهاك عند السماح لمجموعة بإستخدامه
http://www.vbulletin.ae/upload/vbulletin.ae_2.gif
طريقة التركيب:
نبدأ بتعديل التمبلتات وهي ثلاث
افتح تمبلت newthread وابحث عن:
رمز:
<td><input type="****" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
استبدلها بــ:
رمز:
<td><input type="****" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" />
<if condition="$show['highlighttitle']">
($vbphrase[highlighttitle]: <select name="titlecolor">
<option value="">$vbphrase[defaultcolor]</option>
<option value="red" style="background: red;">Red</option>
<option value="brown" style="background: brown;">Brown</option>
<option value="darkred" style="background: darkred;">Dark Red</option>
<option value="maroon" style="background: maroon;">Maroon</option>
<option value="yellowgreen" style="background: yellowgreen;">Yellow Green</option>
<option value="seagreen" style="background: seagreen;">Sea Green</option>
<option value="green" style="background: green;">Green</option>
<option value="darkgreen" style="background: darkgreen;">Dark Green</option>
<option value="teal" style="background: teal;">Teal</option>
<option value="darkolivegreen" style="background: darkolivegreen;">Dark Olive Green</option>
<option value="darkslategray" style="background: darkslategray;">Dark Slate Gray</option>
<option value="darkorange" style="background: darkorange;">Dark Orange</option>
<option value="orange" style="background: orange;">Orange</option>
<option value="sienna" style="background: sienna;">Sienna</option>
<option value="pink" style="background: pink;">Pink</option>
<option value="plum" style="background: plum;">Plum</option>
<option value="purple" style="background: purple;">Purple</option>
<option value="beige" style="background: beige;">Beige</option>
<option value="white" style="background: white;">White</option>
<option value="yellow" style="background: yellow;">Yellow</option>
<option value="olive" style="background: olive;">Olive</option>
<option value="darkslateblue" style="background: darkslateblue;">Dark Slate Blue</option>
<option value="dimgray" style="background: dimgray;">Dim Gray</option>
<option value="slategray" style="background: slategray;">Slate Gray</option>
<option value="royalblue" style="background: royalblue;">Royal Blue</option>
<option value="blue" style="background: blue;">Blue</option>
<option value="navy" style="background: navy;">Navy</option>
<option value="black" style="background: black;">Black</option>
</select>
<input type="checkbox" class="bginput" name="titlebold" value="1" />$vbphrase[titlebold])
</if>
</td>
افتح التمبلت threadadmin_editthread وابحث عن
رمز:
<td><input type="****" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
استبدلها بـ
رمز:
<td><input type="****" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" />
<if condition="$show['highlighttitle']">
($vbphrase[highlighttitle]: <select name="titlecolor">
<option value="">$vbphrase[defaultcolor]</option>
<option value="red" style="background: red;"$colorselected[red]>Red</option>
<option value="brown" style="background: brown;"$colorselected[brown]>Brown</option>
<option value="darkred" style="background: darkred;"$colorselected[darkred]>Dark Red</option>
<option value="maroon" style="background: maroon;"$colorselected[maroon]>Maroon</option>
<option value="yellowgreen" style="background: yellowgreen;"$colorselected[yellowgreen]>Yellow Green</option>
<option value="seagreen" style="background: seagreen;"$colorselected[seagreen]>Sea Green</option>
<option value="green" style="background: green;"$colorselected[green]>Green</option>
<option value="darkgreen" style="background: darkgreen;"$colorselected[darkgreen]>Dark Green</option>
<option value="teal" style="background: teal;"$colorselected[teal]>Teal</option>
<option value="darkolivegreen" style="background: darkolivegreen;"$colorselected[darkolivegreen]>Dark Olive Green</option>
<option value="darkslategray" style="background: darkslategray;"$colorselected[darkslategray]>Dark Slate Gray</option>
<option value="darkorange" style="background: darkorange;"$colorselected[darkorange]>Dark Orange</option>
<option value="orange" style="background: orange;"$colorselected[orange]>Orange</option>
<option value="sienna" style="background: sienna;"$colorselected[sienna]>Sienna</option>
<option value="pink" style="background: pink;"$colorselected[pink]>Pink</option>
<option value="plum" style="background: plum;"$colorselected[plum]>Plum</option>
<option value="purple" style="background: purple;"$colorselected[purple]>Purple</option>
<option value="beige" style="background: beige;"$colorselected[beige]>Beige</option>
<option value="white" style="background: white;"$colorselected[white]>White</option>
<option value="yellow" style="background: yellow;"$colorselected[yellow]>Yellow</option>
<option value="olive" style="background: olive;"$colorselected[olive]>Olive</option>
<option value="darkslateblue" style="background: darkslateblue;"$colorselected[darkslateblue]>Dark Slate Blue</option>
<option value="dimgray" style="background: dimgray;"$colorselected[dimgray]>Dim Gray</option>
<option value="slategray" style="background: slategray;"$colorselected[slategray]>Slate Gray</option>
<option value="royalblue" style="background: royalblue;"$colorselected[royalblue]>Royal Blue</option>
<option value="blue" style="background: blue;"$colorselected[blue]>Blue</option>
<option value="navy" style="background: navy;"$colorselected[navy]>Navy</option>
<option value="black" style="background: black;"$colorselected[black]>Black</option>
</select>
<input type="checkbox" class="bginput" name="titlebold" value="1"$boldchecked />$vbphrase[titlebold])
</if>
</td>
افتح تمبلت threadbit
وابحث عن
رمز:
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
استبدلها بــ
رمز:
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlecolor']"> style="color: $thread[titlecolor];"</if>>$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlecolor'] OR $thread['titlebold']"> style="<if condition="$thread['titlecolor']">color: $thread[titlecolor];</if><if condition="$thread['titlebold']">font-weight: bold;</if>"</if>>$thread[threadtitle]</a>
</if>
انتهينا من تعديل التمبلتات (يوجد معا الهاك تمبلتات معدله).
الخطوة التالية وهي التعديل على هالملف بالمسار التالي includes/xml/bitfield_vbulletin.xml
بعد فتحه ابحث عن
رمز:
<bitfield name="canseedelnotice" group="forum_viewing_permissions" phrase="can_see_deletion_notices" install="5,6">262144</bitfield>
تحته اضف
رمز:
<bitfield name="canhighlighttitle" group="post_thread_permissions" phrase="can_highlight_title" install="5,6,7">1048576</bitfield>
الخطة التالية التعديل على ملفين وهما forumdisplay.php و newthread.php الموجوده بمجلد المنتدى
طريقة التعديل افتح الملف الأول وابحث عن
$lastpost_info, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount
كمل الكود واضف
, titlecolor, titlebold
انتهى الملف الأول افتح newthread.php وابحث عن
// moderation options
$newpost['stickunstick'] =& $vbulletin->GPC
اضف تحتها
$newpost['titlecolor'] =& $vbulletin->GPC['titlecolor'];
$newpost['titlebold'] =& $vbulletin->GPC['titlebold'];
الخطوة الأخير ارفع البرودكت المرفق مع الهاك
وبعدها اذهب للرابط http://xxxx/index.php?do=buildbitfields
مع استبدال x برابط منتداك
اقدم لكم هاك تلوين عناوين المواضيع في أقسام المنتديات للإصدرات vb3.5
وصورته:
http://www.vbulletin.ae/upload/vbulletin.ae_1.gif
يتميز:
بإمكانك تلوين عناوين المواضيع بأقسام المنتدى واختيار اللون من قائمة اللون وبامكانك جعل العنوان عريض.
بإمكانك التعديل عليه في اي وقت او حذف اللون.
بإمكانك السماح لمجموعة معينه بإستخدام هاك التلوين ( لابد ان تكون المجموعة تستخدم ادوات الإشراف مثل المشرف على قسم معين-ملاحظة لابد انت تفعل الهاك لمجموعة الأدمن حتى يضهر لك الهاك), وطريقة التعديل مثل بالصورة.
http://www.vbulletin.ae/upload/vbulletin.ae_4.gif
صورة الهاك عند السماح لمجموعة بإستخدامه
http://www.vbulletin.ae/upload/vbulletin.ae_2.gif
طريقة التركيب:
نبدأ بتعديل التمبلتات وهي ثلاث
افتح تمبلت newthread وابحث عن:
رمز:
<td><input type="****" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
استبدلها بــ:
رمز:
<td><input type="****" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" />
<if condition="$show['highlighttitle']">
($vbphrase[highlighttitle]: <select name="titlecolor">
<option value="">$vbphrase[defaultcolor]</option>
<option value="red" style="background: red;">Red</option>
<option value="brown" style="background: brown;">Brown</option>
<option value="darkred" style="background: darkred;">Dark Red</option>
<option value="maroon" style="background: maroon;">Maroon</option>
<option value="yellowgreen" style="background: yellowgreen;">Yellow Green</option>
<option value="seagreen" style="background: seagreen;">Sea Green</option>
<option value="green" style="background: green;">Green</option>
<option value="darkgreen" style="background: darkgreen;">Dark Green</option>
<option value="teal" style="background: teal;">Teal</option>
<option value="darkolivegreen" style="background: darkolivegreen;">Dark Olive Green</option>
<option value="darkslategray" style="background: darkslategray;">Dark Slate Gray</option>
<option value="darkorange" style="background: darkorange;">Dark Orange</option>
<option value="orange" style="background: orange;">Orange</option>
<option value="sienna" style="background: sienna;">Sienna</option>
<option value="pink" style="background: pink;">Pink</option>
<option value="plum" style="background: plum;">Plum</option>
<option value="purple" style="background: purple;">Purple</option>
<option value="beige" style="background: beige;">Beige</option>
<option value="white" style="background: white;">White</option>
<option value="yellow" style="background: yellow;">Yellow</option>
<option value="olive" style="background: olive;">Olive</option>
<option value="darkslateblue" style="background: darkslateblue;">Dark Slate Blue</option>
<option value="dimgray" style="background: dimgray;">Dim Gray</option>
<option value="slategray" style="background: slategray;">Slate Gray</option>
<option value="royalblue" style="background: royalblue;">Royal Blue</option>
<option value="blue" style="background: blue;">Blue</option>
<option value="navy" style="background: navy;">Navy</option>
<option value="black" style="background: black;">Black</option>
</select>
<input type="checkbox" class="bginput" name="titlebold" value="1" />$vbphrase[titlebold])
</if>
</td>
افتح التمبلت threadadmin_editthread وابحث عن
رمز:
<td><input type="****" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
استبدلها بـ
رمز:
<td><input type="****" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" />
<if condition="$show['highlighttitle']">
($vbphrase[highlighttitle]: <select name="titlecolor">
<option value="">$vbphrase[defaultcolor]</option>
<option value="red" style="background: red;"$colorselected[red]>Red</option>
<option value="brown" style="background: brown;"$colorselected[brown]>Brown</option>
<option value="darkred" style="background: darkred;"$colorselected[darkred]>Dark Red</option>
<option value="maroon" style="background: maroon;"$colorselected[maroon]>Maroon</option>
<option value="yellowgreen" style="background: yellowgreen;"$colorselected[yellowgreen]>Yellow Green</option>
<option value="seagreen" style="background: seagreen;"$colorselected[seagreen]>Sea Green</option>
<option value="green" style="background: green;"$colorselected[green]>Green</option>
<option value="darkgreen" style="background: darkgreen;"$colorselected[darkgreen]>Dark Green</option>
<option value="teal" style="background: teal;"$colorselected[teal]>Teal</option>
<option value="darkolivegreen" style="background: darkolivegreen;"$colorselected[darkolivegreen]>Dark Olive Green</option>
<option value="darkslategray" style="background: darkslategray;"$colorselected[darkslategray]>Dark Slate Gray</option>
<option value="darkorange" style="background: darkorange;"$colorselected[darkorange]>Dark Orange</option>
<option value="orange" style="background: orange;"$colorselected[orange]>Orange</option>
<option value="sienna" style="background: sienna;"$colorselected[sienna]>Sienna</option>
<option value="pink" style="background: pink;"$colorselected[pink]>Pink</option>
<option value="plum" style="background: plum;"$colorselected[plum]>Plum</option>
<option value="purple" style="background: purple;"$colorselected[purple]>Purple</option>
<option value="beige" style="background: beige;"$colorselected[beige]>Beige</option>
<option value="white" style="background: white;"$colorselected[white]>White</option>
<option value="yellow" style="background: yellow;"$colorselected[yellow]>Yellow</option>
<option value="olive" style="background: olive;"$colorselected[olive]>Olive</option>
<option value="darkslateblue" style="background: darkslateblue;"$colorselected[darkslateblue]>Dark Slate Blue</option>
<option value="dimgray" style="background: dimgray;"$colorselected[dimgray]>Dim Gray</option>
<option value="slategray" style="background: slategray;"$colorselected[slategray]>Slate Gray</option>
<option value="royalblue" style="background: royalblue;"$colorselected[royalblue]>Royal Blue</option>
<option value="blue" style="background: blue;"$colorselected[blue]>Blue</option>
<option value="navy" style="background: navy;"$colorselected[navy]>Navy</option>
<option value="black" style="background: black;"$colorselected[black]>Black</option>
</select>
<input type="checkbox" class="bginput" name="titlebold" value="1"$boldchecked />$vbphrase[titlebold])
</if>
</td>
افتح تمبلت threadbit
وابحث عن
رمز:
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
</if>
استبدلها بــ
رمز:
<if condition="$show['gotonewpost']">
<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlecolor']"> style="color: $thread[titlecolor];"</if>>$thread[threadtitle]</a></strong>
<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlecolor'] OR $thread['titlebold']"> style="<if condition="$thread['titlecolor']">color: $thread[titlecolor];</if><if condition="$thread['titlebold']">font-weight: bold;</if>"</if>>$thread[threadtitle]</a>
</if>
انتهينا من تعديل التمبلتات (يوجد معا الهاك تمبلتات معدله).
الخطوة التالية وهي التعديل على هالملف بالمسار التالي includes/xml/bitfield_vbulletin.xml
بعد فتحه ابحث عن
رمز:
<bitfield name="canseedelnotice" group="forum_viewing_permissions" phrase="can_see_deletion_notices" install="5,6">262144</bitfield>
تحته اضف
رمز:
<bitfield name="canhighlighttitle" group="post_thread_permissions" phrase="can_highlight_title" install="5,6,7">1048576</bitfield>
الخطة التالية التعديل على ملفين وهما forumdisplay.php و newthread.php الموجوده بمجلد المنتدى
طريقة التعديل افتح الملف الأول وابحث عن
$lastpost_info, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount
كمل الكود واضف
, titlecolor, titlebold
انتهى الملف الأول افتح newthread.php وابحث عن
// moderation options
$newpost['stickunstick'] =& $vbulletin->GPC
اضف تحتها
$newpost['titlecolor'] =& $vbulletin->GPC['titlecolor'];
$newpost['titlebold'] =& $vbulletin->GPC['titlebold'];
الخطوة الأخير ارفع البرودكت المرفق مع الهاك
وبعدها اذهب للرابط http://xxxx/index.php?do=buildbitfields
مع استبدال x برابط منتداك