Please test extensively. I am not a PHP expert.
Online plugin
Moderator: Tata
Re: Online plugin
Please test extensively. I am not a PHP expert.
Re: Online plugin
Online plugin unfortunately does not count the number of online visitors (but no longer destroys the website). Does anyone know if it works?
Re: Online plugin
Are there any error messages in debug mode or in the browser console? The plugin is already very old, could also be a PHP problem.
Re: Online plugin
No error messages in the browser console unfortunately.
No useful messages in debug mode I assume [6]: This forum also shows "Who is online" and "In total there are x users online" - is it possible to use this solution in CMSimple_XH?
No useful messages in debug mode I assume [6]: This forum also shows "Who is online" and "In total there are x users online" - is it possible to use this solution in CMSimple_XH?
You do not have the required permissions to view the files attached to this post.
Re: Online plugin
Have you activated debug mode? You have to rename the XHdebug.txt to _XHdebug.txt.
I don't know, maybe Olaf.
You can also test this customized version.
online_1.0.7_mod-lck_v2.zip
Last edited by lck on Wed Dec 11, 2024 11:21 am, edited 1 time in total.
Re: Online plugin
I don't think so.
phpBB is not CMSimple_XH.
Gruß Olaf, Plugins for CMSimple_XH
Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.
Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.
Re: Online plugin
Yet, all named ones online are registered in this forum. And the data are read from the database. How shall the CMSimple_XH know the nick of a visitor? It would require register plugin at least and rewrite the the online plugin so it would read the registered members.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Online plugin
You do not have the required permissions to view the files attached to this post.
Gruß Olaf, Plugins for CMSimple_XH
Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.
Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.
Re: Online plugin
This one seems to work fine with me: "online_1_08_dev_b.zip".
Unfortunately couldn't get this to work: "online_1.0.7_mod-lck_v2.zip!"
Thank you very much for all your quick and qualified responses. It's a pleasure.
Unfortunately couldn't get this to work: "online_1.0.7_mod-lck_v2.zip!"
Thank you very much for all your quick and qualified responses. It's a pleasure.
Re: Online plugin
This has been discussed here in forum more times in various plugins.
The point are different rules for using plurals in eastern languages. In gneral, eastern languages have two forms:
- plural form for 2,3,4
- plural form for 5+
If the plugin shall be used on such pages, the index.php shall be adjusted:
The code
shall be replaced by
and the language files shall be respectively extended
In western languages the strings for plural are the same for "24" and "5".
The point are different rules for using plurals in eastern languages. In gneral, eastern languages have two forms:
- plural form for 2,3,4
- plural form for 5+
If the plugin shall be used on such pages, the index.php shall be adjusted:
The code
Code: Select all
// $o muss initialisiert werden
$o = "<span class='online'>";
if ($users == 1) {
$o .= $plugin_tx['online']['first_part_singular'];
$o.=" <u>" . $users . "</u> "; // lck
$o .= $plugin_tx['online']['last_part_singular'];
} else {
$o .= $plugin_tx['online']['first_part_plural'];
$o.=" <u>" . $users . "</u> "; // lck
$o .= $plugin_tx['online']['last_part_plural'];
}
$o .= "</span>";
Code: Select all
$o = "<span class='online'>";
if ($users==1){
$o.=$plugin_tx['online']['first_part_singular'];
$o.=" " . $users . " ";
$o.= $plugin_tx['online']['last_part_singular'];
}
elseif (($users>1)&&($users<5)) {
$o.=$plugin_tx['online']['first_part_plural24'];
$o.=" " . $users . " ";
$o.= $plugin_tx['online']['last_part_plural24'];
}
else {
$o.=$plugin_tx['online']['first_part_plural5'];
$o.=" " . $users . " ";
$o.= $plugin_tx['online']['last_part_plural5'];
}
$o .= "</span>";
Code: Select all
$plugin_tx['online']['first_part_singular']="There is";
$plugin_tx['online']['last_part_singular']="online visitor";
$plugin_tx['online']['first_part_plural24']="There are";
$plugin_tx['online']['last_part_plural24']="online visitors";
$plugin_tx['online']['first_part_plural5']="There are";
$plugin_tx['online']['last_part_plural5']="online visitors";
You do not have the required permissions to view the files attached to this post.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.