View Single Post
  #2  
Old 7th September 2011, 09:32
zhoutai zhoutai is offline
Senior Member
 
Join Date: Jul 2011
Saudi Arabia
Posts: 19
Default
Quote:
Originally Posted by ronalniko View Post
Hello, i have a little problem i`m trying to change language and the style , but when i change the style with another , still stayed the same.... the same is the language also? how i can fix this think?
you have Xbtit 2.2.2


Code:
Open Index.php

Find
if (empty($_SESSION['user']['style_url']))
Replace with
if (empty($_SESSION['CURUSER']['style_url']))

Find
$_SESSION['user']['style_url']=$STYLEURL;
Replace with
$_SESSION['CURUSER']['style_url']=$STYLEURL;


Find
$_SESSION['user']['style_path']=$STYLEPATH;
Replace with
$_SESSION['CURUSER']['style_path']=$STYLEPATH;

Find
$STYLEURL=$_SESSION['user']['style_url'];
Replace with
$STYLEURL=$_SESSION['CURUSER']['style_url'];

Find
 $STYLEPATH=$_SESSION['user']['style_path'];
Replace with
$STYLEPATH=$_SESSION['CURUSER']['style_path'];


Find
if (empty($_SESSION['user']['language_path']))
Replace with
if (empty($_SESSION['CURUSER']['language_path']))

Find
$_SESSION['user']['language_path']=$USERLANG;
Replace with
$_SESSION['CURUSER']['language_path']=$USERLANG;

Find
$USERLANG=$_SESSION['user']['language_path'];
Replace with
$USERLANG=$_SESSION['CURUSER']['language_path'];

i try Xbtit 2.2.1 and Xbtit 2.2.2

Xbtit 2.2.1 Better
Reply With Quote