Page 1 of 3

Online plugin

Posted: Sun Oct 27, 2024 11:55 am
by jop
I have had installed the Online plugin by Amir version 1.05 in XH version 1.6.10. I am now unsuccessfully trying to install in XH version 1.7.6. Previously, there has been a question about installation in XH 1.7.2, and I have made the recommended change in admin.php, but it has not worked in XH 1.7.6. Is it possible to get the Online plugin by Amir to work in XH 1.7.6? Installed in template?
Or is there another plugin for XH 1.7.6?

Re: Online plugin

Posted: Sun Oct 27, 2024 5:36 pm
by Tata
What plugin is it? Where have you found it?

Re: Online plugin

Posted: Sun Oct 27, 2024 6:12 pm
by jop
A very old (wonderful) plugin
online.zip

Re: Online plugin

Posted: Sun Oct 27, 2024 6:29 pm
by lck
Tata wrote:
Sun Oct 27, 2024 5:36 pm
What plugin is it? Where have you found it?
Plugin online 1.0.7
jop wrote:
Sun Oct 27, 2024 11:55 am
Is it possible to get the Online plugin by Amir to work in XH 1.7.6?
I have tried to make XH 1.7.6 compatible, but version 1.0.7. Here are the modified files index.php & admin.php.
online_1.0.7__index.php_admin.php.zip

Re: Online plugin

Posted: Mon Oct 28, 2024 4:19 pm
by jop
After installing I have got this weird line?
online_plugin.png

Re: Online plugin

Posted: Mon Oct 28, 2024 4:54 pm
by lck
Indeed. I had this too and had already fixed it, but apparently didn't save it.
Change index.php

Code: Select all

<?
to

Code: Select all

<?php

Re: Online plugin

Posted: Mon Oct 28, 2024 6:35 pm
by jop
Thanks, works fine now, but how can I get the line "online" on the same line with print view, sitemap, mail form and login?
And how can I delete the link to urceleb.oniton.com (as the site does not exist)?

Re: Online plugin

Posted: Mon Oct 28, 2024 6:58 pm
by lck
jop wrote:
Mon Oct 28, 2024 6:35 pm
And how can I delete the link to urceleb.oniton.com (as the site does not exist)?
index.php change

Code: Select all

$o.=" <a href='http://urceleb.oniton.com' target='_blank'>" . $users . "</a> ";
and

Code: Select all

$o.=" <a href='http://urceleb.oniton.com' target='_blank'><u>" . $users . "</u></a> ";
to

Code: Select all

$o.= " $users ";
or (with underline)

Code: Select all

$o.=" <u>" . $users . "</u> ";
jop wrote:
Mon Oct 28, 2024 6:35 pm
how can I get the line "online" on the same line with print view, sitemap, mail form and login?
That depends on the template. Which template are you using, fhs-simple-2019?
Plugin online index.php, change

Code: Select all

$o.="<p class='online'>";
to

Code: Select all

$o.="<span class='online'>";
and

Code: Select all

$o.="</p>";
to

Code: Select all

$o.="</span>";

Re: Online plugin

Posted: Mon Oct 28, 2024 9:09 pm
by Tata
Here is the plugin with adjustment (in index.php and sk.php) for languages with 2 forms of plural (e.g. SK, CZ and others that use different forms for count 2,3,4 and 5 and more).

Re: Online plugin

Posted: Tue Oct 29, 2024 4:55 pm
by jop
Yes using fhs-simple-2019 and everything works perfectly now - thank you so much (again).