المبرمج : Fnan4arab
للإصدارة : vB3
الوظيفة : يقوم بتلوين اسم كاتب الموضوع حسب مجموعته .. فإذا كان مدير يكون بالأحمر وهكذا
ويقوم بتلوين المدير والنائب والمشرف فقط ..
------------------\
افتح ملف forumdisplay.php وابحث عن الكود التالي
---
---كود:$threads = $DB_site->query(" SELECT $votequery $previewfield thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed") . " " . iif(!$deljoin, ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason") . " FROM " . TABLE_PREFIX . "thread AS thread " . iif(!$deljoin, " LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')") . " " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = $bbuserinfo[userid])") . " $previewjoin WHERE thread.threadid IN (0$ids) ORDER BY sticky DESC, $sqlsortfield $sqlsortorder ");
واستبدله بالكود التالي
---
---كود:$threads = $DB_site->query(" SELECT $votequery $previewfield thread.threadid, user.usergroupid AS usergroupid, thread.title AS threadtitle, thread.lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed") . " " . iif(!$deljoin, ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason") . " FROM " . TABLE_PREFIX . "thread AS thread " . iif(!$deljoin, " LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')") . " " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = $bbuserinfo[userid])") . " LEFT JOIN " . TABLE_PREFIX . "user ON(thread.postuserid = user.userid) $previewjoin WHERE thread.threadid IN (0$ids) ORDER BY sticky DESC, $sqlsortfield $sqlsortorder ");
ثم ابحث عن الكود التالي
---
---كود:eval('$threadbit .= "' . fetch_template('threadbit') . '";');
واستبدله بالكود التالي
---
---كود:if ($thread['usergroupid'] == "6") $name_color="#FF4242"; elseif ($thread['usergroupid'] == "7") $name_color="#00B75B"; elseif ($thread['usergroupid'] == "5") $name_color="#3C3CFF"; eval('$threadbit .= "' . fetch_template('threadbit') . '";');
والآن افتح قالب threadbit وابحث عن الكود التالي
---
---كود:<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
واستبدله بالكود التالي
---
---كود:<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')"> <font color="$name_color">$thread[postusername]</font></span>
ولمزيد من الهاكات
http://gate.aradream.com/modules.php...ownload&cid=66


رد مع اقتباس
،،
