Problema risolto Cms - tuttacms

DiegoV

Utente Attivo
Autore del topic
24 Febbraio 2014
419
41
Miglior risposta
0
Assistenza Tecnica Habbo Retroserver
Titolo
TUTTACMS
Tipologia del tuo problema/richiesta
CMS
CMS/Server/DB/Client Utilizzato
TUTTACMS HABBOSTYLE
Qual è il tuo errore?
Quando effetto il login mi porta alla pagina news invece del profilo
Screenshot
-
Ulteriori informazioni
-
 
<?php
/* *\
| TuttaCMS |
\* */
define('PAGE_ID', 'index');
define('PAGE_NAME', 'Crea il tuo avatar, arreda le tue Stanze, chatta e incontra nuovi Amici');


add_style_script('css', '{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/css/beta-style.css?1');
add_style_script('script', '{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/js/snow.js');

get_page('header-index');

if(!isset($_GET['return_url'])){ $return_url = ""; } else { $return_url = base64_decode($_GET['return_url']); $return_url_und = $_GET['return_url'];}

hide_if_logged();

function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
// If the user is on a mobile device, redirect them
/*if(isMobile()){
header("Location: {@siteURL@}/mobile-login");
} else {
}
*/

?>
<body client-disable-scrollbars>
<section class="content">
<ui-view class="ng-scope">
<div require-no-session="" class="ng-scope">
<div class="header ng-isolate-scope" active="home">
<div class="header__background">
<div class="header--large__top sticky-header sticky-header--top" sticky-header="">
<div class="header__wrapper wrapper"><div class="header--large__top__content">
<div class="login--inline">
<form name="form" method="post" class="login__form ng-pristine ng-valid ng-isolate-scope ng-valid-email ng-valid-credentials" novalidate shake="">
<fieldset class="login__form__fieldset">
<label for="login-email" class="login__form__label ng-scope">Login:</label>
<input type="text" name="username" placeholder="Username" class="login__form__input ng-pristine ng-valid ng-valid-email ng-valid-credentials ng-touched">
</fieldset>
<fieldset class="login__form__fieldset">
<input type="password" name="password" placeholder="&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;" class="login__form__input ng-pristine ng-untouched ng-valid ng-valid-credentials">
</fieldset>
<input type="hidden" name="return_url" value="<?php echo $return_url?>"/>
<input name="login" type="submit" value="Entra" class="login__form__button ng-binding">
</form>
</div>
</div>
</div>
</div>

<div class="header--large__content" ng-transclude="">
<section class="register-banner">
<div class="register-banner__hotel">
</div>
<div class="register-banner__wrapper">
<div class="register-banner__register">
{@INDEX_ERROR@}
<h3 class="register-banner__title ng-scope">Un posto bizzarro e pieno di gente fantastica!</h3>
<a href="{@siteURL@}/registration">
<button class="register-banner__button ng-scope" >ISCRIVITI ORA</button>
</a>
</div>
</div>
</section>
</div>
<div>
<header>
<div class="wrapper">
<span class="logo"></span>
</div>
</header>
<nav class="navigation ng-isolate-scope" active="home">
<div class="wrapper">
<ul class="navigation__menu navigation__menu--main">
<li class="navigation__item">
<a href="{@siteURL@}/mobile-login" class="navigation__login ng-scope" >Login</a>
<a style="color:#000"><b>Su {@siteNAME@} ci sono <?php echo users_online(); ?> utenti online!</b></a>
</li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</ui-view>
<div class="footer__push"></div>
</section>
<footer class="footer">
<div class="wrapper">
<?php get_page('footer-index'); ?>
</div>
</footer>

</body>
</html>

- - - Aggiornato - - -

si indirizza sulla pagina 'now'
 
Ti porta a codesta pagina ?
f2b3be02feaa2c4feece2ee8bd6a60d9.png
 
E' normale che ti porta lì perchè è la pagina dove ti riassume il retro nel senso ti dice quali sono state le ultime news ecc.. . Ti basterà clicca sul bottone "Profilo" e andrai sul tuo profilo ;)
 
Non vedo nessun codice di reindirizzamento alla 'now' nella index.php
Prova a sostuire i nomi le pagine. Esempio: Prendi la pagina del profilo e rinominala in 'now' mentre la pagina 'now' la rinonimi in 'profilo'.
 
non sto capendo nulla, devo invertire il nome e i file che avevo modificato prima gli lascio all'originale?
 
Ti spiego meglio: Prendi il file 'profilo' e rinominalo in 'now' mentre il file 'now' e rinominalo in 'profilo'.
Dopo di chè vai nell'header dove si trovano i bottoni della me.php e inverti i nomi. Esempio trovi il bottone 'profilo' chiamalo 'ora' e fai viceversa con l'altro.
 
ho invertito, pero il file ora si chiama news me lo inverti tu


