Lösung für Board3 V2.0
Kopie portal.php -> portal2.php
Kopie portal_body.html -> portal_body2.html
Kopie overall_footer.html -> overall_footer2.html
Die Dateien könnten natürlich auch meineseite.php , meineseite_body.html und meineseite_footer.html
heissen , dann müssen die Änderungen unten aber entsprechend angepasst werden .
portal2.php
Finde :
Code: Select all
$template->set_filenames(array(
    'body' => 'portal/portal_body.html')
); 
Ändere in :
Code: Select all
$template->set_filenames(array(
    'body' => 'portal/portal_body2.html')
); 
Ersetze alles durch : ( sofern andere MODs hier keine Eintragungen haben )
Code: Select all
<!-- DEFINE $S_IN_PORTAL = 1 -->
<!-- INCLUDE overall_header.html -->
<!-- INCLUDE portal/_block_config2.html -->
<!-- IF PORTAL_VERSION_CHECK and U_ACP --> 
    <div id="portal_version_check" class="rules">
        <div class="inner"><span class="corners-top"><span></span></span>
        <strong>{L_INFORMATION}:</strong> {PORTAL_VERSION_CHECK}
        <span class="corners-bottom"><span></span></span></div>
    </div>
<!-- ENDIF -->
<table cellpadding="0" cellspacing="0" border="0" width="1000px">
<!-- INCLUDE overall_footer2.html -->
    <!-- IF S_TOP_COLUMN -->    
    <tr>
    <!-- [+] top module area -->
        <td colspan="3">
            <!-- BEGIN modules_top -->
                
                <!-- DEFINE $TEMPLATE_FILE = '{modules_top.TEMPLATE_FILE}' -->
                <!-- DEFINE $IMAGE_SRC = '{modules_top.IMAGE_SRC}' -->
                <!-- DEFINE $IMAGE_WIDTH = '{modules_top.IMAGE_WIDTH}' -->
                <!-- DEFINE $IMAGE_HEIGHT = '{modules_top.IMAGE_HEIGHT}' -->
                <!-- DEFINE $CUSTOM_CODE = '{modules_top.CODE}' -->
                <!-- DEFINE $TITLE = '{modules_top.TITLE}' -->
                <!-- DEFINE $MODULE_ID = '{modules_top.MODULE_ID}' -->
                <!-- INCLUDE {$TEMPLATE_FILE} -->
            <!-- END modules_top -->
        </td>
    <!-- [-] top module area -->
    </tr>
    <!-- ENDIF -->
    <tr>
    <!-- [+] left module area -->
        <!-- IF S_LEFT_COLUMN -->
        <td valign="top" style="width: {S_PORTAL_LEFT_COLUMN}px; padding-right: {$BLOCK_DISTANCE};">
        </td>
        <!-- ENDIF -->
    <!-- [-] left module area -->
    <!-- [+] center module area -->
        <!-- IF S_CENTER_COLUMN -->
        <td valign="top">
            <!-- IF S_DISPLAY_JUMPBOX -->
            <!-- ENDIF -->
        </td>
        <!-- ENDIF -->
    <!-- [-] center module area -->
    <!-- [+] right module area -->
        <!-- IF S_RIGHT_COLUMN -->
        <td valign="top" style="width: {S_PORTAL_RIGHT_COLUMN}px; padding-left: {$BLOCK_DISTANCE};">
        </td>
        <!-- ENDIF -->
    <!-- [-] right module area -->
    </tr>
    <!-- IF S_BOTTOM_COLUMN -->
    <tr>
    <!-- [+] bottom module area -->
            <td colspan="3">
        </td>
    <!-- [-] bottom module area -->
    </tr>
    <!-- ENDIF -->
</table>
<!--// board3 Portal by www.board3.de //-->
<div class="copyright">Powered by <a href="http://www.board3.de/">Board3 Portal</a> © 2009 - 2011 Board3 Group</div>
<!-- INCLUDE overall_footer.html -->
 
Entferne diesen Part oder ausklammern : ( damit der obere eigene Block nicht im Portal erscheint )
Code: Select all
    <!-- IF S_TOP_COLUMN -->    
    <tr>
    <!-- [+] top module area -->
        <td colspan="3">
            <!-- BEGIN modules_top -->
                <!-- DEFINE $TEMPLATE_FILE = '{modules_top.TEMPLATE_FILE}' -->
                <!-- DEFINE $IMAGE_SRC = '{modules_top.IMAGE_SRC}' -->
                <!-- DEFINE $IMAGE_WIDTH = '{modules_top.IMAGE_WIDTH}' -->
                <!-- DEFINE $IMAGE_HEIGHT = '{modules_top.IMAGE_HEIGHT}' -->
                <!-- DEFINE $CUSTOM_CODE = '{modules_top.CODE}' -->
                <!-- DEFINE $TITLE = '{modules_top.TITLE}' -->
                <!-- DEFINE $MODULE_ID = '{modules_top.MODULE_ID}' -->
                <!-- INCLUDE {$TEMPLATE_FILE} -->
            <!-- END modules_top -->
        </td>
    <!-- [-] top module area -->
    </tr>
    <!-- ENDIF --> 
 ( damit ich auch über dem Block einen Link habe um zurück ins Portal zu springen ,
der Eintrag dafür steht schon oben in der portal_body2.html )
Code: Select all
    </div>
<div id="page-footer">
    <div class="navbar">
        <div class="inner"><span class="corners-top"><span></span></span>
            <ul class="linklist">
                <li class="icon-home"><!-- IF U_PORTAL --><a href="{U_PORTAL}">{L_PORTAL}</a> » <!-- ENDIF --><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></li>
            </ul>
            <span class="corners-bottom"><span></span></span></div>
    </div>
</body>
</html> 
Wenn ich jetzt das Forum aufrufe habe ich das "normale Portal , mit aufrufen der portal2.php habe
ich nun die Portalseite , jetzt aber nur mit einem "OBEREN BLOCK" .
Erstellt man jetzt z.B. noch potrtal3.php , portal_body3.html kann man das Ganze  jetzt noch mit
den UNTEREN eigenen Blöcken wiederholen um eine zweite Seite zu bekommen .
So siehts jetzt in einem Portal V2.0 aus :
http://www.feuerwehr-wangerooge.de/portal.php ( das normale Portal
http://www.feuerwehr-wangerooge.de/portal2.php die neue Seite