Page 2 of 2

Posted: Sat Jun 17, 2006 1:44 pm
by Leon
UPDATED:

Ok so now i have made all this:

3 different pages:
General.php
General_swe.php
General_eng.php

Code: Select all

viewonline.php

case PAGE_GENERAL: 
$location = $lang['General_Content']; 
$location_url = "general.$phpEx"; 
break;

case PAGE_GENERALENG: 
$location = $lang['General_Content_English']; 
$location_url = "general_eng.$phpEx"; 
break;

case PAGE_GENERALSWE: 
$location = $lang['General_Content_Swedish']; 
$location_url = "general_swe.$phpEx"; 
break;

Code: Select all

admin/index.php
At 2 places

First:

case PAGE_GENERAL: 
$location = $lang['General_Content']; 
$location_url = "general.$phpEx?pane=right"; 
break;

case PAGE_GENERALENG: 
$location = $lang['General_Content_English']; 
$location_url = "general_eng.$phpEx?pane=right"; 
break;

case PAGE_GENERALSWE: 
$location = $lang['General_Content_Swedish']; 
$location_url = "general_swe.$phpEx?pane=right"; 
break;



Second place alittle more down:

case PAGE_GENERAL: 
$location = $lang['General_Content']; 
$location_url = "general.$phpEx?pane=right"; 
break;

case PAGE_GENERALENG: 
$location = $lang['General_Content_English']; 
$location_url = "general_eng.$phpEx?pane=right"; 
break;

case PAGE_GENERALSWE: 
$location = $lang['General_Content_Swedish']; 
$location_url = "general_swe.$phpEx?pane=right"; 
break;

Code: Select all

General.php

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_GENERAL); 
init_userprefs($userdata); 

Code: Select all

General_eng.php

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_GENERALENG); 
init_userprefs($userdata);

Code: Select all

General_swe.php

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_GENERALSWE); 
init_userprefs($userdata); 

Code: Select all

lang_main.php

//
// General Start
//

$lang['General_Content'] = 'General Content';
$lang['General_Content_English'] = 'General Content English';
$lang['General_Content_Swedish'] = 'General Content Swedish';

//
// General Stop
//
Anything more ?

Posted: Sat Jun 17, 2006 2:01 pm
by battye
Should be okay now :)

Posted: Sat Jun 17, 2006 2:04 pm
by Leon
Added also:

Code: Select all

lang_main.php

//
// General Start
//

$lang ['General_Content'] = 'General Content';
$lang ['General_Content_English'] = 'General Content English';
$lang ['General_Content_Swedish'] = 'General Content Swedish';

//
// General Stop
//

Posted: Sat Jun 17, 2006 2:14 pm
by battye
Did it work?

Posted: Sat Jun 17, 2006 2:19 pm
by Leon
Not yet

Posted: Sat Jun 17, 2006 2:56 pm
by Leon
Updated the post on top whit all changes i have made.
viewtopic.php?p=63294#63294
Because i did see some problems whit it..

Posted: Sat Jun 17, 2006 6:17 pm
by Leon
The final working changes:

Code: Select all

viewonline.php

case PAGE_GENERAL: 
$location = $lang['General_Content']; 
$location_url = "general.$phpEx"; 
break;

case PAGE_GENERALENG: 
$location = $lang['General_Content_English']; 
$location_url = "general_eng.$phpEx"; 
break;

case PAGE_GENERALSWE: 
$location = $lang['General_Content_Swedish']; 
$location_url = "general_swe.$phpEx"; 
break;

Code: Select all

admin/index.php
At 2 places

First:

case PAGE_GENERAL: 
$location = $lang['General_Content']; 
$location_url = "general.$phpEx?pane=right"; 
break;

case PAGE_GENERALENG: 
$location = $lang['General_Content_English']; 
$location_url = "general_eng.$phpEx?pane=right"; 
break;

case PAGE_GENERALSWE: 
$location = $lang['General_Content_Swedish']; 
$location_url = "general_swe.$phpEx?pane=right"; 
break;



Second place alittle more down:

case PAGE_GENERAL: 
$location = $lang['General_Content']; 
$location_url = "general.$phpEx?pane=right"; 
break;

case PAGE_GENERALENG: 
$location = $lang['General_Content_English']; 
$location_url = "general_eng.$phpEx?pane=right"; 
break;

case PAGE_GENERALSWE: 
$location = $lang['General_Content_Swedish']; 
$location_url = "general_swe.$phpEx?pane=right"; 
break;

Code: Select all

General.php

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_GENERAL); 
init_userprefs($userdata); 

Code: Select all

General_eng.php

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_GENERALENG); 
init_userprefs($userdata);

Code: Select all

General_swe.php

// standard session management 
$userdata = session_pagestart($user_ip, PAGE_GENERALSWE); 
init_userprefs($userdata); 

Code: Select all

lang_main.php

//
// General Start
//

$lang['General_Content'] = 'General Content';
$lang['General_Content_English'] = 'General Content English';
$lang['General_Content_Swedish'] = 'General Content Swedish';

//
// General Stop
//

Code: Select all

includes/constants.php 

// General Page Mod 
define('PAGE_GENERAL', -47); 
define('PAGE_GENERALENG', -48); 
define('PAGE_GENERALSWE', -49);
This is it

Posted: Sun Jun 18, 2006 3:23 am
by battye
Ah yes, I forgot about the constants.php part. Glad it is working for you.