mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Issue #6 - Removed URLs from LANs
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
define("LAN_LASTSEEN_1", "Last Seen Menu");
|
||||
|
||||
//online
|
||||
define('LAN_ONLINE_TRACKING_MESSAGE', "Online user tracking is currently disabled, please enable it [link=".e_ADMIN."users.php?options]here[/link][br]");
|
||||
define('LAN_ONLINE_TRACKING_MESSAGE', "Online user tracking is currently disabled, please enable it [here]");
|
||||
define("LAN_ONLINE_1", "Guests: ");
|
||||
define("LAN_ONLINE_2", "Members: ");
|
||||
define("LAN_ONLINE_3", "On this page: ");
|
||||
|
@@ -48,7 +48,14 @@ class online_shortcodes
|
||||
|
||||
function sc_online_tracking_disabled()
|
||||
{
|
||||
return e107::getParser()->toHTML(LAN_ONLINE_TRACKING_MESSAGE,TRUE);
|
||||
$url = e_ADMIN."users.php?mode=main&action=prefs";
|
||||
|
||||
$srch = array("[","]");
|
||||
$repl = array("<a href='".$url."'>", "</a>");
|
||||
|
||||
$message = str_replace($srch,$repl, LAN_ONLINE_TRACKING_MESSAGE);
|
||||
return e107::getParser()->toHTML($message, true);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user