Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse AntiHarvesting AntiMalUser AntiSpam API Attack Balancing Banning Beats billige black block Blocking Blocks blue Captcha cell Christmas chronolabs Cloud content Conversion dating demo docek download Dresses editor evden eve facebook familia floor free Friendica herre Honeypot Human instant-zero inStyler Invoice IP IPLog jQuery JSON kantor lamps List log logger mobile module modules Monster MyAlbum-p newbb news online Outlet PageRank Permissions pink Plugin Plus pollos portal Prevention profile project Protector publisher REST Rights rmcommon Room sale security Server site Smarty Spam stem Studio svn tag tags tdmcreate Theme themes userlog website Whitepaper xoops Xortify ZendFramework

New Users

Registering user

# 136023

qinxian123

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 3 »


#1 Posted on: 2009/11/4 16:59 xlanguage in xoops 2.4
include_once XOOPS_ROOT_PATH.'/modules/xlanguage/api.php';
    
into XOOPS/include/common.php 
    RIGHT BEFORE 
        
// #################### Include site-wide lang file ##################
        
if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php") ) {
            include_once 
XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/global.php";
        } else {
            include_once 
XOOPS_ROOT_PATH."/language/english/global.php";
        }


XOOPS/include/common.php is not the same as previous version of Xoops, does anyone know where about to insert XOOPS_ROOT_PATH.'/modules/xlanguage/api.php'; in XOOPS/include/common.php ?

Top

mrphilong
Quite a regular
Quite a regular
Joined:
2006/7/14 5:37
From Down Under
Group:
Registered Users
Posts: 328
(Show More) (Show Less)


#2 Posted on: 2009/11/4 17:09 Re: xlanguage in xoops 2.4
hi'

You should try after line 149 and this code
xoops_loadLanguage('pagetype');


Top

Burning
Theme Designer
Theme Designer
Joined:
2006/8/22 14:44
Group:
Registered Users
Repository Group
Posts: 1111
(Show More) (Show Less)


#3 Posted on: 2009/11/4 17:55 Re: xlanguage in xoops 2.4
No need to do anything anymore.

Just download the updated version, install it, and you're done.

Thanks to Preloads and to Trabis, with this new version of xLanguage, starting with XOOPS 2.4, there is no need to hack anything anymore.

Top

Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 6938
(Show More) (Show Less)


#4 Posted on: 2009/11/4 18:10 Re: xlanguage in xoops 2.4
Excellent news

Thanks !

Top

Burning
Theme Designer
Theme Designer
Joined:
2006/8/22 14:44
Group:
Registered Users
Repository Group
Posts: 1111
(Show More) (Show Less)


#5 Posted on: 2009/11/4 18:46 Re: xlanguage in xoops 2.4
Shouldn't the version number not be incremented to 3.02?

It seems these proposals were not incorporated. Don't know if they are for real.



Top

ghia
Community Support Member
Community Support Member
Joined:
2008/7/3 14:19
From Belgium
Group:
Registered Users
Posts: 4946
(Show More) (Show Less)


#6 Posted on: 2009/11/4 19:15 Re: xlanguage in xoops 2.4
Upgraded to preload version and hack for php5.2 but still doesn't work.

Top

mrphilong
Quite a regular
Quite a regular
Joined:
2006/7/14 5:37
From Down Under
Group:
Registered Users
Posts: 328
(Show More) (Show Less)


#7 Posted on: 2009/11/5 0:26 Re: xlanguage in xoops 2.4
Quote:
Shouldn't the version number not be incremented to 3.02?

Done

Quote:
It seems these proposals were not incorporated. Don't know if they are for real.

Trabis did only a change to make it work with preloads, but nothing else. It would be nice if somebody could update the module with these hacks, and whatever else is needed...

Top

Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 6938
(Show More) (Show Less)


#8 Posted on: 2009/11/5 0:28 Re: xlanguage in xoops 2.4
Quote:
Upgraded to preload version and hack for php5.2 but still doesn't work.

Did you update the module in Admin?
What kind of errors are you getting now?

Top

Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 6938
(Show More) (Show Less)


#9 Posted on: 2009/11/5 1:57 Re: xlanguage in xoops 2.4
Check also by switching the language in the XOOPS general preferences, if the site works OK in both languages.

Top

ghia
Community Support Member
Community Support Member
Joined:
2008/7/3 14:19
From Belgium
Group:
Registered Users
Posts: 4946
(Show More) (Show Less)


#10 Posted on: 2009/11/6 7:09 Re: xlanguage in xoops 2.4
Great! Now i can upgrade without extra steps


In the Trunk there still exists a readme.txt that gives the old instructions (hackin into common.php). Maybe that should be deleted too?

Top

poehoes
Friend of XOOPS
Friend of XOOPS
Joined:
2003/3/27 17:02
From Netherlands
Group:
Registered Users
Posts: 23
(Show More) (Show Less)




(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]