MyBB.de Forum
Menü im Header einsetzen - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Theme-Diskussionen (https://www.mybb.de/forum/forum-84.html)
+--- Thema: Menü im Header einsetzen (/thread-16364.html)

Seiten: Seiten: 1 2


Menü im Header einsetzen - Spunk - 17.06.2010

Link zum Forum: http://www.mycreationhost.bplaced.net/forum/

Ich würde Suche, Mitglieder, Kalender und Hilfe aus dem Header entfernen und stattdessen in diesen Raum dieses Menü einbinden (so wie auch auf meiner Hauptseite):

http://www.mycreationhost.bplaced.net/menue.php

Es soll so wie auf der Hauptseite direkt unter dem Header sein:
http://www.mycreationhost.bplaced.net/

Den restlich Hintergrund kann ich ja im CSS machen.


Aber in der Datei (Seitenkopftemplates--> Header) wirbeln meine änderung immer das ganze script durcheinander. Ich habe
Code:
            <div class="menu">
                <ul>
                    <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
                    <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                </ul>
            </div>

durch
Code:
<div id="menue_bg">

        <?php
        include ("http://www.mycreationhost.bplaced.net/menue.php");
        ?>
</div>

ersetzt und das in global css geschrieben:
Code:
#menue_bg
{
    width:930px;
    height:55px;
    background-color:#ffa106;


Aber dann kommt nur ne Fehlermeldung. Weiß jemand was ich anders machen muss?


RE: Menü im Header einsetzen - querschlaeger - 17.06.2010

Du willst PHP ins Template einfügen, was nicht geht. Füge anstelle den HTML-Code direkt ein.


RE: Menü im Header einsetzen - BartM - 17.06.2010

Mach mal in den seitenkopf Header

dies rein

Code:
<ul id="sddm">
    <li><a href="index.php" onmouseover="mopen('m1')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/home-icon.png">
    </a>
        <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="index.php">Startseite</a>
        <a href="#">News</a>
        <a href="forum/memberlist.php">Member</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m2')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/sound-icon.png"></a>
        <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Track-Charts</a>
        <a href="#">Musiker-Charts</a>
        <a href="musikupload.php">Musik-Upload</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m3')" onmouseout="mclosetime()"><img src="http://www.mycreationhost.bplaced.net/images/icons/camera.png"></a>
        <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Bilder-Charts</a>
        <a href="#">K&uuml;nstler-Charts</a>
        <a href="bilderupload.php">Bilder-Upload</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m4')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/application-icon.png"></a>
        <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Text-Charts</a>
        <a href="#">Writer-Charts</a>
        <a href="textupload.php">Text-Upload</a>
        </div>
    </li>
    <li><a href="forum/index.php" onmouseover="mopen('m5')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/folder-icon.png"></a>
        <div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="forum/index.php">Forum</a>
        <a href="forum/usercp.php">Mein Profil</a>
        <a href="forum/private.php">PNs</a>
        </div>
    </li>

    <li><a href="#" onmouseover="mopen('m6')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/help1-icon.png"></a>
        <div id="m6" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Hilfe</a>
        <a href="agb.php">AGB</a>
        <a href="impressum.php">Impressum</a>
        
        </div>
    </li>
</ul>


Denn in dem Template muss der HTML code rein .. und nicht PHP


RE: Menü im Header einsetzen - Spunk - 17.06.2010

Auch dann bekomm ich die Fehlermeldung...


Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING in /users/mycreationhost/www/forum/global.php(439) : eval()'d code on line 5


Aber schonmal danke für die schnellen Antworten Smile


RE: Menü im Header einsetzen - StefanT - 17.06.2010

Bitte poste den kompletten Inhalt des Templates.


RE: Menü im Header einsetzen - Spunk - 17.06.2010

Code:
<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
            <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

        <ul id="sddm">
    <li><a href="index.php" onmouseover="mopen('m1')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/home-icon.png">
    </a>
        <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="index.php">Startseite</a>
        <a href="#">News</a>
        <a href="forum/memberlist.php">Member</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m2')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/sound-icon.png"></a>
        <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Track-Charts</a>
        <a href="#">Musiker-Charts</a>
        <a href="musikupload.php">Musik-Upload</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m3')" onmouseout="mclosetime()"><img src="http://www.mycreationhost.bplaced.net/images/icons/camera.png"></a>
        <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Bilder-Charts</a>
        <a href="#">K&uuml;nstler-Charts</a>
        <a href="bilderupload.php">Bilder-Upload</a>
        </div>
    </li>
    <li><a href="#" onmouseover="mopen('m4')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/application-icon.png"></a>
        <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Text-Charts</a>
        <a href="#">Writer-Charts</a>
        <a href="textupload.php">Text-Upload</a>
        </div>
    </li>
    <li><a href="forum/index.php" onmouseover="mopen('m5')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/folder-icon.png"></a>
        <div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="forum/index.php">Forum</a>
        <a href="forum/usercp.php">Mein Profil</a>
        <a href="forum/private.php">PNs</a>
        </div>
    </li>

    <li><a href="#" onmouseover="mopen('m6')" onmouseout="mclosetime()"> <img src="http://www.mycreationhost.bplaced.net/images/icons/help1-icon.png"></a>
        <div id="m6" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
        <a href="#">Hilfe</a>
        <a href="agb.php">AGB</a>
        <a href="impressum.php">Impressum</a>
        
        </div>
    </li>
</ul>
            <hr class="hidden" />
            <div id="panel">
                {$welcomeblock}
            </div>
        </div>
        <hr class="hidden" />
        <br class="clear" />
        <div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
            <navigation>
            <br />

So siehts aus nachdem ich abgespeichert habe:

Code:
<div id=\"container\">
        <a name=\"top\" id=\"top\"></a>
        <div id=\"header\">
            <div class=\"logo\"><a href=\"{$mybb->settings[\'bburl\']}/index.php\"><img src=\"{$theme[\'logo\']}\" alt=\"{$mybb->settings[\'bbname\']}\" title=\"{$mybb->settings[\'bbname\']}\" /></a></div>

        <ul id=\"sddm\">
    <li><a href=\"index.php\" onmouseover=\"mopen(\'m1\')\" onmouseout=\"mclosetime()\"> <img src=\"http://www.mycreationhost.bplaced.net/images/icons/home-icon.png\">
    </a>
        <div id=\"m1\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">
        <a href=\"index.php\">Startseite</a>
        <a href=\"#\">News</a>
        <a href=\"forum/memberlist.php\">Member</a>
        </div>
    </li>
    <li><a href=\"#\" onmouseover=\"mopen(\'m2\')\" onmouseout=\"mclosetime()\"> <img src=\"http://www.mycreationhost.bplaced.net/images/icons/sound-icon.png\"></a>
        <div id=\"m2\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">
        <a href=\"#\">Track-Charts</a>
        <a href=\"#\">Musiker-Charts</a>
        <a href=\"musikupload.php\">Musik-Upload</a>
        </div>
    </li>
    <li><a href=\"#\" onmouseover=\"mopen(\'m3\')\" onmouseout=\"mclosetime()\"><img src=\"http://www.mycreationhost.bplaced.net/images/icons/camera.png\"></a>
        <div id=\"m3\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">
        <a href=\"#\">Bilder-Charts</a>
        <a href=\"#\">K&uuml;nstler-Charts</a>
        <a href=\"bilderupload.php\">Bilder-Upload</a>
        </div>
    </li>
    <li><a href=\"#\" onmouseover=\"mopen(\'m4\')\" onmouseout=\"mclosetime()\"> <img src=\"http://www.mycreationhost.bplaced.net/images/icons/application-icon.png\"></a>
        <div id=\"m4\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">
        <a href=\"#\">Text-Charts</a>
        <a href=\"#\">Writer-Charts</a>
        <a href=\"textupload.php\">Text-Upload</a>
        </div>
    </li>
    <li><a href=\"forum/index.php\" onmouseover=\"mopen(\'m5\')\" onmouseout=\"mclosetime()\"> <img src=\"http://www.mycreationhost.bplaced.net/images/icons/folder-icon.png\"></a>
        <div id=\"m5\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">
        <a href=\"forum/index.php\">Forum</a>
        <a href=\"forum/usercp.php\">Mein Profil</a>
        <a href=\"forum/private.php\">PNs</a>
        </div>
    </li>

    <li><a href=\"#\" onmouseover=\"mopen(\'m6\')\" onmouseout=\"mclosetime()\"> <img src=\"http://www.mycreationhost.bplaced.net/images/icons/help1-icon.png\"></a>
        <div id=\"m6\" onmouseover=\"mcancelclosetime()\" onmouseout=\"mclosetime()\">
        <a href=\"#\">Hilfe</a>
        <a href=\"agb.php\">AGB</a>
        <a href=\"impressum.php\">Impressum</a>
        
        </div>
    </li>
</ul>
            <hr class=\"hidden\" />
            <div id=\"panel\">
                {$welcomeblock}
            </div>
        </div>
        <hr class=\"hidden\" />
        <br class=\"clear\" />
        <div id=\"content\">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
            <navigation>
            <br />



RE: Menü im Header einsetzen - Michael - 17.06.2010

Siehe: https://www.mybb.de/forum/thread-15237-post-108983.html#pid108983


RE: Menü im Header einsetzen - Spunk - 18.06.2010

Habs geändert, aber bekomme immer noch diese Fehlermeldung...


RE: Menü im Header einsetzen - StefanT - 18.06.2010

Hast du das Template zurückgesetzt?


RE: Menü im Header einsetzen - Spunk - 18.06.2010

Also hab das "Header" Template zurückgesetzt, dann das class_core template geändert und dann wieder das Menü im Header Template eingesetzt.
Jetzt hab ich header wieder zurückgesetzt.