Beiträge: 18
Themen: 3
Registriert seit: 10.06.2014
MyBB-Version: 1.8.1
Hallo.
Derzeit bin ich dabei, meine Website komplett neu zubauen.
Da diese primär für meinen YouTube-Channel gebaut ist, benutze ich derzeit "Cinematico" als CMS, würde aber gerne auch eine MyBB 1.8.1 Installation einbauen.
Ich stelle mir das ganze wie folgt vor:
Das Theme "Revolution Gaming" besitzt einen Header, den ich gerne bearbeiten würde, sodass dort neben "Forum" und "Mitglieder" (etc.) auch "Home", "Videos" und ähnliches verfügbar ist. Danach würde ich mir diese Leiste gerne nehmen und in Cinematico einfügen, sodass sie auch dort zusehen ist.
Wie mache ich das?
Grüße
Benni
PS: Wer sich ein Bild von den Seiten machen will...
Cinematico: http://www.gamenowde.com
MyBB: http://forum.gamenowde.com
Beiträge: 8.516
Themen: 59
Registriert seit: 20.04.2010
MyBB-Version: 1.8*
Laut deinem Wuelltext ist es dieser Abschnitt (den ich aber korrigiert habe)
Code: <div class="menu">
<ul>
<li id="nav-portal"><a href="http://forum.gamenowde.com/portal.php"><i style="font-size: 12px;" class="fa fa-home fa-fw"></i> Home</a></li>
<li id="nav-forums"> <a href="http://forum.gamenowde.com/index.php"><i style="font-size: 12px;" class="fa fa-comments fa-fw"></i> Forums</a></li>
<li id="nav-search"> <a href="http://forum.gamenowde.com/search.php"><i style="font-size: 12px;" class="fa fa-search fa-fw"></i> Suche</a></li>
<li id="nav-member"> <a href="http://forum.gamenowde.com/memberlist.php"><i style="font-size: 12px;" class="fa fa-users fa-fw"></i> Members</a></li>
<li id="nav-calendar"> <a href="http://forum.gamenowde.com/calendar.php"><i style="font-size: 12px;" class="fa fa-calendar fa-fw"></i> Kalender</a></li>
<li id="nav-help"> <a href="http://forum.gamenowde.com/misc.php?action=help"><i style="font-size: 12px;" class="fa fa-info fa-fw"></i> Hilfe</a></li>
<li><a href='javascript:;' id="extraslink"><i style="font-size: 14px;" class="fa fa-caret-down fa-fw"></i>Extras</a></li>
<ul>
<div id="extraslink_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/stats.php" class="popup_item">Forum stats</a>
</div>
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/showteam.php" class="popup_item">Show team</a>
</div>
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/search.php?action=getnew" class="popup_item">Neue Beiträge ansehen</a>
</div>
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/search.php?action=getdaily" class="popup_item">Heutige Beiträge ansehen</a>
</div>
<div class="popup_item_container">
<a href="*" class="popup_item">Link five here</a>
</div>
</div>
</div>
Dies sollte im Header Templates->header zu finden sein.
Wenn Du nun dies auf deine Hauptseite haben möchtest, müssen die css Definitionen mit in dein Hauptteil.
Mit freundlichen Grüßen
MrBrechreiz
Beiträge: 18
Themen: 3
Registriert seit: 10.06.2014
MyBB-Version: 1.8.1
(31.10.2014, 16:53)MrBrechreiz schrieb: Laut deinem Wuelltext ist es dieser Abschnitt (den ich aber korrigiert habe)
Code: <div class="menu">
<ul>
<li id="nav-portal"><a href="http://forum.gamenowde.com/portal.php"><i style="font-size: 12px;" class="fa fa-home fa-fw"></i> Home</a></li>
<li id="nav-forums"> <a href="http://forum.gamenowde.com/index.php"><i style="font-size: 12px;" class="fa fa-comments fa-fw"></i> Forums</a></li>
<li id="nav-search"> <a href="http://forum.gamenowde.com/search.php"><i style="font-size: 12px;" class="fa fa-search fa-fw"></i> Suche</a></li>
<li id="nav-member"> <a href="http://forum.gamenowde.com/memberlist.php"><i style="font-size: 12px;" class="fa fa-users fa-fw"></i> Members</a></li>
<li id="nav-calendar"> <a href="http://forum.gamenowde.com/calendar.php"><i style="font-size: 12px;" class="fa fa-calendar fa-fw"></i> Kalender</a></li>
<li id="nav-help"> <a href="http://forum.gamenowde.com/misc.php?action=help"><i style="font-size: 12px;" class="fa fa-info fa-fw"></i> Hilfe</a></li>
<li><a href='javascript:;' id="extraslink"><i style="font-size: 14px;" class="fa fa-caret-down fa-fw"></i>Extras</a></li>
<ul>
<div id="extraslink_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/stats.php" class="popup_item">Forum stats</a>
</div>
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/showteam.php" class="popup_item">Show team</a>
</div>
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/search.php?action=getnew" class="popup_item">Neue Beiträge ansehen</a>
</div>
<div class="popup_item_container">
<a href="http://forum.gamenowde.com/search.php?action=getdaily" class="popup_item">Heutige Beiträge ansehen</a>
</div>
<div class="popup_item_container">
<a href="*" class="popup_item">Link five here</a>
</div>
</div>
</div>
Dies sollte im Header Templates->header zu finden sein.
Wenn Du nun dies auf deine Hauptseite haben möchtest, müssen die css Definitionen mit in dein Hauptteil.
Okay, Danke für deine Hilfe.
Die Bearbeitung der Links war ja an sich selbsterklärend, doch wie ich jetzt die CSS-Definitionen in den Hauptteil bekommen musst du mir erklären.
Beiträge: 8.516
Themen: 59
Registriert seit: 20.04.2010
MyBB-Version: 1.8*
In deiner revolution.min.css wirst Du fündig.
Dies sollte es sein
Code: .menu{background:#000;float:left;text-align:left;background-color:rgba(0,0,0,.8);width:100%;font-size:13px;font-style:normal}.menu ul{padding:0;margin:0}.menu li{list-style:none;display:inline-block;padding:13px 12px;margin:0;-webkit-transition:all 0.5s ease;-moz-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-o-transition:all 0.5s ease;transition:all 0.5s ease;font-size:13px;font-style:normal}.menu li:hover,.menu li:active{-webkit-transition:all 0.5s ease;-moz-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-o-transition:all 0.5s ease;transition:all 0.5s ease}.menu li a:link,.menu li a:visited{color:#fff;text-shadow:1px 1px 0px #262832}
Mit freundlichen Grüßen
MrBrechreiz
Beiträge: 18
Themen: 3
Registriert seit: 10.06.2014
MyBB-Version: 1.8.1
31.10.2014, 18:00
(Dieser Beitrag wurde zuletzt bearbeitet: 31.10.2014, 18:03 von GameNowDE.)
Ich habe (fast) keine Ahnung von php, CSS etc.
Wohin soll ich den CSS-Code tun? Wohin den Header-php-Code tun?
Edit:
Der Code der style.css Datei der Hauptseite ist folgender:
Code: /* Setup
*********************************************************************************************/
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
body {
background: #ffffff;
font-family: 'Lato', sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 300;
color: #404040;
}
/* Typography
*********************************************************************************************/
@font-face {
font-family: 'icons';
src:url('../fonts/icons.eot');
src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
url('../fonts/icons.ttf') format('truetype'),
url('../fonts/icons.woff') format('woff'),
url('../fonts/icons.svg#icons') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="icon-"], [class*=" icon-"] {
font-family: 'icons';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-edit {
width: 100%;
float: left;
position: relative;
}
.icon-edit:before {
content: "\e601";
font-size: 15px;
color: #cccccc;
position: absolute;
top: 4px;
left: 0;
}
.icon-check:before {
content: "\e600";
}
.icon-out:before {
content: "\e603";
}
.icon-preview:before {
content: "\e604";
}
.icon-close:before {
content: "\e605";
}
.icon-trash:before {
content: "\e606";
}
/* Typography
*********************************************************************************************/
h1 {
font-size: 52px;
line-height: 52px;
font-weight: 700;
color: #404040;
margin: 0 0 10px;
}
h2 {
font-size: 20px;
line-height: 20px;
font-weight: 700;
color: #404040;
margin: 0 0 5px;
}
h3 {
font-size: 16px;
line-height: 28px;
font-weight: 400;
color: #606060;
width: 100%;
float: left;
margin: 0;
}
p, ul {
margin: 0 0 20px;
}
p.notify {
background-color: #f39068;
color: #ffffff;
font-size: 12px;
line-height: 24px;
height: 24px;
float: left;
padding: 0 8px;
}
p.notify a {
color: #ffffff;
font-weight: 400;
text-decoration: underline;
}
a {
color: #404040;
text-decoration: none;
-webkit-transition-duration: .2s;
-moz-transition-duration: .2s;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
/* Content
*********************************************************************************************/
.bar {
background: #57ca8e;
height: 2px;
position: fixed;
top: 0;
left: 0;
-webkit-transition-duration: .2s;
-moz-transition-duration: .2s;
}
#content {
width: 100%;
float: left;
margin: 0;
}
.row {
width: 100%;
float: left;
}
.row.border {
border-bottom: 1px solid #f2f2f0;
padding: 40px 0 20px;
}
.row.images {
padding: 0 0 30px;
}
.row.images h3 {
margin: 0 0 5px;
}
.row.header {
padding: 70px 0 60px;
}
.row.footer {
padding: 10px 0 60px;
}
.row p a {
font-weight: 400;
border-bottom: 1px solid #ebebeb;
}
.row p a:hover {
color: #cccccc;
}
.row.footer p,
.row.footer a {
font-size: 12px;
font-weight: 300;
color: #cccccc;
border: none;
margin: 0;
}
.row.footer a {
background: url('../images/logo-small.jpg') no-repeat;
background-size: 15px;
padding-left: 20px;
}
.row.footer img {
height: 15px;
opacity: 0.4;
}
.row.footer img:hover {
opacity: 0.8;
}
.content {
width: 620px;
float: left;
margin: 0 0 0 160px;
}
.selection {
display: none;
}
.selected {
display: block;
}
/* Form Styles
*********************************************************************************************/
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
background: none;
border: none;
outline: none;
resize: none;
font-family: 'Lato', sans-serif;
font-size: 14px;
line-height: 22px;
font-weight: 300;
color: #909090;
width: 90%;
float: left;
margin: 0 0 20px;
padding: 0 0 0 20px;
-moz-transition-duration: 0.1s;
-webkit-transition-duration: 0.1s;
position: relative;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
color: #404040;
}
textarea {
height: 22px
}
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
display: none;
}
label {
-webkit-transition-duration: .2s;
-moz-transition-duration: .2s;
}
/* Button Labels */
label.button {
background-color: #F2f2f0;
border: 0;
border-radius: 3px;
font-family: 'Lato', sans-serif;
font-weight: 300;
font-size: 14px;
line-height: 40px;
color: #909090;
text-align: center;
float: left;
height: 40px;
margin: 5px 1px 25px 0;
padding: 0 20px;
cursor: pointer;
}
.button-group {
float: left;
margin: 5px 0 24px 0;
}
.button-group label.button {
background-color: #F2f2f0;
border: 0;
border-radius: 3px;
font-family: 'Lato', sans-serif;
font-weight: 300;
font-size: 14px;
line-height: 40px;
color: #909090;
text-align: center;
float: left;
height: 40px;
margin: 0 1px 1px 0;
}
label.button.choose,
input[type="radio"]:checked+label.button {
background-color: #57ca8e;
color: #ffffff;
}
label.button.replace {
background-color: #f39068;
color: #ffffff;
}
/* Frame Inputs */
.frame {
border: 0;
border-radius: 3px;
width: 200px;
height: 150px;
float: left;
position: relative;
margin: 0 1px 1px 0;
cursor: pointer;
overflow: hidden;
}
.frame.logo,
.frame.favicon {
background-color: #373737;
text-align: center;
}
.frame.logo img {
max-height: 130px;
max-width: 180px;
margin: 10px;
}
.frame.favicon img {
width: 16px;
height: 16px;
margin: 67px 0 0 0;
}
.frame.themes {
background-color: #f1f1f1;
height: 225px;
}
.frame.themes img {
width: 200px;
}
.frame.background img {
height: 150px;
}
/* Theme Labels */
label.theme {
position: absolute;
top: 0;
left: 0;
cursor: pointer;
opacity: 0.8;
}
label.theme:hover,
input[type="radio"]:checked+label.theme {
opacity: 1.0;
}
/* Remove Labels */
label.remove {
background-color: #57ca8e;
border-radius: 2px;
font-size: 10px;
line-height: 20px;
color: #ffffff;
text-align: center;
width: 20px;
height: 20px;
position: absolute;
bottom: 5px;
right: 5px;
margin: 0;
cursor: pointer;
}
label.remove:hover,
input[type="radio"]:checked+label.remove,
input[type="checkbox"]:checked+label.remove {
background-color: #f39068;
}
/* Buttons
*********************************************************************************************/
button,
.buttons a {
border: none;
border-radius: 3px;
font-size: 20px;
line-height: 50px;
text-align: center;
width: 50px;
height: 50px;
position: fixed;
cursor: pointer;
-webkit-appearance: none;
z-index: 1000;
}
button:hover,
.buttons a:hover {
opacity: 0.8;
}
button:focus {
outline: none;
}
button.submit {
background-color: #57ca8e;
color: #ffffff;
bottom: 10px;
right: 10px;
}
.buttons a {
background-color: #f2f2f0;
color: #999999;
}
.buttons a:nth-child(1) {
bottom: 61px;
right: 10px;
}
.buttons a:nth-child(2) {
bottom: 112px;
right: 10px;
}
/* Mobile Optimizations
*********************************************************************************************/
@media (max-width: 1024px) {
.content {
margin: 0 0 0 100px;
}
}
@media (max-width: 780px) {
.content {
width: 480px;
}
}
@media (max-width: 640px) {
.content {
width: 320px;
margin: 0 0 0 60px;
}
}
@media (max-width: 480px) {
body {
font-size: 14px;
line-height: 18px;
}
h1 {
font-size: 30px;
line-height: 30px;
margin: 0 0 5px;
}
h2 {
font-size: 20px;
line-height: 20px;
}
h3 {
font-size: 14px;
line-height: 18px;
}
.icon-edit:before {
font-size: 13px;
top: 2px;
}
.row.border {
padding: 25px 0 10px;
}
.row.header {
padding: 45px 0 30px;
}
.content {
width: 280px;
margin: 0 0 0 20px;
}
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
font-size: 12px;
line-height: 16px;
margin: 0 0 20px;
padding: 0 0 0 20px;
}
textarea {
height: 16px
}
label.button {
font-size: 12px;
line-height: 30px;
height: 30px;
margin: 5px 1px 25px 0;
padding: 0 15px;
}
button,
.buttons a {
font-size: 15px;
line-height: 30px;
width: 30px;
height: 30px;
}
button.submit {
bottom: 5px;
right: 5px;
}
.buttons a:nth-child(1) {
bottom: 36px;
right: 5px;
}
.buttons a:nth-child(2) {
bottom: 67px;
right: 5px;
}
}
Beiträge: 8.516
Themen: 59
Registriert seit: 20.04.2010
MyBB-Version: 1.8*
Dann füge an ganz letzter Stelle den Code ein, den ich schrieb. Natürlich auch den Code für die Navigation auf deiner Hauptseite nicht vergessen einzubauen.
Mit freundlichen Grüßen
MrBrechreiz
Beiträge: 18
Themen: 3
Registriert seit: 10.06.2014
MyBB-Version: 1.8.1
Beiträge: 8.516
Themen: 59
Registriert seit: 20.04.2010
MyBB-Version: 1.8*
Soll das Tatsächlich der Code deiner Hauptseite sein ?
Mit freundlichen Grüßen
MrBrechreiz
Beiträge: 18
Themen: 3
Registriert seit: 10.06.2014
MyBB-Version: 1.8.1
31.10.2014, 18:21
(Dieser Beitrag wurde zuletzt bearbeitet: 31.10.2014, 18:24 von GameNowDE.)
Ähm, warum die Frage?
Die Datei liegt im Server-Root und heisst Index.php, also denke ich mal ja.
Edit:
Interessanterweise laden jegliche externe Ihnhalte bei mir nicht, wenn ich die Hauptseite mit "www." und nicht ohne Aufrufe. Kann es dafür einen plausiblen Grund geben?
Beiträge: 8.516
Themen: 59
Registriert seit: 20.04.2010
MyBB-Version: 1.8*
Wenn ich bei dir den Link erweitere mir index.php, bekomme ich einen Fehler. Daher die Frage.
Mit freundlichen Grüßen
MrBrechreiz
|