linki do stron zewnętrznych w menu

Un

Avatar: Un

2010-10-25 09:15

Mam jeszcze pytanie, żeby nie zakładać nowego tematu. Było dobrze, póki nie było treści na stronie, tylko samo menu. Teraz, po kliknięciu na jakie kolwiek inne menu, które ma odesłać do strony z tekstem / czy embed code, pojawia sie strona: - Bad Gateway (na cba.pl) i serwer niedostępny (na boo.pl). Menu do linka zewnętrznego działa bez problemu. Po usunięciu wpisu z actions_client wszystko wraca do normy i zawartość stron pokazuje się bez problemu. Mam QuickCms lite 2.7

proszę o pomoc, pozdrawiam

madziairm

Avatar: madziairm

2012-01-04 22:18

Quick.Cms 3.2

Mój plik wygląda tak:

<?php
if( isset( $iContent ) && is_numeric$iContent ) ){
  
$aData $oPage->throwPage$iContent );
  if( isset( 
$aData ) ){
    if( !empty( 
$aData['sUrl'] ) ){
      
header'Location: '.$aData['sUrl'] );
      exit;
    }

    if( !empty( 
$aData['sTemplate'] ) )
      
$oTpl->setFileAlt$config['default_pages_template'] );
    else{
      if( 
$config['inherit_from_parents'] === true && !empty( $aData['iPageParent'] ) ){
        
$aDataParent $oPage->throwPage$aData['iPageParent'] );
        if( !empty( 
$aDataParent['sTemplate'] ) ){
          
$aData['sTemplate'] = $aDataParent['sTemplate'];
          
$oTpl->setFileAlt$config['default_pages_template'] );
        }
      }
      if( empty( 
$aData['sTemplate'] ) )
        
$aData['sTemplate'] = $config['default_pages_template'];
    }

    if( !empty( 
$aData['sTheme'] ) )
      
$sTheme $aData['sTheme'];
    else{
      if( 
$config['inherit_from_parents'] === true && !empty( $aData['iPageParent'] ) ){
        if( !isset( 
$aDataParent ) )
          
$aDataParent $oPage->throwPage$aData['iPageParent'] );
        if( !empty( 
$aDataParent['sTheme'] ) )
          
$sTheme $aDataParent['sTheme'];
      } 
    }

    if( !empty( 
$aData['sMetaKeywords'] ) )
      
$sKeywords $aData['sMetaKeywords'];
    if( !empty( 
$aData['sMetaDescription'] ) )
      
$sDescription $aData['sMetaDescription'];
    if( empty( 
$aData['sDescriptionFull'] ) )
      
$aData['sDescriptionFull'] = $aData['sDescriptionShort'];

    
$aData['sPagesTree'] = $oPage->throwPagesTree$iContent );

    
$sTxtSize = ( $config['text_size'] == true ) ? $oTpl->tbHtml$aData['sTemplate'], 'TXT_SIZE' ) : null;
    
$sPagesTree = !empty( $aData['sPagesTree'] ) ? $oTpl->tbHtml$aData['sTemplate'], 'PAGES_TREE' ) : null;
    
$sPages = isset( $aData['sPages'] ) ? $oTpl->tbHtml$aData['sTemplate'], 'PAGES' ) : null;
    
$sBanner = !empty( $aData['sBanner'] ) ? $oTpl->tbHtml$aData['sTemplate'], 'BANNER' ) : null;
    
$sTitle strip_tags( ( !empty( $aData['sNameTitle'] ) ? $aData['sNameTitle'] : $aData['sName'] ).' - ' );
    
$sSubpagesList null;

    
$aData['sDescriptionFull'] = changeTxt$aData['sDescriptionFull'], 'nlNds' );

    if( 
$aData['iSubpagesShow'] > ){
      if( 
$aData['iSubpagesShow'] < )
        
$sSubpagesList $oPage->listSubpages$iContent$aData['sTemplate'], $aData['iSubpagesShow'] );
    }

    
$aImages $oFile->listImagesByTypes$aData['sTemplate'], $iContent );
    
$sFilesList $oFile->listFiles$aData['sTemplate'], $iContent );

    
$oTpl->unsetVariables( );
    
$content .= $oTpl->tbHtml$aData['sTemplate'], 'CONTAINER' );
  }
  else{
    
header"HTTP/1.0 404 Not Found\r\n" );
    
$sTitle $lang['404_error'].' - ';
    
$content .= $oTpl->tbHtml'messages.tpl''ERROR' );
  }
}
?>



Z tego, co widzę, mam 3 razy

if( !empty( $aData['sTemplate'] ) )


Po wypróbowaniu wszystkich 3 miejsc wywala mi:

Not Found

The requested URL /~213634/Quick.Cms_v3.2/<a href="http://dziedzictwo.umk.pl/">http://dziedzictwo.umk.pl/</a> was not found on this server.

Proszę o pomoc, dodam, że jestem zielona w tych sprawach i bazuję na Waszych podpowiedziach :)

madziairm

Avatar: madziairm

2012-01-04 22:20

Już widzę swoje błędy w poście wyżej ;) Ale tak czy owak, po wstawieniu w dobrym miejscu nie działa - wyświetla się w/w komunikat.

ps. Czemu nie można edytować postów?

Do góry
o nas | kontakt