You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 370 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Coppermine Language Selection [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
sengsara
Support Staff
Support Staff


Joined: Sep 18, 2003
Posts: 289

Location: Batam, Indonesia (an hour boat ride from Singapore) ;)

PostPosted: Tue Sep 23, 2003 8:43 pm Reply with quoteBack to top

I'm having problem with the coppermine language detection procedure. I always want it to behave like other modules in my PHPNuke Site.

This is what I just did:

Open your modules/coppermine/include/init.inc.php file
Replace all code after this

Code:
// Process language selection if present in URI or in user profile or try
// autodetection if default charset is utf-8


with this

Code:
// Process language selection if present in URI or in user profile or try
// autodetection if default charset is utf-8


    global $currentlang, $language;

    if (file_exists("modules/coppermine/lang/$currentlang.php")) {
      $USER['lang'] = $currentlang;
    } else {
      $USER['lang'] = $language;
    }

if (!file_exists("modules/coppermine/lang/{$USER['lang']}.php")) {
  if (!file_exists("modules/coppermine/lang/{$CONFIG['lang']}.php")) {
    $CONFIG['lang'] = 'english';
  }
} else {
    $CONFIG['lang'] = $USER['lang'];
}
include "modules/coppermine/lang/{$CONFIG['lang']}.php";


// load the main template
load_template();
?>


Anyone knows better way to handle it please let me know. Wink
Find all posts by sengsaraView user's profileSend private messageSend e-mailVisit poster's website
checksum
Sergeant
Sergeant


Joined: Apr 30, 2003
Posts: 122


PostPosted: Sun Oct 12, 2003 2:55 am Reply with quoteBack to top

Good Job!
Works for me.
Find all posts by checksumView user's profileSend private message
sengsara
Support Staff
Support Staff


Joined: Sep 18, 2003
Posts: 289

Location: Batam, Indonesia (an hour boat ride from Singapore) ;)

PostPosted: Sun Oct 12, 2003 7:39 pm Reply with quoteBack to top

I heard it'll be included in the next release of Coppermine PHPNuke Port. Wink

_________________
The Answer Get it now.
Batam Web Network Most likely the content of this site is not for you...
Find all posts by sengsaraView user's profileSend private messageSend e-mailVisit poster's website
polat
Nuke Cadet
Nuke Cadet


Joined: Jan 02, 2005
Posts: 3


PostPosted: Sun Jan 02, 2005 4:38 am Reply with quoteBack to top

hi all
I've been seeking for a solution but cannot find yet. I've read all forums and solutions. Here is my problem.

When I set the charset to iso-8859-9 in my PHPnuke 7.6 site, it works fine. But when I enter the module coppermine it changes to the utf-8 character encoding.

Here what I've done to prevent this error:
1- checked apache config file -> AddDefaultCharset ISO-8859-9
2- checked php.ini file -> default_charset = "iso-8859-9"
3- set coppermine to the turkish language file via config menu
4- set character encoding to turkish (iso-8859-9)
5- change every utf-8 string in the files of the coppermine directory
6- delete every cookies
7- Fresh install

But nothing changes.
Any idea?
Find all posts by polatView user's profileSend private message
polat
Nuke Cadet
Nuke Cadet


Joined: Jan 02, 2005
Posts: 3


PostPosted: Sun Jan 02, 2005 5:05 am Reply with quoteBack to top

I found the problem, it is the turkish.php file. When i trry to edit and save this file. It changes to utf-8 when ireplace the original file with the modified one it works fine. But it does not solve my problem. I need to edit the file but when i try to add even though a space char to the file, it changes to utf-8. I'm using windows xp. Any idea?
Find all posts by polatView user's profileSend private message
polat
Nuke Cadet
Nuke Cadet


Joined: Jan 02, 2005
Posts: 3


PostPosted: Sun Jan 02, 2005 5:17 am Reply with quoteBack to top

Hi, I've solved the problem.
Here it is : open the turkish.php via ultraedit (my favorite editor). Select From file/conversions/unicode to ASCII. It converts the file from unix version to windows (As i understand). Then Edit the file.
My best regards.
Find all posts by polatView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.246 Seconds - 276 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::