MyBB Community Forums

Full Version: Prevent plugin from adding "Sessions.Location" entry
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Maybe i should ask a different question.

Where in the core files the mybb_sessions.location is being updated directly ?
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
(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
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.
(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