MyBB Community Forums

Full Version: where are my members ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello

I try to explain my problem in english !

on IPB 1.3.x, I was put this line in "lang_online.php" for see where are my member :

Quote:WHERE_faq => "Affichage(display) de la MansonFAQ",
WHERE_gallery => "Affichage(display) de la gallerie",
WHERE_blog => "Affichage(display) des blogs",
WHERE_portale => "Affichage(display) du portail",
WHERE_urlobox => "Affichage(display) de la shoutbox",
WHERE_news => "Affichage des news",
WHERE_topsite => "Affichage du TopSites",
WHERE_downloads => "Affichage des Downloads",
WHERE_reviews =>"Affichage des bootlegs",

with this line, I can see where are my member on mkportal.

on Mybb; I try to put this line in "online.lang.php" :

Quote:$l['faq'] = "Affichage(display) de la MansonFAQ";
$l['gallery'] = "Affichage(display) de la gallerie";
$l['blog'] = "Affichage(display) des blogs";
$l['portale'] = "Affichage du portail";
$l['urlobox'] = "Affichage de la shoutbox";
$l['news'] = "Affichage des news";
$l['topsite'] = "Affichage du TopSites";
$l['downloads'] = "Affichage des Downloads";
$l['reviews'] = "Affichage des bootlegs";

but when I see the online member list, I always see "Main Index" (with as URL, forum's index) when a member is on mkportal sections.

one idea ?

thanks Wink

note : I posted on other board but without answer Sad
You can't just add things to the language files. You need to edit online.php as well.

Open online.php and find:
		case "nopermission":
			$user['activity'] = "nopermission";
			break;

Under it add (for each location):
	case "filename":
			$user['activity'] = "filename_action";
			break;

Substitute "filename" with the filename in the URL (http://www.mysite.com/test.php would mean you enter "test"), and substitue filename_action with something similar.

Then you need to find the section with:
		// sendthread.php functions
		case "sendthread":
			$locationname = $lang->sending_thread;
			break;

And add below it:
		case "filename_action":
			$locationname = $lang->language_string;
			break;

You need to change "filename_action" to what you specified in the other section earlier and $lang->language_string with the language variable you wish to display (for example, $lang->topsite or $lang->reviews)

Regards,
Chris
hi !

thanks for your answers Wink

I try like this for reviews in online.php:

case "reviews":
            $user['activity'] = "reviews";
            break;

and

case "reviews":
            $locationname = "see the reviews";
            break; 

it's fine I think but I always see "Main Index".

I try to change ['activity'] = "reviews" =>
['activity'] = "index.php?ind=reviews"
['activity'] = "http://127.0.0.1/mkportal_final/index.php?ind=reviews"

but it's a same thing.

note : I tested on My Pc with easyPHP
note2 : in online.php, I find your first code ok but I don't find the second. I put my code in the line 482 :

Quote:// online.php functions
Hi !

could you see me an exemple for

- "http://www.mywebsite.fr/index.php" (=> index of mkportal)
- "http://www.mywebsite.fr/index.php?ind=reviews"

I'll make the others...

thanks Wink
little up Toungue
well, for this moment, I Abandon because :

- for the line "$user['activity'] = "index";" => it's the same world for mkportal. Thus if I put "index" for mkportal index. That indicate again "index forum main page".
If I comment the line for index forum ("$user['activity'] = "index";" and other lines) and if I add this same line (with other line of course) for mkportal index. That does not work. In "who's is online", I see "unknow location".

- for other mkportal modules => That does not work because the link are as that : "http://mywebsite.com/index.php?ind=reviews".

If I comment the line for index forum ($user['activity'] = "index"Wink and if I add this line (for exemple) "$user['activity'] = "reviews";" (with other lines of course). That does not work because the name of file is "index" not "reviews".
with that, in "who's is online", I see "unknow location" with the good link of mkportal module.
(it's the same thing for other mkportal modules).

thanks for help me or I don't make no more modification for this... Sad

note : I work on localhost of course Wink