Jump to the post that solved this thread.
Solved: 1 Month, 4 Days ago Prevent plugin from adding "Sessions.Location" entry
#1
Solved: 1 Month, 4 Days ago
I am using the Live Forum Team Chat plugin from here:

https://community.mybb.com/mods.php?acti...w&pid=1414

But the online.php constantly shows an "unknown location" for the all team members, whether they are.

Is it possible to add an exception to a  core file to ignore a specific location to be added into the table mybb_sessions column location ?

Thanks
Reply
#2
Solved: 1 Month, 4 Days ago
Maybe i should ask a different question.

Where in the core files the mybb_sessions.location is being updated directly ?
Reply
#3
Solved: 1 Month, 4 Days ago
If the location text is the problem, modifying the plugin (or creating a custom one) to process it for display as desired may be the best option: https://github.com/dragonexpert/tutorial....html#L178

(2021-06-23, 04:15 PM)pafin Wrote: Where in the core files the mybb_sessions.location is being updated directly ?

https://github.com/mybb/mybb/blob/mybb_1...n.php#L482
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#4
Solved: 1 Month, 4 Days ago
(2021-06-23, 05:04 PM)Devilshakerz Wrote: If the location text is the problem, modifying the plugin (or creating a custom one) to process it for display as desired may be the best option: https://github.com/dragonexpert/tutorial....html#L178

https://github.com/mybb/mybb/blob/mybb_1...n.php#L482

Thank you
Reply
#5
Solved: 1 Month, 4 Days ago
In forum-teamchat.php, find:
define('IN_MYBB', 1);

Add after:
define('NO_ONLINE', 1);

This will completely ignore the plugin for online status purposes.
Reply
#6
Solved: 1 Month, 4 Days ago
(2021-06-23, 07:41 PM)Omar G. Wrote: Add after:
define('NO_ONLINE', 1);

That is even the better solution .. thank you as well
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)