Who is Online - Page Problem - FIXED

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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 ?
Last edited by Leon on Sat Jun 17, 2006 2:58 pm, edited 6 times in total.
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Should be okay now :)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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
//
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Did it work?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

Not yet
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

Updated the post on top whit all changes i have made.
viewtopic.php?p=63294#63294
Because i did see some problems whit it..
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Ah yes, I forgot about the constants.php part. Glad it is working for you.
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Post Reply