Ostatnio zainstalowałem na forum Portal System 3.0.4 Wszystko pięknie chodzi, lecz denerwuje mnie jedna sprawa: portal ustawiany jest domyślnie jako strona główna.
Przypuszczam że chodzi o ustawienia w pliku index.php . Otóż instrukcja wygląda następująco:
Open: ./index.php
Find:
$ipsclass->input['act'] = isset($ipsclass->input['act']) ? $ipsclass->input['act'] : ( IPB_MAKE_PORTAL_HOMEPAGE ? 'home' : 'idx' );
if( is_array($ipsclass->input['act']) )
{
$ipsclass->input['act'] = ( IPB_MAKE_PORTAL_HOMEPAGE ) ? 'home' : 'idx';
}
Replace With:
if(!isset($ipsclass->input['act'] )){
$ipsclass->input['act'] = 'component';
$ipsclass->input['module'] = 'portal';
}
if( is_array($ipsclass->input['act']) )
{
$ipsclass->input['act'] = 'component';
$ipsclass->input['module'] = 'portal';
} Find:
if ( ! isset($choice[ strtolower($ipsclass->input['act']) ][0]) )
{
$ipsclass->input['act'] = ( IPB_MAKE_PORTAL_HOMEPAGE ) ? 'home' : 'idx';
} Replace With:
if ( ! isset($choice[ strtolower($ipsclass->input['act']) ][0]) )
{
$ipsclass->input['act'] = 'component';
$ipsclass->input['module'] = 'portal';
}
Jak zmodyfikować ten kod, by jako stronę główną wyświetlało stronę forum, a w pasku menu był odnośni do Portal (tak jak to ma miejsce gdy włączymy IB.Portal)
















