• User Newbie

    phpbb3 header con menu uguale al sito

    vorrei fare l'header del forum come quella del sito http://rohan.netsons.org

    ci ho provato ma è venuto piuttosto male...

    non vorrei chiedere troppo ma riuscireste a modificare questi file in modo che funzioni? grazie 100.

    questo è il mio overall_header

    <link rel=&quot;icon&quot; href=&quot;favicon.png&quot; type=&quot;image/png&quot; />
    <br><img src=&quot;rohaninferno3prova1.png&quot; ></td><br><br>
    
    <div align=&quot;center&quot;>
    <a href=&quot;http://rohan.netsons.org/index.php&quot; class=&quot;stra4&quot;><b>Home</b></a>
    <a href=&quot;http://rohan.netsons.org/info.php&quot; class=&quot;stra4&quot;><b>Info</b></a>
    <a href=&quot;http://rohan.netsons.org/classi.php&quot; class=&quot;stra4&quot;><b>Classi</b></a>
    <a href=&quot;http://rohan.netsons.org/guide.php&quot; class=&quot;stra4&quot;><b>Guide</b></a>
    <a href=&quot;http://rohan.netsons.org/quest.php&quot; class=&quot;stra4&quot;><b>Quest</b></a>
    <a href=&quot;http://rohan.netsons.org/item.php&quot; class=&quot;stra4&quot;><b>Item</b></a>
    <a href=&quot;http://rohan.netsons.org/guild.php&quot; class=&quot;stra4&quot;><b>Guild</b></a>
    <a href=&quot;#&quot; class=&quot;stra4&quot;><b>Forum</b></a></div><br><br>
    
    <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
    <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; dir=&quot;{S_CONTENT_DIRECTION}&quot; lang=&quot;{S_USER_LANG}&quot; xml:lang=&quot;{S_USER_LANG}&quot;>
    <head>
    
    <meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset={S_CONTENT_ENCODING}&quot; />
    <meta http-equiv=&quot;content-language&quot; content=&quot;{S_USER_LANG}&quot; />
    <meta http-equiv=&quot;content-style-type&quot; content=&quot;text/css&quot; />
    <meta http-equiv=&quot;imagetoolbar&quot; content=&quot;no&quot; />
    <meta name=&quot;resource-type&quot; content=&quot;document&quot; />
    <meta name=&quot;distribution&quot; content=&quot;global&quot; />
    <meta name=&quot;copyright&quot; content=&quot;2002-2006 phpBB Group&quot; />
    <meta name=&quot;keywords&quot; content=&quot;&quot; />
    <meta name=&quot;description&quot; content=&quot;&quot; />
     {META}
    <title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>
    
    <link rel=&quot;stylesheet&quot; href=&quot;{T_STYLESHEET_LINK}&quot; type=&quot;text/css&quot; />
    
    <script type=&quot;text/javascript&quot;>
    // <![CDATA[
    <!-- IF S_USER_PM_POPUP -->
        if ({S_NEW_PM})
        {
            popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
        }
    <!-- ENDIF -->
    
    function popup(url, width, height, name)
    {
        if (!name)
        {
            name = '_popup';
        }
    
        window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
        return false;
    }
    
    function jumpto()
    {
        var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
        var perpage = '{PER_PAGE}';
        var base_url = '{A_BASE_URL}';
    
        if (page !== null && !isNaN(page) && page > 0)
        {
            document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * perpage);
        }
    }
    
    /**
    * Find a member
    */
    function find_username(url)
    {
        popup(url, 760, 570, '_usersearch');
        return false;
    }
    
    /**
    * Mark/unmark checklist
    * id = ID of parent container, name = name prefix, state = state [true/false]
    */
    function marklist(id, name, state)
    {
        var parent = document.getElementById(id);
        if (!parent)
        {
            eval('parent = document.' + id);
        }
    
        if (!parent)
        {
            return;
        }
    
        var rb = parent.getElementsByTagName('input');
        
        for (var r = 0; r < rb.length; r++)
        {
            if (rb.name.substr(0, name.length) == name)
            {
                rb.checked = state;
            }
        }
    }
    
    <!-- IF ._file -->
    
        /**
        * Play quicktime file by determining it's width/height
        * from the displayed rectangle area
        *
        * Only defined if there is a file block present.
        */
        function play_qt_file(obj)
        {
            var rectangle = obj.GetRectangle();
    
            if (rectangle)
            {
                rectangle = rectangle.split(',')
                var x1 = parseInt(rectangle[0]);
                var x2 = parseInt(rectangle[2]);
                var y1 = parseInt(rectangle[1]);
                var y2 = parseInt(rectangle[3]);
    
                var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
                var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
            }
            else
            {
                var width = 200;
                var height = 0;
            }
    
            obj.width = width;
            obj.height = height + 16;
    
            obj.SetControllerVisible(true);
    
            obj.Play();
        }
    <!-- ENDIF -->
    
    // ]]>
    </script>
    </head>
    <body class=&quot;{S_CONTENT_DIRECTION}&quot;>
    
    <a name=&quot;top&quot;></a>
    
    <div id=&quot;wrapheader&quot;>
    
        <div id=&quot;logodesc&quot;>
            <table width=&quot;100%&quot; cellspacing=&quot;0&quot;>
            <tr>
                <td><a href=&quot;{U_INDEX}&quot;>{SITE_LOGO_IMG}</a></td>
                <td width=&quot;100%&quot; align=&quot;center&quot;><h1>{SITENAME}</h1><span class=&quot;gen&quot;>{SITE_DESCRIPTION}</span></td>
            </tr>
            </table>
        </div>
    
        <div id=&quot;menubar&quot;>
            <table width=&quot;100%&quot; cellspacing=&quot;0&quot;>
            <tr>
                <td class=&quot;genmed&quot;>
                    <!-- IF not S_IS_BOT --><a href=&quot;{U_LOGIN_LOGOUT}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_login.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
                    <!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href=&quot;{U_RESTORE_PERMISSIONS}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_login.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
                    <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style=&quot;color: red;&quot;>{L_BOARD_DISABLED}</span><!-- ENDIF -->
                    <!-- IF not S_IS_BOT -->
                        <!-- IF S_USER_LOGGED_IN -->
                            <!-- IF S_DISPLAY_PM --> &nbsp;<a href=&quot;{U_PRIVATEMSGS}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_message.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
                        <!-- ELSE --> &nbsp;<a href=&quot;{U_REGISTER}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_register.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_REGISTER}</a>
                        <!-- ENDIF -->
                    <!-- ENDIF -->
                </td>
                <td class=&quot;genmed&quot; align=&quot;{S_CONTENT_FLOW_END}&quot;>
                    <a href=&quot;{U_FAQ}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_faq.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_FAQ}</a>
                    <!-- IF S_DISPLAY_SEARCH -->&nbsp; &nbsp;<a href=&quot;{U_SEARCH}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_search.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_SEARCH}</a><!-- ENDIF -->
                    <!-- IF not S_IS_BOT -->
                        <!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href=&quot;{U_MEMBERLIST}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_members.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_MEMBERLIST}</a><!-- ENDIF -->
                        <!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href=&quot;{U_PROFILE}&quot;><img src=&quot;{T_THEME_PATH}/images/icon_mini_profile.gif&quot; width=&quot;12&quot; height=&quot;13&quot; alt=&quot;*&quot; /> {L_PROFILE}</a><!-- ENDIF -->
                    <!-- ENDIF -->
                </td>
            </tr>
            </table>
        </div>
    
        <div id=&quot;datebar&quot;>
            <table width=&quot;100%&quot; cellspacing=&quot;0&quot;>
            <tr>
                <td class=&quot;gensmall&quot;><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF --></td>
                <td class=&quot;gensmall&quot; align=&quot;{S_CONTENT_FLOW_END}&quot;>{CURRENT_TIME}<br /></td>
            </tr>
            </table>
        </div>
    
    </div>
    
    <div id=&quot;wrapcentre&quot;>
    
        <!-- IF S_DISPLAY_SEARCH -->
        <p class=&quot;searchbar&quot;>
            <span style=&quot;float: {S_CONTENT_FLOW_BEGIN};&quot;><a href=&quot;{U_SEARCH_UNANSWERED}&quot;>{L_SEARCH_UNANSWERED}</a> | <a href=&quot;{U_SEARCH_ACTIVE_TOPICS}&quot;>{L_SEARCH_ACTIVE_TOPICS}</a></span>
            <!-- IF S_USER_LOGGED_IN -->
            <span style=&quot;float: {S_CONTENT_FLOW_END};&quot;><a href=&quot;{U_SEARCH_NEW}&quot;>{L_SEARCH_NEW}</a> | <a href=&quot;{U_SEARCH_SELF}&quot;>{L_SEARCH_SELF}</a></span>
            <!-- ENDIF -->
        </p>
        <!-- ENDIF -->
    
        <br style=&quot;clear: both;&quot; />
    
        <!-- INCLUDE breadcrumbs.html -->
    
        <br />
    
    ```e questo è il mio index_body ( mi pare che serva pure questo )
    

    <!-- INCLUDE overall_header.html -->

    <!-- IF U_MCP -->
    <div id="pageheader">
    <p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
    </div>

    <br clear=&quot;all&quot; /><br />
    

    <!-- ENDIF -->

    <!-- INCLUDE forumlist_body.html -->

    <span class="gensmall"><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a><!-- ENDIF --> | <a href="{U_TEAM}">{L_THE_TEAM}</a></span><br />

    <br clear="all" />

    <!-- INCLUDE breadcrumbs.html -->

    <!-- IF S_DISPLAY_ONLINE_LIST -->
    <br clear="all" />

    <table class=&quot;tablebg&quot; width=&quot;100%&quot; cellspacing=&quot;1&quot;>
    <tr>
        <td class=&quot;cat&quot; colspan=&quot;2&quot;><!-- IF U_VIEWONLINE --><h4><a href=&quot;{U_VIEWONLINE}&quot;>{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></td>
    </tr>
    <tr>
    <!-- IF LEGEND -->
        <td class=&quot;row1&quot; rowspan=&quot;2&quot; align=&quot;center&quot; valign=&quot;middle&quot;><img src=&quot;{T_THEME_PATH}/images/whosonline.gif&quot; alt=&quot;{L_WHO_IS_ONLINE}&quot; /></td>
    <!-- ELSE -->
        <td class=&quot;row1&quot; align=&quot;center&quot; valign=&quot;middle&quot;><img src=&quot;{T_THEME_PATH}/images/stats.gif&quot; alt=&quot;{L_WHO_IS_ONLINE}&quot; /></td>
    <!-- ENDIF -->
        <td class=&quot;row1&quot; width=&quot;100%&quot;><span class=&quot;genmed&quot;>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
    </tr>
    <!-- IF LEGEND -->
        <tr>
            <td class=&quot;row1&quot;><b class=&quot;gensmall&quot;>{L_LEGEND} :: {LEGEND}</b></td>
        </tr>
    <!-- ENDIF -->
    </table>
    

    <!-- ENDIF -->

    <!-- IF S_DISPLAY_BIRTHDAY_LIST -->
    <br clear="all" />

    <table class=&quot;tablebg&quot; width=&quot;100%&quot; cellspacing=&quot;1&quot;>
    <tr>
        <td class=&quot;cat&quot; colspan=&quot;2&quot;><h4>{L_BIRTHDAYS}</h4></td>
    </tr>
    <tr>
        <td class=&quot;row1&quot; align=&quot;center&quot; valign=&quot;middle&quot;><img src=&quot;{T_THEME_PATH}/images/birthdays.gif&quot; alt=&quot;{L_BIRTHDAYS}&quot; /></td>
        <td class=&quot;row1&quot; width=&quot;100%&quot;><p class=&quot;genmed&quot;><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
    </tr>
    </table>
    

    <!-- ENDIF -->

    <br clear="all" />

    <table class="tablebg" width="100%" cellspacing="1">
    <tr>
    <td class="cat" colspan="2"><h4>{L_STATISTICS}</h4></td>
    </tr>
    <tr>
    <td class="row1"><img src="{T_THEME_PATH}/images/stats.gif" alt="{L_STATISTICS}" /></td>
    <td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
    </tr>
    </table>

    <!-- IF not S_USER_LOGGED_IN -->
    <br clear="all" />

    <form method=&quot;post&quot; action=&quot;{S_LOGIN_ACTION}&quot;>
    
    <table class=&quot;tablebg&quot; width=&quot;100%&quot; cellspacing=&quot;1&quot;>
    <tr>
        <td class=&quot;cat&quot;><h4><a href=&quot;{U_LOGIN_LOGOUT}&quot;>{L_LOGIN_LOGOUT}</a></h4></td>
    </tr>
    <tr>
        <td class=&quot;row1&quot; align=&quot;center&quot;><span class=&quot;genmed&quot;>{L_USERNAME}:</span> <input class=&quot;post&quot; type=&quot;text&quot; name=&quot;username&quot; size=&quot;10&quot; />&nbsp; <span class=&quot;genmed&quot;>{L_PASSWORD}:</span> <input class=&quot;post&quot; type=&quot;password&quot; name=&quot;password&quot; size=&quot;10&quot; />&nbsp; <!-- IF S_AUTOLOGIN_ENABLED --> <span class=&quot;gensmall&quot;>{L_LOG_ME_IN}</span> <input type=&quot;checkbox&quot; class=&quot;radio&quot; name=&quot;autologin&quot; /><!-- ENDIF -->&nbsp; <input type=&quot;submit&quot; class=&quot;btnmain&quot; name=&quot;login&quot; value=&quot;{L_LOGIN}&quot; /></td>
    </tr>
    </table>
    {S_FORM_TOKEN}
    </form>
    

    <!-- ENDIF -->

    <br clear="all" />

    <table class="legend">
    <tr>
    <td width="20" align="center">{FORUM_NEW_IMG}</td>
    <td><span class="gensmall">{L_NEW_POSTS}</span></td>
    <td>  </td>
    <td width="20" align="center">{FORUM_IMG}</td>
    <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
    <td>  </td>
    <td width="20" align="center">{FORUM_LOCKED_IMG}</td>
    <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
    </tr>
    </table>

    <!-- INCLUDE overall_footer.html -->


  • Super User

    Forse e dico forse è questo che dovrebbe andare nell' overall_header

    
    <link rel="icon" href="favicon.png" type="image/png" />
    <br><div align="center"><img src="http://rohan.netsons.org/forum/rohaninferno3prova1.png" ></div></td><br><br>
    
    <div class="stra4" align="center">
    <a href="http://rohan.netsons.org/index.php"><b>Home</b></a>
    <a href="http://rohan.netsons.org/info.php"><b>Info</b></a>
    <a href="http://rohan.netsons.org/classi.php"><b>Classi</b></a>
    <a href="http://rohan.netsons.org/guide.php"><b>Guide</b></a>
    <a href="http://rohan.netsons.org/quest.php"><b>Quest</b></a>
    <a href="http://rohan.netsons.org/item.php"><b>Item</b></a>
    <a href="http://rohan.netsons.org/guild.php"><b>Guild</b></a>
    <a href="#"><b>Forum</b></a></div><br><br>
    
    

    l'ho provato su una pagina html e sembra funzionare 🙂


  • User Newbie

    bene vedo che l'header e il menu sono al centro, cmq il menu non prende piu il css e inoltre il mio problema maggiore è che tutto il forum si è ingrandito...


  • Super User

    Prova così:

    
    <link rel="icon" href="favicon.png" type="image/png" />
    <br><div align="center"><img src="http://rohan.netsons.org/forum/rohaninferno3prova1.png" ></div></td><br><br>
    <div align="center">
    <a href="http://rohan.netsons.org/index.php" class="stra4"><b>Home</b></a>
    <a href="http://rohan.netsons.org/info.php" class="stra4"><b>Info</b></a>
    <a href="http://rohan.netsons.org/classi.php" class="stra4"><b>Classi</b></a>
    <a href="http://rohan.netsons.org/guide.php" class="stra4"><b>Guide</b></a>
    <a href="http://rohan.netsons.org/quest.php" class="stra4"><b>Quest</b></a>
    <a href="http://rohan.netsons.org/item.php" class="stra4"><b>Item</b></a>
    <a href="http://rohan.netsons.org/guild.php" class="stra4"><b>Guild</b></a>
    <a href="#" class="stra4"><b>Forum</b></a></div><br><br> 
    

  • User Newbie

    ora funziona anche il css anche se i menu non sono al centro.
    comunque il problema principale è che tutto il forum si è notevolmente ingrandito.

    ora ho tolto quello che avevo scritto nell overal header, non so perchè ma qualunque cosa scriva mi fa diventare il forum enorme....


  • User Newbie

    dai va bene cosi, non importanta il menu

    grazie per l'aiuto 😉