dundee Опубликовано 20 Апреля 2008 Жалоба Поделиться Опубликовано 20 Апреля 2008 Перерыл вроде все форумы так и не нашел информации как это сделать для 2.3.4. Народ, помогите где и что менять в index.php ? Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
dundee Опубликовано 5 Октября 2008 Автор Жалоба Поделиться Опубликовано 5 Октября 2008 To Get Portal Running... # Go to tools and setting below, Upload XML settings file from your computer # Open the Documentation folder, and select the file "mod_settings.xml" and import it. Then import mod_settings1.xml and mod_templates. Go to Manage Components in the Admin tab, and import the file: ipd_components. Open Index.php Find //=========================================================================== // Short tags... //=========================================================================== $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'; } //--------------------------------------------------- // Check to make sure the array key exits.. //--------------------------------------------------- if ( ! isset($choice[ strtolower($ipsclass->input['act']) ][0]) ) { $ipsclass->input['act'] = ( IPB_MAKE_PORTAL_HOMEPAGE ) ? 'home' : 'idx'; } Replace With //=========================================================================== // Short tags... //=========================================================================== #$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'; #} //--------------------------------------------------- // Check to make sure the array key exits.. //--------------------------------------------------- $ipsclass->input['_low_act'] = strtolower( $ipsclass->input['act'] ); if (! isset($choice[ $ipsclass->input['_low_act'] ][0]) ) { #$ipsclass->input['act'] = 'idx'; #$ipsclass->input['_low_act'] = 'idx'; $ipsclass->input['act'] = 'component'; $ipsclass->input['_low_act'] = 'component'; $ipsclass->input['module'] = 'portal'; } Then Find $ipsclass->input['act'] = ( ! isset($ipsclass->input['act']) || $ipsclass->input['act'] == '' ) ? "idx" : $ipsclass->input['act']; } if ( !isset($ipsclass->input['_low_act']) OR !$ipsclass->input['_low_act'] OR $ipsclass->input['_low_act'] == 'idx' OR $ipsclass->input['_low_act'] == 'home' ) { $ipsclass->input['_low_act'] = strtolower($ipsclass->input['act']); } Replace With #$ipsclass->input['act'] = $ipsclass->input['act'] == '' ? "idx" : $ipsclass->input['act']; if( $ipsclass->input['act'] == '' ) { $ipsclass->input['act'] = 'component'; $ipsclass->input['module'] = 'portal'; } } if ( ! $ipsclass->input['_low_act'] OR $ipsclass->input['_low_act'] == 'component' ) //$ipsclass->input['_low_act'] == 'idx' ) { $ipsclass->input['_low_act'] = strtolower($ipsclass->input['act']); } $ipsclass->input['module'] = ($ipsclass->input['act'] == 'component' || $ipsclass->input['act'] == 'module' ) ? $ipsclass->input['module'] : ''; If You Dont Do The Edits You Can Use The Link /index.php?autocom=portal If You Do The Edits Goto Admin Tab>Components>Manage Components And Click The Check Mark Beside Of The Portal To Change It To An X So The autocom Portal Link Will Not Show On Your Site Спасибо огромное Tribalize с IP.Board Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.