الفني
04-19-2022, 04:12 PM
شرح تركيب الوان المجموعات بالأقسام والصفحة الرئيسية 2020
آلسلام عليكم ورحمة الله وبركاته
اليوم جبت لكم طريقة عرض ألوان المجموعات أثناء التصفح
أفتح هذا الملف forumdisplay.php تجده في مجلد vb
أبحث عن
كود PHP:
($hook = vBulletinHook::fetch_hook('threadbit_display')) ? eval($hook) : false;
تحته بسطر اضف
كود PHP:
/* **************** BY MGHOOL - A **************** */
$Ln = $thread['lastposter'];
$Lu = $vbulletin->db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '$Ln'");
$Li = $Lu['usergroupid'];
$Lo = $vbulletin->usergroupcache["$Li"]['opentag'];
$Lc = $vbulletin->usergroupcache["$Li"]['closetag'];
$thread['lastposter'] = "$Lo $Ln $Lc";
$Pn = $thread['postusername'];
$Pu = $vbulletin->db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '$Pn'");
$Pi = $Pu['usergroupid'];
$Po = $vbulletin->usergroupcache["$Pi"]['opentag'];
$Pc = $vbulletin->usergroupcache["$Pi"]['closetag'];
$thread['postusername'] = "$Po $Pn $Pc";
/* **************** BY MGHOOL - V **************** */
لتلوين الاسماء في الصفحة الرئيسه أعمل
التالي
افتح ملف
includes/functions_forumlist.php
أبحث عن
كود PHP:
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
تحته بسطر اضف
كود PHP:
/* **************** BY MGHOOL - A **************** */
$Rn = $lastpostinfo['lastposter'];
$Ru = $vbulletin->db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '$Rn'");
$Ri = $Ru['usergroupid'];
$Ro = $vbulletin->usergroupcache["$Ri"]['opentag'];
$Rc = $vbulletin->usergroupcache["$Ri"]['closetag'];
$lastpostinfo['lastposter'] = "$Ro $Rn $Rc";
/* **************** BY MGHOOL - V **************** */
وأرفع الملفات و باالتوفيق للجميع
آلسلام عليكم ورحمة الله وبركاته
اليوم جبت لكم طريقة عرض ألوان المجموعات أثناء التصفح
أفتح هذا الملف forumdisplay.php تجده في مجلد vb
أبحث عن
كود PHP:
($hook = vBulletinHook::fetch_hook('threadbit_display')) ? eval($hook) : false;
تحته بسطر اضف
كود PHP:
/* **************** BY MGHOOL - A **************** */
$Ln = $thread['lastposter'];
$Lu = $vbulletin->db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '$Ln'");
$Li = $Lu['usergroupid'];
$Lo = $vbulletin->usergroupcache["$Li"]['opentag'];
$Lc = $vbulletin->usergroupcache["$Li"]['closetag'];
$thread['lastposter'] = "$Lo $Ln $Lc";
$Pn = $thread['postusername'];
$Pu = $vbulletin->db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '$Pn'");
$Pi = $Pu['usergroupid'];
$Po = $vbulletin->usergroupcache["$Pi"]['opentag'];
$Pc = $vbulletin->usergroupcache["$Pi"]['closetag'];
$thread['postusername'] = "$Po $Pn $Pc";
/* **************** BY MGHOOL - V **************** */
لتلوين الاسماء في الصفحة الرئيسه أعمل
التالي
افتح ملف
includes/functions_forumlist.php
أبحث عن
كود PHP:
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
تحته بسطر اضف
كود PHP:
/* **************** BY MGHOOL - A **************** */
$Rn = $lastpostinfo['lastposter'];
$Ru = $vbulletin->db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '$Rn'");
$Ri = $Ru['usergroupid'];
$Ro = $vbulletin->usergroupcache["$Ri"]['opentag'];
$Rc = $vbulletin->usergroupcache["$Ri"]['closetag'];
$lastpostinfo['lastposter'] = "$Ro $Rn $Rc";
/* **************** BY MGHOOL - V **************** */
وأرفع الملفات و باالتوفيق للجميع