1
0
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:
Cameron
2015-08-31 17:17:28 -07:00
parent 6673575a82
commit 44a6298b79
8 changed files with 125 additions and 85 deletions

View File

@@ -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: ");

View File

@@ -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);
}