Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 67

PostPosted: Tue Apr 12, 2005 3:31 pm Reply with quote

Okey I highly doubt that this kind of modification already exist, but here we go...

I have two domains:
etc. Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login!

Both domains are running from the same phpnuke database (same files etc.). But if you go to Only registered users can see links on this board! Get registered or login! -> your default language will be English.
If you go to Only registered users can see links on this board! Get registered or login! -> default language will be German.

Possible? Rolling Eyes
 
View user's profile Send private message
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 719
Location: http://tinyurl.com/5z8dmv

PostPosted: Tue Apr 12, 2005 8:13 pm Reply with quote

something like:
Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login! Only registered users can see links on this board! Get registered or login!

But then besides the DB share you also want it to switch languages.
That's easy just fiddle with your server and prefixes, that's it.
 
View user's profile Send private message Visit poster's website
Lucifix
PostPosted: Wed Apr 13, 2005 3:28 pm Reply with quote

But how do I set default language for specific domain?
 
djmaze
PostPosted: Wed Apr 13, 2005 9:18 pm Reply with quote

Code:
if (ereg('english', $_SERVER['SERVER_NAME'])) {

  $currentlang = 'english';
}
 
Lucifix
PostPosted: Fri Apr 15, 2005 3:41 pm Reply with quote

I'm neither expert neither newbie with phpnuke, but that code doesn't help me much.

Could you be please be little more specific and explain where do insert it?
 
djmaze
PostPosted: Fri Apr 15, 2005 8:27 pm Reply with quote

I don't have phpnuke i only provide code that does the trick.
Maybe someone else can show you where and how to do it.
Maybe it is also phpnuke version dependant because i don't know what FB does besides moving things around.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©