Ресурсы
Поиск ресурсов
Форумы
Новые сообщения
Поиск сообщений
Что нового?
Новые сообщения
Новые ресурсы
Последняя активность
Вход
Регистрация
Что нового?
Поиск
Поиск
Искать только в заголовках
От:
Новые сообщения
Поиск сообщений
Меню
Вход
Регистрация
Навигация
Приложение
Установить
Дополнительно
Темный стиль
Обратная связь
Закрыть Меню
Форумы
Сайтостроение
GameCMS
Отзывы? [reviews]
VK
JavaScript отключён. Чтобы полноценно использовать наш сайт, включите JavaScript в своём браузере.
Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно.
Вам необходимо обновить браузер или попробовать использовать
другой
.
Ответить в теме
Сообщение
[QUOTE="Pr[E]fix, post: 3990, member: 268"] Для overpro [SPOILER="в файл templates/overpro/home/index.tpl"] [CODE lang="html" title="Вставить в любое место"]<div class="row"> <div class="col-lg-12"> <div class="card h-100"> <div class="top_players_header"> <div class="top_phrase"> Отзывы проекта <i class="fa-solid fa-message"></i> </div> </div> <table class="table table-hover h-100"> <thead class="thead-stats-table"> <tr> <th class="text-right tb-custom"> <i class="fas fa-image" data-tippy-placement="top" data-tippy-content="Аватар пользователя"></i> </th> <th class="text-center tb-custom">Игрок</th> <th class="text-center tb-custom">Отзыв</th> <th class="text-center tb-custom">Оценка</th> <th class="text-center tb-custom">Дата</th> </tr> </thead> <tbody id="reviews"> {reviews_views} </tbody> </table> </div> </div> </div>[/CODE] [/SPOILER] [SPOILER="В файл modules/index/index.php"] [CODE lang="php" title="Вставить перед компиляции шаблона после else"] $STH2 = $pdo->query("SELECT * FROM `reviews` ORDER BY id DESC LIMIT 3"); $STH2->setFetchMode(PDO::FETCH_OBJ); while($row = $STH2->fetch()) { $STH1 = $pdo->prepare("SELECT * FROM users WHERE id=:id LIMIT 1"); $STH1->setFetchMode(PDO::FETCH_OBJ); $STH1->execute([':id' => $row->reauth]); $row1 = $STH1->fetch(); $re_author = $row1->login; $re_author_id = $row1->id; $re_author_avatar = $row1->avatar; $re_estimation = $row->estimation; if($re_estimation == '5'){ $estimation = '⭐⭐⭐⭐⭐'; } elseif($re_estimation == '4'){ $estimation = '⭐⭐⭐⭐'; } elseif($re_estimation == '3'){ $estimation = '⭐⭐⭐'; } elseif($re_estimation == '2'){ $estimation = '⭐⭐'; } elseif($re_estimation == '1'){ $estimation = '⭐'; } else{ $estimation = '0'; } if(!$row->remsg) $row->remsg = '<p class="otzov"">Не оставил отзыва</p>'; $reviews_views[] = ' <tr class="cursor-pointer stats-lines"> <th class="text-right pointer td-custom"> <a href="../profile?id='.$re_author_id.'"> <img class="rounded-circle" src="'.$PI->compile_img_str($re_author_avatar).'"> </a> </th> <th class="text-left pointer td-custom"> <a href="../profile?id='.$re_author_id.'"> '.$re_author.' </a> </th> <th class="text-center pointer td-custom"> '.$row->remsg.' </th> <th class="text-center pointer td-custom"> '.$estimation.' </th> <th class="text-left pointer td-custom"> '.$row->date.' </th> </tr> '; } /* $tpl->load_template('/home/index.tpl'); $tpl->set("{template}", configs()->template); Вот сюда этот код -> $tpl->set("{reviews_views}", implode('', $reviews_views)); $tpl->compile('content'); $tpl->clear();*/[/CODE] [/SPOILER] P.S Если вы используете overpro то модуль в modules_extra/reviews/templates/standart переименовать в overpro [/QUOTE]
Вставить цитаты...
Имя
Проверка
100-50=?
Ответить
Форумы
Сайтостроение
GameCMS
Отзывы? [reviews]
VK
Сверху
Снизу