Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] day and night mode cookies
#1
global.css 

.switcher {
  height: auto;
  color:red
}

.switcher a {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  font-style: normal;
  line-height: 1;
  padding: 5px 10px;
  color: red;
  border-radius: 2px
  cursor: pointer;
}

.switcher a:hover {
  color: green;
}

.pageskin .pageskin-remove,
.switcher a {
  text-transform: uppercase;
  cursor: pointer;

}

.switcher-mode-on {
   cursor: pointer;
   color:blue;
}
	
.switcher-mode-off {
  cursor: pointer;
  color:red;
}

.ff-hide,
.hide {
  display: none !important;
}


Header find

<a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>

add below

<a class="switcher-mode-on hide"><i class="fas fa-moon"title="Open Game Mode"></i></a> <a class="switcher-mode-off hide"><i class="far fa-moon"title="Close Game Mode"></i></a>


headerinclude

<script type="text/javascript" src="{$mybb->asset_url}/images/moonmode.js"></script>

{$stylesheets}

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"/>

style-dark.css edit

Upload to ftp images folder


Attached Files Thumbnail(s)
   

.zip   images.zip (Size: 2.13 KB / Downloads: 12)
Our New Theme Published = Click to download
Reply
#2
js and css files in images/ ?
Why don't you use the correct directories ?
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#3
Please edit your first post.
Where and what to add in headerinclude.
Thank you .
Reply
#4
this work for all theme?
Reply
#5
A similar plugin that additionally modifies stylesheets and editortheme server-side to avoid the flash of unstyled content: DVZ Theme Options (documentation: https://github.com/dvz/mybb-dvzThemeOptions)
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)