<?php
/* *\
| MYCMS - TProgram |
\* */
if(!defined('PAGE_NAME')):
$page_name = '';
else:
$page_name = ': '.PAGE_NAME;
endif;
add_style_script('css', '{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/css/beta-style.css');
add_style_script('script', '{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/js/snow.js');
add_style_script('script', '{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/js/jquery-1.7.0.min.js');
add_style_script('script', '{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/js/jquery.tooltipster.min.js');
$url_crypted = base64_encode("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
if(!isset($_GET['return_url'])){ $return_url = ""; } else { $return_url = base64_decode($_GET['return_url']); $return_url_und = $_GET['return_url'];}

$mainteinance_info = get_settings_value('site_mainteinance');

if(staff_logged_in()){

$mainteinance = false;

} else {

if($mainteinance_info == 'true'){

$mainteinance = true;

} else {
$mainteinance = false;
}

}

?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php get_meta_tag(PAGE_ID); ?>
<title>{@siteNAME@}<?php echo $page_name ?></title>
<link rel="shortcut icon" href="{@siteURL@}/app/content/templates/{@siteTEMPLATE@}/img/favicon.ico" type="image/vnd.microsoft.icon"/>
<META name="description" content="{@siteDESCRIPTION@}">
<?php get_style_script('css'); ?>
<?php get_style_script('script'); ?>
</head>
<script>
!function(){
var e=document.createElement("link"), t=document.getElementsByTagName("script")[0];
"http:"!==window.location.protocol&&"https:"!==window.location.protocol&&(e.href="http:"),
e.href+="//fonts.googleapis.com/css?family=Ubuntu:regular,bold|Ubuntu+Condensed:lighter,regular,bold",
e.rel="stylesheet",
e.type="text/css",
t.parentNode.insertBefore(e,t)}()
</script>
</head>
<body>
<notifier></notifier>
<section class="content">
<div class="header--<?php if(PAGE_ID == 'now' || PAGE_ID == 'staff' || PAGE_ID == 'news'){ echo 'hotel'; } elseif(PAGE_ID == 'profile' || PAGE_ID == 'mainteinance'){ echo 'profile'; } ?> header">
<div class="header__background">
<div class="hotel--small"></div>

<?php
if(user_logged_in()){
?>
<a class="logout_button" href="{@siteURL@}/logout"><span class="menuicon logout"></span> Logout &nbsp;&nbsp;</a>
<a class="logout_button" style="margin-right:15px"><?php echo users_online(); ?> utenti online</a>
<?php
}
?>

<header>
<div class="wrapper">
<a href="{@siteURL@}/index" class="header__home-link--small"><h1>{@siteNAME@}</h1></a>
</div>
<div class="header--small__wrapper wrapper"></div>
</header>
<nav class="navigation" active="<?php echo PAGE_ID; ?>">
<div class="wrapper">
<?php
if(!$mainteinance){
if(user_logged_in()){
?>
<ul class="navigation__menu navigation__menu--main">
<li class="navigation__item">
<a href="{@siteURL@}/profile/{@user_name@}" class="navigation__link navigation__link--profile <?php if(PAGE_ID == 'profile'){ echo 'navigation__link--active'; } ?>">
<span class="navigation__text">Profilo</span>
</a>
</li>
<?php
} else {
?>
<li class="navigation__item">
<a href="{@siteURL@}/registration" class="navigation__link navigation__link--home">
<span class="navigation__text">Registrati</span>
</a>
</li>
<?php
}
?>
<?php
if(user_logged_in()){
?>
<li class="navigation__item">
<a href="{@siteURL@}/now" class="navigation__link navigation__link--home <?php if(PAGE_ID == 'now' || PAGE_ID == 'news'){ echo 'navigation__link--active'; } ?>">
<span class="navigation__text">News</span>
</a>
</li>
<?php
}
?>
<li class="navigation__item">
<a href="{@siteURL@}/staff" class="navigation__link navigation__link--channels <?php if(PAGE_ID == 'staff'){ echo 'navigation__link--active'; } ?>">
<span class="navigation__text">Staff</span>
</a>
</li>
<?php
if(user_logged_in()){
?>
<li class="navigation__item"><a href="/client" target="_blank" require-flash="" class="navigation__link navigation__link--hotel"><span class="navigation__text" >Client</span></a>
</li>
<?php
}
?>
<?php if(isStaff()){?>
<li class="navigation__item"><a href='{@siteURL@}/my-admin/index' class="navigation__link"><span class="navigation__text" style="color:#F00">PANNELLO AMMINISTRAZIONE</span></a>
</li>
</ul>
<?php } } else {?>
<ul class="navigation__menu navigation__menu--main">
<li class="navigation__item">
</li>
</ul>
<?php } ?>

</div>
</nav>
<div class="wrapper"></div>

- - - Aggiornato - - -

se clicco su news esce profilo se clicco profilo esce news come sistemo o.o