مشاهدة النسخة كاملة : هاك تلوين عناوين المواضيع


ابراهيم هنداوى
2008-05-29, 10:42 AM
اقدم لكم هاك تلوين عناوين المواضيع في أقسام المنتديات للإصدرات vb3.6

وصورته:

http://www.traidnt.net/vb/attachment.php?attachmentid=114635&stc=1&d=1173097257

يتميز:
بإمكانك تلوين عناوين المواضيع بأقسام المنتدى واختيار اللون من قائمة اللون وبامكانك جعل العنوان عريض.
بإمكانك التعديل عليه في اي وقت او حذف اللون.
بإمكانك السماح لمجموعة معينه بإستخدام هاك التلوين ( لابد ان تكون المجموعة تستخدم ادوات الإشراف مثل المشرف على قسم معين-ملاحظة لابد انت تفعل الهاك لمجموعة الأدمن حتى يضهر لك الهاك), وطريقة التعديل مثل بالصورة.http://www.traidnt.net/vb/attachment.php?attachmentid=114633&stc=1&d=1173097257


صورة الهاك عند السماح لمجموعة بإستخدامه

http://www.traidnt.net/vb/attachment.php?attachmentid=114634&stc=1&d=1173097257

طريقة التركيب:
نبدأ بتعديل التمبلتات وهي ثلاث
افتح تمبلت newthread وابحث عن:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td> استبدلها بى :-
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td>
<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="text" class="bginput" name="title" value="$threadinfo[title]" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>
</div>استبدلها بـ


<td><input type="text" 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>
</div> افتح تمبلت threadbit
وابحث عن


<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
</div> استبدلها بــ


<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if><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>
</div> انتهينا من تعديل التمبلتات (يوجد معا الهاك تمبلتات معدله).
الخطوة التالية وهي التعديل على هالملف بالمسار التالي includes/xml/bitfield_vbulletin.xml
بعد فتحه ابحث عن


<bitfield name="canseedelnotice" group="forum_viewing_permissions" phrase="can_see_deletion_notices" install="5,6">262144</bitfield>
</div> تحته اضف


<bitfield name="canhighlighttitle" group="post_thread_permissions" phrase="can_highlight_title" install="5,6,7">1048576</bitfield>
</div> الخطة التالية التعديل على ملفين وهما forumdisplay.php و newthread.php الموجوده بمجلد المنتدى
طريقة التعديل افتح الملف الأول وابحث عن


$lastpost_info2, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
</div> كمل الكود واضف


titlecolor, titlebold ,
</div>انتهى الملف الأول افتح newthread.php وابحث عن


$newpost['stickunstick'] =& $vbulletin->GPC['stickunstick'];
</div>اضف تحتها


$newpost['titlecolor'] =& $vbulletin->GPC['titlecolor'];
$newpost['titlebold'] =& $vbulletin->GPC['titlebold'];

</div>الخطوة الأخير ارفع البرودكت المرفق مع الهاك
وبعدها اذهب للرابطhttp://xxxx/index.php?do=buildbitfields
مع استبدال x برابط منتداك
مبروك عليك الهاك http://www.traidnt.net/vb/images/smilies/cupidarrow.gif


منقوووووووووووول

Eng Muhamed
2008-05-31, 03:28 PM
تسلم وبارك الله فيك