Joom!fish - Wrapper with language - Solution Found!! - Joomla! Forum - community, help and support
hi everybody, looking since time solution have joomla active language in wrapped pages..
somebody suggested use of mambots override wrapper, on side found easy, quick solution:
maybe it's not safe, maybe it's not elegant, maybe maybe.. works, , it's need
***** manual signatures not allowed *****
***** manual signatures not allowed *****
edit file: components/com_wrapper/wrapper.php
on line 25 (or around it..) should find code:
showwrap( $option);
change to:
showwrap( $option, $mosconfig_lang );
***** manual signatures not allowed *****
***** manual signatures not allowed *****
edit file: components/com_wrapper/wrapper.html.php
on line 26 (or around it..) should find code:
function displaywrap( &$row, &$params, &$menu ) {
change to:
function displaywrap( &$row, &$params, &$menu, &$active_lang ) {
***** manual signatures not allowed *****
on line 55 (or around it..) should find code:
src="url; ?>"
change to:
src="url.'?active_lang='.$active_lang; ?>"
***** manual signatures not allowed *****
now in wrapped pages should have variable called $active_lang tells active joomla language..
any comment/suggestion?
bye
somebody suggested use of mambots override wrapper, on side found easy, quick solution:
maybe it's not safe, maybe it's not elegant, maybe maybe.. works, , it's need
***** manual signatures not allowed *****
***** manual signatures not allowed *****
edit file: components/com_wrapper/wrapper.php
on line 25 (or around it..) should find code:
showwrap( $option);
change to:
showwrap( $option, $mosconfig_lang );
***** manual signatures not allowed *****
***** manual signatures not allowed *****
edit file: components/com_wrapper/wrapper.html.php
on line 26 (or around it..) should find code:
function displaywrap( &$row, &$params, &$menu ) {
change to:
function displaywrap( &$row, &$params, &$menu, &$active_lang ) {
***** manual signatures not allowed *****
on line 55 (or around it..) should find code:
src="url; ?>"
change to:
src="url.'?active_lang='.$active_lang; ?>"
***** manual signatures not allowed *****
now in wrapped pages should have variable called $active_lang tells active joomla language..
any comment/suggestion?
bye
moderator note; moving language >> joomfish
thanks posting tip!
thanks posting tip!
Comments
Post a Comment