TOPIC: ot_photographer error on Multiple languages. / help me

ot_photographer error on Multiple languages. / help me 10 years 3 weeks ago #4741

  • varitv
  • varitv's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
templates : ot_photographer
Joomla 2.5
www.bettabook.com
error -> www.bettabook.com/solve/layout.jpg
i sand config , password to This email address is being protected from spambots. You need JavaScript enabled to view it.

I have a problem.
I want to make a website in 2 languages​​ (Thai & English).
But there are issues. When the Main menu, press the 2 languages ​​will not go home-layout ,But it go to inside layout.

I think need to fix that Mod_menu & templates.
I can not solve this problem. Please help me.

Best Regards,
varitv

This image is hidden for guests. Please log in or register to see it.
Last Edit: 10 years 2 weeks ago by varitv.
The administrator has disabled public write access.

Re: ot_photographer error on Multiple languages. / help me 10 years 3 weeks ago #4746

  • varitv
  • varitv's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
OK ! I found the problem.


\templates\ot_photographer\lib\layout\tpl.function.php

Line number 65
before
//Check Home Page
$menu =& JSite::getMenu();
$menuActive = $menu->getActive();
if($menuActive == $menu->getDefault()){
$home = 'isHomePage';
}else{
$home = 'isInnerPages';
}

//$layoutView = &JRequest::getVar( 'layoutview' ) == $this->params->get('layoutType');

new edit

//Check Home Page
$menu =& JSite::getMenu();
$menuActive = $menu->getActive();
if($menuActive == $menu->getDefault()){
$home = 'isHomePage';
}else{
$home = 'isInnerPages';
}

$menu =& JSite::getMenu(); // Load the menu
$active = $menu->getActive(); // Get the current active menu
if ($active->home ==1) { // See if this is the homepage
$home = 'isHomePage';
} else {
$home = 'isInnerPages';
}

//$layoutView = &JRequest::getVar( 'layoutview' ) == $this->params->get('layoutType');

End edit

OK ! It WORK

Best Regards,
varitv
Last Edit: 10 years 3 weeks ago by varitv.
The administrator has disabled public write access.
Time to create page: 0.101 seconds