Merhaba, admin sayfasında menüyü nasıl tek sütun olarak düzenlerim.
ADM Menu Style
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
To do this you just need to change the css corresponding to the menu
-
Danter14 wrote:
To do this you just need to change the css corresponding to the menu
-
It's like it uses the same css for placement I'll do it for you quickly. Are you on my version 2.0?
-
Danter14 wrote:
It's like it uses the same css for placement I'll do it for you quickly. Are you on my version 2.0?
Ama senin sürüm düzenlersen onu urarım sorun değil, sonuç olarak aynı içerik.
-
bin9yuz79 wrote:
Danter14 wrote:
It's like it uses the same css for placement I'll do it for you quickly. Are you on my version 2.0?
Ama senin sürüm düzenlersen onu urarım sorun değil, sonuç olarak aynı içerik.
But the code remains the same.
Did you add links in the admin panel? -
Danter14 wrote:
bin9yuz79 wrote:
Danter14 wrote:
It's like it uses the same css for placement I'll do it for you quickly. Are you on my version 2.0?
Did you add links in the admin panel?
-
Okay, I'll quickly make a menu for you so you can directly replace the file.
-
Danter14 wrote:
Okay, I'll quickly make a menu for you so you can directly replace the file.
-
The post was edited 2 times, last by Danter14: Added file for 2moons 2.0 admin panel online menu ().
-
Harikasın, çok teşekkür ederim.
-
-
Bence bunu oyun içi menüyede uygulamalıyız. Çok güzel oldu. :=)
-
You can use the code available in the game it is possible
-
Danter14 wrote:
You can use the code available in the game it is possible
Line:68
PHP Source Code: ShowNewsPage.php
- $template->assign_vars(array(
- 'NewsList' => $NewsList,
- 'button_submit' => $LNG['button_submit'],
- 'nws_total' => sprintf($LNG['nws_total'], (!isset($NewsList) ? count($NewsList) : 0)),
- 'nws_news' => $LNG['nws_news'],
- 'nws_id' => $LNG['nws_id'],
- 'nws_title' => $LNG['nws_title'],
- 'nws_date' => $LNG['nws_date'],
- 'nws_from' => $LNG['nws_from'],
- 'nws_del' => $LNG['nws_del'],
- 'nws_create' => $LNG['nws_create'],
- 'nws_content' => $LNG['nws_content'],
- ));
-
-
Bu aynı satır, değiştirdim ama hala aynı.
-
Fix bug
PHP Source Code
- function ShowNewsPage(){
- global $LNG, $USER;
- $action = (isset($_GET['action']))?$_GET['action']:'';
- $NewsList = [];
- if($action == 'send') {
- $edit_id = HTTP::_GP('id', 0);
- $title = $GLOBALS['DATABASE']->sql_escape(HTTP::_GP('title', '', true));
- $text = $GLOBALS['DATABASE']->sql_escape(HTTP::_GP('text', '', true));
- $query = ($_GET['mode'] == 2) ? "INSERT INTO ".NEWS." (`id` ,`user` ,`date` ,`title` ,`text`) VALUES ( NULL , '".$USER['username']."', '".TIMESTAMP."', '".$title."', '".$text."');" : "UPDATE ".NEWS." SET `title` = '".$title."', `text` = '".$text."', `date` = '".TIMESTAMP."' WHERE `id` = '".$edit_id."' LIMIT 1;";
- $GLOBALS['DATABASE']->query($query);
- } elseif($action == 'delete' && isset($_GET['id'])) {
- $GLOBALS['DATABASE']->query("DELETE FROM ".NEWS." WHERE `id` = '".HTTP::_GP('id', 0)."';");
- }
- $query = $GLOBALS['DATABASE']->query("SELECT * FROM ".NEWS." ORDER BY id ASC");
- while ($u = $GLOBALS['DATABASE']->fetch_array($query)) {
- $NewsList[] = array(
- 'id' => $u['id'],
- 'title' => $u['title'],
- 'date' => _date($LNG['php_tdformat'], $u['date'], $USER['timezone']),
- 'user' => $u['user'],
- 'confirm' => sprintf($LNG['nws_confirm'], $u['title']),
- );
- }
- $template = new template();
- if($action == 'edit' && isset($_GET['id'])) {
- $News = $GLOBALS['DATABASE']->getFirstRow("SELECT id, title, text FROM ".NEWS." WHERE id = '".$GLOBALS['DATABASE']->sql_escape($_GET['id'])."';");
- $template->assign_vars(array(
- 'mode' => 1,
- 'nws_head' => sprintf($LNG['nws_head_edit'], $News['title']),
- 'news_id' => $News['id'],
- 'news_title' => $News['title'],
- 'news_text' => $News['text'],
- ));
- } elseif($action == 'create') {
- $template->assign_vars(array(
- 'mode' => 2,
- 'nws_head' => $LNG['nws_head_create'],
- 'news_title' => '',
- 'news_text' => ''
- ));
- }
- $template->assign_vars(array(
- 'NewsList' => $NewsList,
- 'button_submit' => $LNG['button_submit'],
- 'nws_total' => sprintf($LNG['nws_total'], (!isset($NewsList) ? count($NewsList) : 0)),
- 'nws_news' => $LNG['nws_news'],
- 'nws_id' => $LNG['nws_id'],
- 'nws_title' => $LNG['nws_title'],
- 'nws_date' => $LNG['nws_date'],
- 'nws_from' => $LNG['nws_from'],
- 'nws_del' => $LNG['nws_del'],
- 'nws_create' => $LNG['nws_create'],
- 'nws_content' => $LNG['nws_content'],
- ));
- $template->show('NewsPage.tpl');
- }
-
Danter14 wrote:
Fix bug
PHP Source Code
- function ShowNewsPage(){
- global $LNG, $USER;
- $action = (isset($_GET['action']))?$_GET['action']:'';
- $NewsList = [];
- if($action == 'send') {
- $edit_id = HTTP::_GP('id', 0);
- $title = $GLOBALS['DATABASE']->sql_escape(HTTP::_GP('title', '', true));
- $text = $GLOBALS['DATABASE']->sql_escape(HTTP::_GP('text', '', true));
- $query = ($_GET['mode'] == 2) ? "INSERT INTO ".NEWS." (`id` ,`user` ,`date` ,`title` ,`text`) VALUES ( NULL , '".$USER['username']."', '".TIMESTAMP."', '".$title."', '".$text."');" : "UPDATE ".NEWS." SET `title` = '".$title."', `text` = '".$text."', `date` = '".TIMESTAMP."' WHERE `id` = '".$edit_id."' LIMIT 1;";
- $GLOBALS['DATABASE']->query($query);
- } elseif($action == 'delete' && isset($_GET['id'])) {
- $GLOBALS['DATABASE']->query("DELETE FROM ".NEWS." WHERE `id` = '".HTTP::_GP('id', 0)."';");
- }
- $query = $GLOBALS['DATABASE']->query("SELECT * FROM ".NEWS." ORDER BY id ASC");
- while ($u = $GLOBALS['DATABASE']->fetch_array($query)) {
- $NewsList[] = array(
- 'id' => $u['id'],
- 'title' => $u['title'],
- 'date' => _date($LNG['php_tdformat'], $u['date'], $USER['timezone']),
- 'user' => $u['user'],
- 'confirm' => sprintf($LNG['nws_confirm'], $u['title']),
- );
- }
- $template = new template();
- if($action == 'edit' && isset($_GET['id'])) {
- $News = $GLOBALS['DATABASE']->getFirstRow("SELECT id, title, text FROM ".NEWS." WHERE id = '".$GLOBALS['DATABASE']->sql_escape($_GET['id'])."';");
- $template->assign_vars(array(
- 'mode' => 1,
- 'nws_head' => sprintf($LNG['nws_head_edit'], $News['title']),
- 'news_id' => $News['id'],
- 'news_title' => $News['title'],
- 'news_text' => $News['text'],
- ));
- } elseif($action == 'create') {
- $template->assign_vars(array(
- 'mode' => 2,
- 'nws_head' => $LNG['nws_head_create'],
- 'news_title' => '',
- 'news_text' => ''
- ));
- }
- $template->assign_vars(array(
- 'NewsList' => $NewsList,
- 'button_submit' => $LNG['button_submit'],
- 'nws_total' => sprintf($LNG['nws_total'], (!isset($NewsList) ? count($NewsList) : 0)),
- 'nws_news' => $LNG['nws_news'],
- 'nws_id' => $LNG['nws_id'],
- 'nws_title' => $LNG['nws_title'],
- 'nws_date' => $LNG['nws_date'],
- 'nws_from' => $LNG['nws_from'],
- 'nws_del' => $LNG['nws_del'],
- 'nws_create' => $LNG['nws_create'],
- 'nws_content' => $LNG['nws_content'],
- ));
- $template->show('NewsPage.tpl');
- }
-
you're welcome
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Similar Threads